how to change the device name that is in the systms settings , details window.

Asked by R. McAllister

I would like to change the name that shows in Systems Settings under the icon Details in the Overview section called Device name. This name also shows up as the prompt In the Terminal. An error was made when it was originally entered.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
R. McAllister (mcps-mct) said :
#1

This is in Ubuntu 14.04LTS.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Do you mean the system name. If you run;

hostname

In a terminal, is that what you wish to change?

Thanks

Revision history for this message
Thomas Krüger (thkrueger) said :
#3

1. open the Terminal
2. run the command:
   sudoedit /etc/hostname
3. if (!) asked for your password: enter it; if asked to choose an editor answer: nano
4. edit the hostname as wished, user numbers, normal letters and - only.
5. Hit Ctrl+X, then Y, then Enter
6. reboot your machine.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

You also need to edit /etc/hosts or sudo won't work after the reboot.

run:

sudo gedit /etc/hosts &

Then minimize gedit and run:

sudo gedit /etc/hostname

Now edit both files. Save the changes and reboot.

Revision history for this message
R. McAllister (mcps-mct) said :
#5

I do not understand what actionparsnip means when he said "Then minimize gedit and run:". Are the commands that are suggested to be run before the reboot or after and after Thomas Krüger proposed answer. And is the "& " part of the one command?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

What isnt to 'get'? The first command (yes the ampersand is part of the command) will run a text editor. Minimize the gedit Window (this is exactly the same in MacOS, Windows or any OS you have used....it puts the application in the Unity launcher and out of the way). You are now able to run the second command in the same terminal..... You can now edit both files and reboot.

Revision history for this message
R. McAllister (mcps-mct) said :
#7

I would like to thank actionparsnip for his help and follow up
instructions. But what I really don't get is his condescending attitude.
Not all of use are as some say part of the computer generation and have
little understand of these things but we try to make our way. I think a
site like this should be for everyone not just the know it alls.

On Wed, Jul 2, 2014 at 12:32 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #251074 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/251074
>
> actionparsnip posted a new comment:
> What isnt to 'get'? The first command (yes the ampersand is part of the
> command) will run a text editor. Minimize the gedit Window (this is
> exactly the same in MacOS, Windows or any OS you have used....it puts
> the application in the Unity launcher and out of the way). You are now
> able to run the second command in the same terminal..... You can now
> edit both files and reboot.
>
> --
> You received this question notification because you asked the question.
>