hostnamectl set-hostname "new_hostname" hostnamectl (or hostname) to check new settings
sudo nano /etc/hostname sudo nano /etc/hosts sudo reboot
FIRST GIVE ROOT PERMISSION sudo su gedit /etc/hosts gedit /etc/hostname