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.

link|improve this question

50% accept rate
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
feedback

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

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

closed as exact duplicate by Diago Jan 2 '10 at 21:44

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

3 Answers

  • 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:

192.168.0.99        oldhostname

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

192.168.0.99        newhostname

restart the hostname service:

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

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.

link|improve this answer
feedback

hostname "newservername"

you need to edit /etc/hostname to make it survive reboots.

link|improve this answer
feedback

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