Edit two files below:
sudo nano /etc/hostname
sudo nano /etc/hosts
To apply changes:
sudo /etc/init.d/networking restart
or
sudo service networking restart
Edit two files below:
sudo nano /etc/hostname
sudo nano /etc/hosts
To apply changes:
sudo /etc/init.d/networking restart
or
sudo service networking restart