Difference between revisions of "Wsl2"
Jump to navigation
Jump to search
(Created page with "https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn | https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn | ||
+ | |||
+ | |||
+ | sudo vim /etc/wsl.conf | ||
+ | ``` | ||
+ | |||
+ | [boot] | ||
+ | systemd=true | ||
+ | |||
+ | [automount] | ||
+ | options = "metadata" | ||
+ | |||
+ | [network] | ||
+ | generateResolvConf = false | ||
+ | |||
+ | [user] | ||
+ | default=myuser | ||
+ | ``` | ||
+ | C:\Users\jebusk\AppData\Local\Packages | ||
+ | |||
+ | |||
+ | ``` | ||
+ | wsl --terminate Ubuntu-22.04 | ||
+ | wsl --export Ubuntu-22.04 .\bkp\Ubuntu-22.04.wslv1.tar | ||
+ | mkdir wsl | ||
+ | wsl --import newName .\wsl\j .\bkp\Ubuntu-22.04.wslv1.tar | ||
+ | wsl --set-default newName | ||
+ | bash | ||
+ | |||
+ | sudo ln -s /mnt/wsl/resolv.conf /etc/resolv.conf | ||
+ | ``` |
Latest revision as of 18:26, 25 April 2024
https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn
sudo vim /etc/wsl.conf
<br />[boot] systemd=true [automount] options = "metadata" [network] generateResolvConf = false [user] default=myuser
C:\Users\jebusk\AppData\Local\Packages
wsl --terminate Ubuntu-22.04 wsl --export Ubuntu-22.04 .\bkp\Ubuntu-22.04.wslv1.tar mkdir wsl wsl --import newName .\wsl\j .\bkp\Ubuntu-22.04.wslv1.tar wsl --set-default newName bash sudo ln -s /mnt/wsl/resolv.conf /etc/resolv.conf