+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, 1014 views
Visitor's picture
asked by Visitor
18 weeks 3 days 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
18 weeks 3 days 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
18 weeks 3 days ago

Asked by

Visitor's picture
Visitor

View in your own language!