Skip to content

Instantly share code, notes, and snippets.

@ph5i
Created February 12, 2025 08:13
Show Gist options
  • Save ph5i/c08c9c0d947214d5c4627b18acf79ed8 to your computer and use it in GitHub Desktop.
Save ph5i/c08c9c0d947214d5c4627b18acf79ed8 to your computer and use it in GitHub Desktop.
change hostname wsl
sudo vi /etc/hostname
<OLD> --> wsl
sudo vi /etc/hosts
:%s/<OLD>/wsl/g
sudo vi /etc/wsl.conf
[network]
hostname=wsl
generateHosts=false
# from powershell
wsl --shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment