Sunday, June 11, 2017
Change the Computer name in Ubuntu 16.04
Open terminal and run command:
$ sudo gedit /etc/hostname
/etc/hostname is a simple one line file, change the name to whatever your want.
Next, Open terminal and run command:
In /etc/hosts change the name in second line and make it SAME to the name in /etc/hostname.
Save your changes and restart your machine.
Next, Open terminal and run command:
$ sudo gedit /etc/hosts
In /etc/hosts change the name in second line and make it SAME to the name in /etc/hostname.
Save your changes and restart your machine.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment