Web Host Backup Script

This is a script I have developed to back up my hosting environment, and it actually consists of two. One to be started by cron, and then it starts the other. This allows for a modular setup between your environments (apache/nginx/etc). The scripts: backup.sh #!/bin/bash # Web Host Backup # Cron Version # Jim McKibben…

Remote VNC via SSH

This is the SSH part where you connect to the remote system and send a local port back to you: ssh -L 5900:localhost:5900 -p altsshport user@domain.com What can you do with this? You can run a service on your remote system like this: x11vnc -display :0 -localhost On newer Xubuntu systems, you might have to…

Bash one liners

Below I will post some useful Linux Bash or *ash similar command code. Some of these will seem trivial to those that know and to the rest, will hopefully be future cheat sheet material. Commands: [ctrl]-r = search bash history for entered string [ctrl]-k = delete all characters to the end of the line [ctrl]-u…