Tuesday, November 22, 2011

Changing default editor to vim

Run the command below: 

sudo update-alternatives --config editor

Then select vim.basic or vim.tiny from the menu presented

Monday, November 21, 2011

Copy SSH Key to Server in one command

Use this technique to copy the SSH key and add it to the authorized_keys file in one command
ssh-copy-id -i .ssh/id_dsa.pub username@remotehost

Pop in your password and you're done.