Like identifying users who are connected to a network, changing the name of the localhost or hostname of your Ubuntu computer can be extremely useful when performing maintenance or applying connection filters so that the speed of the network is not affected. look saturated.
Each operating system, whether for computers or mobile devices, has interesting tools that encourage better identification of connected equipment.
Ubuntu Linux Tools
In this sense, this article would be aimed at users of a specific operating system: Ubuntu Linux. Why? Although it is an operating system that does not present outrageous figures in terms of the number of computers that use it, the community of Linux users continues to grow.
Now, this operating system can be somewhat confusing for many people, mainly because it is software that works, mostly, through codes or commands.
That said, this will be a guide that will help you better understand the tools of this operating system and what you can do with it. You dare?
The customization of the operating system
One of the most relevant characteristics of this Linux distribution is the ability it offers the user to be personalized to their tastes and needs. And this is something really important because it goes far beyond the interface aspect.
What is localhost or hostname?
If you are not very familiar with the term, there is no time to waste. When providing identification to your computer or any other device, it is essential to know it.
To speak of localhost or hostname is to refer, precisely, to a way of identifying a computer, device or system that is connected to a network or a WiFi access point.
Change the localhost or hostname in Ubuntu
There are different alternatives to change the name of the localhost or hostname through the Ubuntu Linux operating system and here each and every one of them will be explained in the simplest way possible so that you can perform this operation successfully.
Hostname command
The first alternative to change the localhost or hostname through the Ubuntu distribution of the Linux operating system is through the following command. Enter the terminal of your computer and comply with the following indications:
- Enter the command: ” hostnamectl status”, this is used to know the current information of the hostname of your computer.
- Using the command ” hostnamectl set-hostname “, enter the new hostname. This way you can modify the identification of the equipment.
Editing files
Another alternative to carry out this action is through the edition of files related to the host of the computer. You can make the change in the following way:
- Modify the configuration file named / etc / hosts /
- Your initial data should have the following structure:
- 127.0.0.1 localhost.localdomain localhost
- 192.168.10.21 new hostname
- Next, modify the / etc / sysconfig / network file, which will cause the following information to be displayed:
- NETWORKING = yes
- HOSTNAME = “enter the new hostname”
- GATEWAY = “192.168.10.21”
- GATEWATDEV = “eth0”
- FORWARD_IPV4 = “yes”
Configuration panel
A final recommended alternative for assigning and configuring your network and a new hostname for your computer is through the Hostinger panel.
Accessing it is very easy, you just have to enter the “Servers” menu that you will find in the navigation bar. Locate the section for the hostname and modify its values to establish a new identification on your computer.
Save the changes and that’s it! The values corresponding to the hostname of your computer will have been modified successfully and in an extremely simple and fast way.
Go ahead and try to change the localhost or hostname of your computer
With this series of quick and easy tools provided by the Ubuntu Linux operating system through its terminal, there is not much more to do. It is a matter of you making the decision to make this type of modification that, although at first, it may seem unnecessary, it does not hurt to do it.
Now that you know how to change the name of the localhost or hostname in Ubuntu, not only will your computer be able to be identified by verifying the number of devices connected to your network, but you will also have new knowledge that other people might not be able to handle. Useful.