Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lwc:programming:bash [2022/09/15 12:20] – John Harrison | lwc:programming:bash [2024/09/27 12:48] (current) – [Superuser] John Harrison | ||
|---|---|---|---|
| Line 71: | Line 71: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | === With ffmpeg === | + | === Alternative: |
| * '' | * '' | ||
| * example: '' | * example: '' | ||
| - | * example cmd:ffmpeg -f pulse -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -ac 2 recording.m4a | + | * example cmd: '' |
| - | * '' | + | |
| ==== VIDEO ==== | ==== VIDEO ==== | ||
| Line 122: | Line 121: | ||
| convert -threshold 75% input.pdf output.pdf | convert -threshold 75% input.pdf output.pdf | ||
| </ | </ | ||
| + | |||
| + | determine resolution of images inside a pdf: '' | ||
| ==== INTERNET ==== | ==== INTERNET ==== | ||
| - | **ssh no password:** follow [[http:// | + | * **ssh no password:** follow [[http:// |
| - | + | | |
| - | **vpn on Linux 64 bit**: follow [[http:// | + | |
| - | + | * ssh -L 5901: | |
| - | **Remote Desktop (VNC through SSH tunnel)** | + | * (in a separate terminal): xtightvncviewer -encodings tight localhost: |
| - | + | * ssh to a host through another (jump) host | |
| - | | + | * use '' |
| - | * (in a separate terminal): xtightvncviewer -encodings tight localhost: | + | * also works for scp i.e. '' |
| **DHCP Server and Firestarter (on 12.04)** | **DHCP Server and Firestarter (on 12.04)** | ||
| - | |||
| * sudo apt-get install dhcp3-server | * sudo apt-get install dhcp3-server | ||
| * sudo ln -s / | * sudo ln -s / | ||
| Line 182: | Line 181: | ||
| < | < | ||
| + | ==== Superuser ==== | ||
| + | === Execute sudo cmd without needing to type password === | ||
| + | == Staying Safe == | ||
| + | - backup ''/ | ||
| + | - leave at least one terminal window open as root | ||
| + | - edit ''/ | ||
| + | == The Magic == | ||
| + | * create a wrapper script that does all your magic for you. Don't add sudo to the cmds in the wrapper script | ||
| + | * using '' | ||
| + | * to execute the cmd without password type '' | ||
| ===== Misc ===== | ===== Misc ===== | ||
| * write to dmesg: '' | * write to dmesg: '' | ||
| - | * add timestamp to log entries that are piped. Add to pipe: '' | + | * add timestamp to log entries that are piped. Add to pipe: '' |
| + | * '' | ||
| * remove package with all its dependencies. As root: '' | * remove package with all its dependencies. As root: '' | ||
| * [[https:// | * [[https:// | ||
| + | * traverse through to see what is using disk space: '' | ||
| + | * find out what app is on a particular port: '' | ||