+1

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, +1 votes, 2455 views
Visitor's picture
asked by Visitor
43 weeks 18 hours ago



2 Answers

Answer
0

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
43 weeks 17 hours ago
Answer
0

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
43 weeks 8 hours ago

Asked by

Visitor's picture
Visitor

View in your own language!