Skip to content

Instantly share code, notes, and snippets.

@ahmad-alwazzan
Created March 22, 2023 17:56
Show Gist options
  • Save ahmad-alwazzan/4db052947e6c1f13207701b93335f6c9 to your computer and use it in GitHub Desktop.
Save ahmad-alwazzan/4db052947e6c1f13207701b93335f6c9 to your computer and use it in GitHub Desktop.
wsl2 x11 forwarding to x11 server
paste this line in your bashrc
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment