How to Change Your Computer Name in Ubuntu

Method 1 of 7:

Open the Run dialog And Gnome Text Editor

  1. How to Change Your Computer Name in Ubuntu Picture 1
    Open the Run dialog by pressing on Alt+F2 buttons on your keyboard.
  2. How to Change Your Computer Name in Ubuntu Picture 2
    When Run dialog is opened, you need to type following command or to use copy/paste method: gksu gedit /etc/hostname
Method 2 of 7:

Enter Password

  1. How to Change Your Computer Name in Ubuntu Picture 3
    After you hit Enter or click on the 'Run' button, you'll be asked for a password, so type password and hit Enter.
Method 3 of 7:

Use Gnome Text Editor

  1. How to Change Your Computer Name in Ubuntu Picture 4
    A new window will open, which is Gedit. In some cases it will say 'PC', but in your case, you may see some different name, so in that window replace the text with your desired name.
  2. How to Change Your Computer Name in Ubuntu Picture 5
    Don't forget to save your file before closing the file. You can do that if you click on 'Save' icon or just hit Ctr+S buttons. After that, close Gedit.
Method 4 of 7:

Open the Run dialog

  1. How to Change Your Computer Name in Ubuntu Picture 6
    Open the Run dialog again by pressing on Alt+F2 buttons on your keyboard.
  2. How to Change Your Computer Name in Ubuntu Picture 7
    When Run dialog is opened, type in the following command or to use copy/paste method: gksu gedit /etc/hosts
Method 5 of 7:

Enter Password

  1. How to Change Your Computer Name in Ubuntu Picture 8
    After you hit Enter or click on 'Run' button, it will ask you for the password. Type password and hit Enter.
Method 6 of 7:

Use Gnome Text Editor

  1. How to Change Your Computer Name in Ubuntu Picture 9
    Now for the second time, Gedit is opened. In may say 'PC' again (last line of the first block), so in that window, replace the text with the same desired name that you choose last time.
  2. How to Change Your Computer Name in Ubuntu Picture 10
    Don't forget to save your file before closing it. You can do that if you click on 'Save' icon, or just hit Ctr+S buttons. After that, close Gedit.
Method 7 of 7:

Use Terminal

  1. How to Change Your Computer Name in Ubuntu Picture 11
    The last step is to restart your system. When you're back on desktop again, open a Terminal (To open Terminal, press Ctrl+Alt+T on your keyboard or go to Applications > Accessories > Terminal, which is located in main menu ) window and you should see that your computer name has changed.
4.3 ★ | 3 Vote

May be interested

  • How to Edit Ubuntu RepositoriesPhoto of How to Edit Ubuntu Repositories
    has a website told you to add a ubuntu repository? then follow these steps. any changes require you to be in the 'sudo' user group and have your password handy. open the ubuntu software centre.
  • How to Install Ubuntu in WindowsPhoto of How to Install Ubuntu in Windows
    this wikihow teaches you how to install and run ubuntu linux on your windows computer's desktop. you'll use a free program called virtualbox to do so; this will allow you to run ubuntu without having to replace your current operating...
  • How to Set Up vsftpd FTP on Ubuntu LinuxPhoto of How to Set Up vsftpd FTP on Ubuntu Linux
    this tutorial will show you how to set up your own ftp in ubuntu linux. with it, you can make your own file storage server, file storage website, or use as an ftp client. install vsftpd .
  • How to Migrate from Windows to UbuntuPhoto of How to Migrate from Windows to Ubuntu
    when migrating from windows to ubuntu, there are a few things you might need to reflect over, like how to cope the new system, the new interface, and how to adapt to ubuntu in general, and of course, how to transfer your personal files...
  • How to Install Themes in UbuntuPhoto of How to Install Themes in Ubuntu
    this wikihow teaches you how to install themes on ubuntu 18.04 lts. many themes from ubuntu's software repositories can be installed in a terminal window. some themes must be manually extracted using archive manager. to apply installed...
  • How to Create Your First Qt Program on Ubuntu LinuxPhoto of How to Create Your First Qt Program on Ubuntu Linux
    the qt (sdk) software development kit is a portable cross platform application user interface framework which works on the windows, linux and mac os x operating systems. qt sdk helps you create graphical user interfaces (gui's) for your...