How to change the machine name?

Asked by Edmond Condillac

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Edmond Condillac (econ22) said :
#2

Thanks Wyatt Smith, that solved my question.