While installing ubuntu 9.10 i set a long hostname and it is hard to keep track of it while connecting from other machines. Please help how to change hostname?

2 answers, votes, 4588 views
Visitor's picture
asked by Visitor
2 years 13 weeks ago



2 Answers

Answer

Open terminal by going to Applications->Accessories->Terminal
 
Enter the following
$ hostname
(this will show your current hostname)
 
To change, type
 
$ hostname -b newhostname

for example $ hostname -b my-ubuntu-desktop

Visitor's picture
answer by Visitor
2 years 13 weeks ago
Answer

The above change will revert once you reboot the machine.
 
To make permanent change edit the following file using
 
sudo gedit /etc/hostname

Visitor's picture
answer by Visitor
2 years 13 weeks ago

Ubuntu 11.04 released!

Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

Read ubuntu 11.10 reviews and share yours now!!

View in your own language!

Stay Connected

Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

Poll

Favorite desktop environment?: