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 [2023/12/12 16:36] – John Harrison | lwc:programming:bash [2024/09/27 12:48] (current) – [Superuser] John Harrison | ||
---|---|---|---|
Line 121: | 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 181: | 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: '' |