Skip to content

Instantly share code, notes, and snippets.

@yunghoy
Created July 12, 2020 13:05
Show Gist options
  • Save yunghoy/73d444611ecfddb1a92aacea8ac4b4a9 to your computer and use it in GitHub Desktop.
Save yunghoy/73d444611ecfddb1a92aacea8ac4b4a9 to your computer and use it in GitHub Desktop.
snap in WSL2
sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment