diff --git a/tldr/kubectl-describe b/tldr/kubectl-describe index d540642b..ae51d436 100644 --- a/tldr/kubectl-describe +++ b/tldr/kubectl-describe @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Show details of Kubernetes objects defined in a YAML manifest file: -`kubectl describe {{[-f|--file]}} {{path/to/manifest.yaml}}` +`kubectl describe {{[-f|--filename]}} {{path/to/manifest.yaml}}` diff --git a/tldr/kubectl-get b/tldr/kubectl-get index ec5aa09d..d5ac6f5c 100644 --- a/tldr/kubectl-get +++ b/tldr/kubectl-get @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Get Kubernetes objects defined in a YAML manifest file: -`kubectl get {{[-f|--file]}} {{path/to/manifest.yaml}}` +`kubectl get {{[-f|--filename]}} {{path/to/manifest.yaml}}` diff --git a/tldr/linux/aur b/tldr/linux/aur index d6d77779..249da306 100644 --- a/tldr/linux/aur +++ b/tldr/linux/aur @@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git `aur search {{keyword}}` -- Download a package and its dependencies from AUR, build them and add them to a local repository: +- Download one or more packages and their dependencies from the AUR, build them, and add them to a local repository: -`aur sync {{package}}` +`aur sync {{package1 package2 ...}}` - List packages available in your local repository: diff --git a/tldr/linux/qm-create b/tldr/linux/qm-create index a9e4733d..e48d32f7 100644 --- a/tldr/linux/qm-create +++ b/tldr/linux/qm-create @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Specify a script that is executed automatically depending on the state of the virtual machine: `qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}` + +- Create a VM that bridges itself to the host network: + +`qm {{[cr|create]}} {{100}} --net{{0}} virtio,bridge=vmbr{{0}}` diff --git a/tldr/linux/update-initramfs b/tldr/linux/update-initramfs new file mode 100644 index 00000000..e14469f2 --- /dev/null +++ b/tldr/linux/update-initramfs @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# update-initramfs + +> Manage initramfs. +> More information: . + +- Create a new initramfs (use `all` for all installed kernel versions): + +`sudo update-initramfs -c -k {{kernel_version}}` + +- Update an existing initramfs: + +`sudo update-initramfs -u` + +- Remove an existing initramfs (be careful when using `all` for `kernel_version`): + +`sudo update-initramfs -d -k {{kernel_version}}` diff --git a/tldr/linux/xrandr b/tldr/linux/xrandr index 604a1077..fe4f025c 100644 --- a/tldr/linux/xrandr +++ b/tldr/linux/xrandr @@ -18,19 +18,19 @@ source: https://github.com/tldr-pages/tldr.git - Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz: -`xrandr --output {{DP1}} --mode {{1920x1080}} --rate {{60}}` +`xrandr --output DP1 --mode 1920x1080 {{[-r|--rate]}} 60` - Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1: -`xrandr --output {{HDMI2}} --mode {{1280x1024}} --right-of {{DP1}}` +`xrandr --output HDMI2 --mode 1280x1024 --right-of DP1` - Disable the VGA1 output: -`xrandr --output {{VGA1}} --off` +`xrandr --output VGA1 --off` - Set the brightness for LVDS1 to 50%: -`xrandr --output {{LVDS1}} --brightness {{0.5}}` +`xrandr --output LVDS1 --brightness 0.5` - Display the current state of any X server: diff --git a/tldr/minidlna b/tldr/minidlna new file mode 100644 index 00000000..a7b1a7f4 --- /dev/null +++ b/tldr/minidlna @@ -0,0 +1,43 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# minidlna + +> ReadyMedia (formerly MiniDLNA) is a lightweight media server compatible with DLNA/UPnP-AV clients. +> Used to stream media to smart TVs, consoles, and other DLNA-compatible devices. +> Configuration is typically done via the `minidlna.conf` file. +> More information: . + +- Start the MiniDLNA daemon using the default configuration at `/etc/minidlna.conf`: + +`minidlna` + +- Start MiniDLNA with a specific configuration file: + +`minidlna -f {{path/to/minidlna.conf}}` + +- Force a database rescan on startup: + +`minidlna -R` + +- Run MiniDLNA in the foreground (useful for debugging): + +`minidlna -d` + +- Enable verbose debug output: + +`minidlna -d -v` + +- Specify a custom media directory (overrides config): + +`minidlna -m {{path/to/media}}` + +- Specify a custom database directory: + +`minidlna -P {{path/to/pidfile}}` + +- Specify a custom log file path: + +`minidlna -l {{path/to/logfil.log}}`