Change the "device name" in the details window of System settings

Solution 1:

Execute the following command using a terminal:

sudo sed -i 's/present-host-name/new-host-name/' /etc/hosts
sudo sed -i 's/present-host-name/new-host-name/' /etc/hostname

You can check your present-host-name by cat /etc/hostname or hostname.

Then reboot the computer, to see the changes.

Solution 2:

  • Open a terminal and issue the command

    gksu gedit /etc/hosts
    
  • Then change the line

    127.0.1.1   victor-System-Product-Name
    

    with

     127.0.1.1    your-desired-name
    
  • Then also open the file /etc/hostname with command gksu gedit /etc/hostname and change the hostname there to reflect the new name.

  • Then reboot the computer, to see the changes