How to change the machine name?

Asked by Edmond Condillac on 2012-05-23

The Gnome terminal shell prompt is in the form username@machinename. Can I change the computer name? How can I change the machinename part, please?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
2012-05-23
Last query:
2012-05-23
Last reply:
2012-05-23
Best Wyatt Smith (wyatt-smith) said : #1

From terminal edit the hostname file
gksu gedit /etc/hostname

After you make your edit. Save the file. You will need to reboot to have change take effect.

Edmond Condillac (econ22) said : #2

Thanks Wyatt Smith, that solved my question.