WSLg (Windows Subsystem for Linux GUI)
What?
- [[WSLg (Windows Subsystem for Linux GUI)]]
- introduced in WSL 2, built-in support for GUI applications
- automatically handles Linux GUI display without needing a separate [[X server for Windows]].
Why?
How?
How to Setup [[WSLg (Windows Subsystem for Linux GUI)]]
## Update list of available packages
sudo apt update
## Gedit
sudo apt install gedit -y
## GIMP
sudo apt install gimp -y
## Nautilus
sudo apt install nautilus -y
## VLC
sudo apt install vlc -y
## X11 apps
sudo apt install x11-apps -y
[[Google Chrome]]
## Google Chrome
cd /tmp
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install --fix-broken -y
sudo dpkg -i google-chrome-stable_current_amd64.deb
[[Microsoft Teams]]
## Microsoft Teams
cd /tmp
sudo curl -L -o "./teams.deb" "https://teams.microsoft.com/downloads/desktopurl?env=production&plat=linux&arch=x64&download=true&linuxArchiveType=deb"
sudo apt install ./teams.deb -y
[[Microsoft Edge]]
sudo curl https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-dev_118.0.2060.1-1_amd64.deb -o /tmp/edge.deb
sudo apt install /tmp/edge.deb -y
[[DBeaver]]
# dbeaver
cd /tmp
sudo curl -L -o "./dbeaver.deb" "https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb"
sudo apt install ./dbeaver.deb
# dbeaver-ce
How to Setup PulseAudio in [[WSLg (Windows Subsystem for Linux GUI)]]
sudo apt update
sudo apt install pulseaudio
pulseaudio --start
ps aux | grep pulseaudio
ls /mnt/wslg/PulseServer
# configure
mkdir -p ~/.config/pulse && echo "default-server = unix:/mnt/wslg/PulseServer" > ~/.config/pulse/client.conf
cat ~/.config/pulse/client.conf
# restart
pulseaudio --kill
pulseaudio --start
# ls /home
# sudo -u user pulseaudio --start
# check logs
cat /mnt/wslg/pulseaudio.log