Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active December 21, 2023 19:51
Show Gist options
  • Save remlapmot/10deb877858b1cdaa9afcbe6208b68f5 to your computer and use it in GitHub Desktop.
Save remlapmot/10deb877858b1cdaa9afcbe6208b68f5 to your computer and use it in GitHub Desktop.
Install MATE desktop on WSL 2
sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-mate-desktop --no-install-recommends -y
sudo apt-get install mate-desktop-environment-extras
sudo dpkg-reconfigure dbus && sudo service dbus restart
# install missing icons
sudo apt install ubuntu-mate-icon-themes
# install fira code font
sudo apt install fonts-firacode
# install roboto and noto fonts
sudo apt install fonts-roboto fonts-noto
# remove error report and some components:
sudo apt remove apport *screensaver* update-notifier blueman -y
# if problems relating to dconf
sudo chown 1000:1000 /home/USERNAME/.cache/dconf/user
# helpful for wsl
sudo apt-get install ubuntu-wsl
# For remote desktop
sudo apt-get install xrdp
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
sudo /etc/init.d/xrdp start
@remlapmot
Copy link
Author

remlapmot commented Mar 30, 2020

  • Following instructions here.
  • Switch to a MATE dark theme for all the icons to appear.
  • There is a very helpful guide for Xfce here.
  • WSL can use Windows fonts by creating a /etc/fonts/local.conf file as described here
  • On Windows instead of accessing the graphical desktop through an X11 client, remote desktop can be used instead.
    • In WSL find IP address with ip addr
    • Follw instructions here

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