How to Change Your Computer Name in Ubuntu
If you ever wished to change your computer name, here is how to do it. Many people think that this is possible only if you do reinstall the operating system, but this is not true. There are few commands to make job done. Just follow the...
Method 1 of 7:
Open the Run dialog And Gnome Text Editor
- Open the Run dialog by pressing on Alt+F2 buttons on your keyboard.
- 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
- 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
- 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.
- 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
- Open the Run dialog again by pressing on Alt+F2 buttons on your keyboard.
- 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
- 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
- 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.
- 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
- 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.
Update 04 March 2020
You should read it
- How to Open Password-Protected Excel Files
- The method of Crack Passwords
- Use an 8-character Windows NTLM password? Congratulations, your password may be unlocked after only 2.5 hours
- SQL Server 2005 - Hack encrypted data by password
- Method in HTTP
- Forgot iPhone password, what to do?
- How to Open a Digital Safe Without a Key
- How to Get Someone Else's Facebook Password
- How to hack Wifi password with Aircrack-Ng
- How to Remove a Password on Windows
- Top 3 best password management software 2020
- How to Reset Admin Password on Mac OS X