Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Change computer name of an Ubuntu desktop computer

I have a system and don't like the user sees the Ubuntu name while system is shutting down(i replaced the splash when starting)

I want to know how can i Change my Ubuntu name in console (you can see by pressing ctrl+alt+F1) from UBUNTU to something else.

share|improve this question

migrated from stackoverflow.com Jan 2 '10 at 19:37

This question came from our site for professional and enthusiast programmers.

marked as duplicate by BinaryMisfit Jan 2 '10 at 21:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This isn't code related. Try superuser.com –  avpx Jan 2 '10 at 19:34
Duplicate of superuser.com/questions/84704/… –  pcapademic Jan 2 '10 at 20:13

3 Answers 3

  • Edit /etc/hostname with your editor of choice:
sudo vi /etc/hostname

save the file with your new hostname.

  • You should also edit the hosts file:
sudo vi /etc/hosts

in there you will see the old hostname which may look something like this:        oldhostname

change it so it looks like this, then save and exit:        newhostname

restart the hostname service:

sudo /etc/init.d/hostname.sh restart
share|improve this answer

Copied from the original; migration appears to have bugged out at the precise second I submitted:

Take a look at the hostname command. You might also need to tweak, e.g. /etc/hosts.

share|improve this answer

Change the hostname value:

hostname "newservername"

in the /etc/hostname to make it survive reboots.

share|improve this answer

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