Linux uses Host Name to connect
Tested on Ubuntu 20.04.
In Windows, the "computer name" can be used for network connection, so no matter how the IP is changed in the local network, the connection setting does not need to be changed. In Linux, there is the same thing, which is to use Host Name to connect.
During the Ubuntu installation process, you will need to fill in the "your computer name". In fact, the Host Name is set, but it cannot be used to connect by default. This article gives examples of two ways to open it:
Install Samba
Samba is a commonly used communication component with Windows. If you use the nmbd component, it can support NetBIOS to allow various Windows applications to connect without complicated settings. If you use the Ubuntu desktop, just share any folder and you will be asked if you want to install Samba. Click Yes and you are done.
The command installation method is:
sudo apt-get install samba
This method is easy to use for small offices or small area networks. It should be noted that sometimes the host name ping will not work after samba settings are changed, and manual configuration is required.
BIND ISC
BIND is a world-renowned DNS Server software that directly configures /etc/named settings. Suitable for large-scale local network management.
After completion, you can use ping HOST_NAME to test, and replace HOST_NAME with the previous setting.
Comments
Post a Comment