Skip to content

Instantly share code, notes, and snippets.

@motabass
Last active October 2, 2019 19:08
Show Gist options
  • Save motabass/573b4889ba83a0105032ed7b845535fa to your computer and use it in GitHub Desktop.
Save motabass/573b4889ba83a0105032ed7b845535fa to your computer and use it in GitHub Desktop.
install wsl 2 GUI
# xserver on windows support
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
export LIBGL_ALWAYS_INDIRECT=1

sudo apt-get install xfce4 sudo apt-get install lightdm sudo service lightdm start

startxfce4

sudo apt install kali-defaults kali-root-login desktop-base cinnamon

sudo update-alternatives --config x-session-manager

wsl --shutdown

apt install lightdm

sudo dpkg-reconfigure gdm3

Linux Remotedesktop:

sudo apt-get install xrdp /etc/init.d/xrdp start

XServer on Windows:

Download -> https://sourceforge.net/projects/vcxsrv/

start with vcxsrv.exe -ac

useradd -m -G sudo -s /bin/bash motabass passwd motabass echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment