Scenario; set up ssh keys to machine so that you do not require a password for use with something like scp. First you need a slave user. If you ‘adduser’ on both machines and pick a user name. Make sure they have a shell account but do not require authentication using a password. On the ..
I own a couple of NAS boxes and I’m using 1 of them right now. My StartCom certificate was nearly about to expire, so I had to generate another CSR for the new certificate. In fact on Apache you can just use the same one I believe, but I wanted to ensure I used the ..
Editing iptables on a Centos machine? Firstly you can check your rules like so – iptables -L cd /home/richard iptables-save > 08-05-2015.rules vi 08-05-2015.rules (add your rules) iptables-restore < 08-05-2015.rules services iptables save iptables -L – You should now see your ..
Vi delete from line1 to current :1,.d This deletes lines 1 to current. :1,.-1d This deletes lines 1 to abov..
I use vi a lot on nix machines and there’s a lot of useful tricks you can do to edit files. A good trick to get rid of those annoying ^M characters from a dos file is – :%s/(ctrl-v)(ctrl-m)//g So you want to type :%s/ and then ctrl & v and without ..