How do i change my pc name.

Asked by Chathuranga

Hi!
I want know how do i change my pc name. Now my pc name is "intel pc" log in name is " intel" i want change my pc name to intel ubuntu pc.
Please solve my problem.
Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

Try following the steps below:

1. Open the terminal.

2. Input the following command:

gksudo gedit /etc/hostname

3. Input the password

4. Replace the "intel pc" name and Save/Close the file

5. From the same terminal, restart the system:

sudo shutdown -r now

Revision history for this message
A. Denton (aquina) said :
#2

You can also do it in a shell with »sudo nano -w "/etc/hostname"«. ;-)

Revision history for this message
Ian Ace (iaculallad) said :
#3

Edit also your /etc/hosts file:

gksudo gedit /etc/hosts

and change the values to your desired name:

127.0.0.1 localhost hostname
127.0.1.1 hostname

Save and close and restart.

Revision history for this message
A. Denton (aquina) said :
#4

Chathuranga Bandara Udagama did this solve your question?

Revision history for this message
A. Denton (aquina) said :
#5

Unfortunately I do not have the powers to change the state of this question to SOLVED, EXPIRED or INVALID. Someone here at Launchpad either grant me that permission or simply apply the change in state to this question, please.

Can you help with this problem?

Provide an answer of your own, or ask Chathuranga for more information if necessary.

To post a message you must log in.