Archive for the ‘Ubuntu’ Category

Easy way to IMAP sync 2 mailboxes

February 2, 2016 Leave a comment

Linux has a great tool to sync 2 different mailboxes, this is especially useful when you need to migrate from one mailbox to another

  1. First install imapsync
  2. Then run the following command

imapsync –host1 –user1 –password1 –host2 [destination server] –user2 [destination email] –password2 [destination password]

Categories: CentOS, Open Source, Ubuntu

Common Setup Commands for Ubuntu 12.x onwards

September 20, 2014 1 comment

To change the hostname of the machine
sudo nano /etc/hostname

sudo nano /etc/hosts

To change the IP Address of the machine

sudo vi /etc/network/interfaces

auto eth0
iface eth0 inet static

sudo /etc/init.d/networking restart

To change the account password


To shutdown the machine

sudo shutdown –h 0


To install and enable openssh

sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22


sudo nano /etc/ssh/sshd_config
# line 28: uncomment and change ‘no’
# default setting "without-password" means that root login is permited but require keys authentication
PermitRootLogin no


sudo initctl restart ssh

Categories: Ubuntu