Copying files from one linux server to another via SSH

Ever wanted to copy files from one linux server to another, via SSH? Here’s the command: scp -P 22 -r /home/username/local-directory ip-or-hostname-of-remote-server:/home/username/remote-directory. scp = Secure Copy. -r = Recursive (copy the contents of the directory and the contents of any directories inside that directory). -P = (specifying the port number). 22 = The port number […]

Check for a Process and Start It if It’s Not Started (Linux/Unix)

I came across a conundrum some time ago. I have a CentOS Linux based VPS running a few various different ‘processes’ for different purposes. My problem was that from time to time, these processes would stop or die, for whatever reason. Given that I require absolute uptime from these processes (or at least as close […]

VMware Server 1.0.9 on CentOS 5.3

The contents of this guide should work perfectly fine on a base (yes that’s base, not bare bones) only installation of either CentOS 32/64 bit or RHEL 5.3 32/64 bit. If you have any troubles, please do leave a comment and I’ll do my best to assist you. This guide assumes you are setting up […]

Proxmox OpenVZ Server 2 NICs 2 Gateways

These are two solutions that worked for me. They are by no means the only solutions. My Predicament. A server (a Dell SC440), with two physical network interfaces. Our office has two ISP connections (DSL broadband). We have the one internal network range (192.168.1.0/24) with two gateways (1.254 and 1.221). I have installed Promox on […]