up vote 4 down vote favorite
share [g+] share [fb]

How can I change the computer name on an Ubuntu desktop computer?

I already tried changing the /etc/hostname file but that only caused the wireless to stop working. I found an old guide that suggested changing the setting under networking, but that screen doesn't exist in 9.10 (Karmic Koala).

link|improve this question

66% accept rate
feedback

3 Answers

up vote 2 down vote accepted

There is a tutorial on Ubuntu Forums: link

link|improve this answer
Worked, thanks. – C. Ross Dec 17 '09 at 20:02
feedback

Change both /etc/hostname and /etc/hosts:

gksudo gedit /etc/hostname
gksudo gedit /etc/hosts
link|improve this answer
1  
And type hostname "new name" so it's taken into consideration without rebooting. – Raphink Dec 17 '09 at 19:59
feedback

How about sudo hostname "new computer name"

link|improve this answer
1  
It doesn't last after reboot. – Raphink Dec 17 '09 at 19:58
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.