WSL2
Windows
Configuration
Edit or create the config file
notepad C:\Users\USERNAME\.wslconfig
Enable X11 apps and mirrored networking for IPv6
[wsl2] guiApplications=true networkingMode=mirrored
Restart WSL2
wsl --shutdown
Linux
WSL
vi /etc/wsl.conf
[boot] systemd=true [network] generateResolvConf=false
RESOLVER
vi /etc/resolv.conf
search example.com nameserver 1.1.1.1 nameserver 8.8.8.8
X11
You will need to create a working link when you start a shell.
.login
#! /bin/sh mkdir -p /tmp/.X11-unix ln -sf /mnt/wslg/.X11-unix/X0 /tmp/.X11-unix/X0
TCSH
setenv DISPLAY :0

