Jag hånar dig med mina apbyxor.
ing a hostn ame on Ubuntu
To change the host name, launch your favorite text editor like so:
$ sudo gedit
/etc/hosts and replace instances of the current hostname with the new one. Save the files and restart the computer.
A post in the Ubuntu forums indicated that if you don't change both files from the same instance of
sudo that you won't be able to sudo to change the second file. I don't know if that's still a problem, since I launched the editor using sudo and opened both files from within it.
Skrivet av alphanum3r1c, 2009-03-27 07:27