Sometimes you need to rename your Linux Mint computer and change its host name. This can be done without a restart. Let's see how you can modify the PC name.
Linux Mint stores the PC name in a couple of files. To rename it, you need to edit those files. Once you edit them, you need to restart your PC for the changes take the effect. However, you can avoid the reboot if you follow the trick below.
To Rename Computer in Linux Mint and Change PC Host Name, do the following.
- Open the Root Terminal.
- Edit the file /etc/hostname with your favorite text editor. It can be Gedit, Xeditor, vi, nano - any graphical or console app you like.It contains your current PC name.
- Change the PC name in the file and save it.
- Now, edit the file /etc/hosts. You need to change the lines which point to the old host name.
Here is how my file looks before making any changes:
I need to change the PC name on the second line.
- Save the file and exit your editor. Now, you need to tell the operating system that the host name has changed and the PC has been renamed. Execute the following command:
In my case, I run the following command:
Linux Mint is one of the most popular distros these days. The operating system has different editions with various desktop environments. The team behind the distro ships ISO images with XFCE, MATE, Cinnamon and KDE. The method described above is suitable for any desktop environment.
The popularity of Linux Mint can be explained by two major factors. The first is that it's Ubuntu based, so it has a lot of software available for it and good hardware support as well. It is compatible with almost all Ubuntu apps and drivers. The second reason is that it has user environments with the traditional desktop look. Desktop environments in Linux Mint provide a classic taskbar, an Apps menu and the system tray along with the menu bar for all apps. This makes them attractive for users who cannot stand the user interface changes made in Gnome 3 and Unity.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: