En bra gratis blogg
Lista bloggar Om Bloggis
Skapa konto Logga in
alphanum3r1c

Jag hånar dig med mina apbyxor.

Changing a hostname on Ubuntu

Taggar: tips linux ubuntu hostname notes

To change the host name, launch your favorite text editor like so:

$ sudo gedit

Open /etc/hostname and /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.

Tagged: Linux, Note to Self, Ubuntu

Skrivet av alphanum3r1c, 2009-03-27 07:27

Kommentarsfunktionen är avslagen för detta inlägg.