filmov
tv
How to Change Hostname in Ubuntu 18.04 LTS Permanently?
Показать описание
How to Change Hostname in Ubuntu 18.04 LTS Permanently?
Method 1: By using command way:-
Step 1: Right click on the desktop, and then click on 'Open terminal.'
Step 2: Run the command below:-
sudo hostnamectl set-hostname your-new-hostname
Step 3: Open the /etc/hosts file by command below, and then change the old hostname to the new one.
sudo nano /etc/hosts
Step 4: Save the file, and exit from nano editor.
Method 2: By Using GUI way:-
Step 1: Click on Panel at the top right.
Step 2: Click on Settings, and then click on 'Details,' and then click on 'About.'
Step 3: In order to change the hostname, change the device name there, and close the settings window.
Step 4: Now, Go to terminal again, open the hosts file and change host name there also.
It's done
Thanks for watching, please like and subscribe
==============================================
#howto #ChangeHostname #Ubuntu
Method 1: By using command way:-
Step 1: Right click on the desktop, and then click on 'Open terminal.'
Step 2: Run the command below:-
sudo hostnamectl set-hostname your-new-hostname
Step 3: Open the /etc/hosts file by command below, and then change the old hostname to the new one.
sudo nano /etc/hosts
Step 4: Save the file, and exit from nano editor.
Method 2: By Using GUI way:-
Step 1: Click on Panel at the top right.
Step 2: Click on Settings, and then click on 'Details,' and then click on 'About.'
Step 3: In order to change the hostname, change the device name there, and close the settings window.
Step 4: Now, Go to terminal again, open the hosts file and change host name there also.
It's done
Thanks for watching, please like and subscribe
==============================================
#howto #ChangeHostname #Ubuntu