PDA

View Full Version : [ubuntu] Network Admin



cmnorton
January 15th, 2009, 10:40 PM
For 8.10, when the computer name is changed, which files are updated?

I tried manually changing the computer name in /etc/hosts. However, subsequent sudo commands complained that the original computer name could not be resolved.

cariboo
January 15th, 2009, 11:06 PM
To change your computers host, in a terminal type:


hostname <new_hostname>

The change will not take effect until you reboot.

You can alias your hostname to almost anything you want in /etc/hosts.

Jim

cmnorton
January 15th, 2009, 11:22 PM
To change your computers host, in a terminal type:


hostname <new_hostname>The change will not take effect until you reboot.

You can alias your hostname to almost anything you want in /etc/hosts.

Jim

Thanks

albinootje
January 15th, 2009, 11:30 PM
For 8.10, when the computer name is changed, which files are updated?


Apart from /etc/hosts there's also /etc/hostname to think about.
Adjusting that properly too, then after a reboot all should be fine.