Skip to content

Instantly share code, notes, and snippets.

@marcussacana
Last active February 6, 2023 22:49
Show Gist options
  • Save marcussacana/aa81a69b2f750f8770c8a3ba343875a0 to your computer and use it in GitHub Desktop.
Save marcussacana/aa81a69b2f750f8770c8a3ba343875a0 to your computer and use it in GitHub Desktop.
ZorinOS WSL2 Distro

Zorin OS Distro for WSL2

  1. Download Here
  2. Run the "Install Zorin.bat"
  3. Installed!

Post Install

Run ZorinOS in your windows CMD, then in the first startup it will prompt you with a username
Be sure to put a unix username without any special characters, and in lower case.
It will prompt some info after that, everything optional, you can leave empty.
After create the user i will run a auto update, just wait it.

Zorin-Appearence Crash Fix

  1. Open the /usr/lib/python3/dist-packages/zorin_appearance/envoriment.py
  2. Replace the line _desktop_environment = os.environ['XDG_CURRENT_DESKTOP'] with this code:
try:
	_desktop_environment = os.environ['XDG_CURRENT_DESKTOP']
except:
	_desktop_environment = "GNOME"

Full Desktop Shell

Currently the Zorin Desktop isn't working very well, and I don't know why. But the most near of run the desktop it was with this command:

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 && export XDG_CURRENT_DESKTOP=x11 && export GDK_BACKEND=x11 export LIBGL_ALWAYS_INDIRECT=0 && export XDG_SESSION_TYPE=x11 && sudo su $USER -c 'gnome-shell --x11 --mode=zorin'

It started the shell but it crashes with some random apps.

@marcussacana
Copy link
Author

I updated the gist.

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