Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-08 00:22:13 +00:00
parent 9c36a48bd3
commit 3be72c1548
7 changed files with 76 additions and 8 deletions

View File

@@ -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}}`

View File

@@ -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}}`

View File

@@ -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:

View File

@@ -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}}`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# update-initramfs
> Manage initramfs.
> More information: <https://manned.org/update-initramfs>.
- 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}}`

View File

@@ -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:

43
tldr/minidlna Normal file
View File

@@ -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: <https://manned.org/minidlna>.
- 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}}`