How to change hostname or network computer name on Ubuntu 12.04 LTS Desktop or Later
by: Revengksky Joseph D. Reyes (a.k.a rjdreyes – jcyberinux.com)
For Ubuntu Desktop Users especially with Unity GUI.
(Note: For this event you may need an internet connection, in case of need to install or download available updates on your Ubuntu OS.)
1. Click the Home Folder, then click on the File System and click etc folder. (See example illustration.)
2. From there, you will able to see the hostname file. In order to edit the hostname or computer name, open the application Terminal, then you can simply drag and drop the said filename to the terminal. (See example illustration.)
It will show the path and filename of it, by just adding the command sudo gedit, you will able to change the hostname with administrator permission. The whole command would be simply sudo gedit /etc/hostname
(Note: It will ask for a administration password, or your own account password, type it and press enter key.)
3. An editor will be opened, and then you can edit a hostname or your computer name. Save it then restart your computer for effective result of the changes.
Please share for any additional information here in our comment. Cheers!
(Note: Ubuntu(Unity and Applications) Logo/Images/Pictures has a respective copyright. I used it for demonstration purpose only.)