The other day I decided to change my Ubuntu computer name on the private network to follow a certain naming scheme I envisioned. By following the below steps, you’ll also be able to give your computer a new identity in no time.
This opens the hostname file inside VIM (my favourite editor) displaying the current computer name. Replace the current name with the desired new name.
'Save as' using 'Esc' with :wq! and restart your system.
After the restart your system will have a new name.
.......@her###:~$ sudo vim /etc/hostname
This opens the hostname file inside VIM (my favourite editor) displaying the current computer name. Replace the current name with the desired new name.
'Save as' using 'Esc' with :wq! and restart your system.
.......@her###:~$ sudo shutdown -r now
After the restart your system will have a new name.
No comments:
Post a Comment