How to change your Hostname (Ubuntu)
1. First, open a terminal and type:root@penreturns:~$ gksu gedit /etc/hostnameYou should see a line stating your current hostname. For eg. iPad
2. Change the hostname to something you desired. Save and close the file.
3. Back in your terminal, type:
root@penreturns:~$ gksu gedit /etc/hosts4. Change the line:
127.0.1.1 iPad
to
127.0.1.1 your-new-hostname
Save and close the file.
Reboot and your new hostname should appear in the terminal now.
*copy code without root@penreturns:~$
Reply to this post
Post a Comment