In this video, I have explained how to change hostname permanently on Ubuntu running on Windows WSL (Windows Subsystem for Linux) environment.
Have also posted the step by step details in the following article https://www.srccodes.com/change-hostn...
Steps:
0:00 Introduction
0:11 Note hostname
0:20 Update /etc/wsl.conf
[network]
hostname = SrcCodes
generateHosts = false
1:50 Re-launch Ubuntu
wsl --list --running
wsl --shutdown
wsl -t Ubuntu
3:59 Unable to resolve host?
sudo apt update
sudo: unable to resolve host SrcCodes: Name or service not known
4:29 Update /etc/hosts
5:34 Verify
#windows10 #wsl2 #ubuntu #srccodes
~~~~~~~~~~~~~~~~~~~~~
For more tutorials subscribe & follow
Youtube: https://bit.ly/srccodes
Facebook: / srccodes
Twitter: https://twitter.com/intent/follow?sou...
Website: https://www.srccodes.com
Please Like and Subscribe to support this channel.