Changing Hostname – Linux Mint 16

Display your current hostname: $ uname -a

As admin/su, edit the hostname and hosts files:
#gedit /etc/hostname
newhostname
(ie: newhostname.local.name OR newhostname)

#gedit /etc/hosts

127.0.0.1 localhost
127.0.1.1 originalname

change originalname to newhostname

Advertisements