Table of Contents

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

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies