Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Last active March 29, 2020 05:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebReflection/875011a65f84354df90e58999c602a5b to your computer and use it in GitHub Desktop.
Save WebReflection/875011a65f84354df90e58999c602a5b to your computer and use it in GitHub Desktop.
Debian on Windows

Enable WSL

Search for Turn Windows features on or off and enable Windows Subsytem for Linux

Install Debian from Windows Store

Go to Windows Store and seach for Linux Debian

Install from it, and configure it for the first time.

Install essentials + GUI

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential curl git gjs
# optionally
# sudo apt-get install libwebkit2gtk-4.0
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Configure env for VcXsrv

echo '
export DISPLAY=:0
export GTK_THEME=Adwaita:dark
export LIBGL_ALWAYS_INDIRECT=true
gjs -c "imports.gi.Gtk.init(null)" 2> /dev/null || /mnt/c/Program\ Files/VcXsrv/xlaunch.exe > /dev/null 2>&1
' >> .bashrc

Install VcXsrv

Go to the VcXsrv sourceforge page and install it with defaults.

Once installed, enter Debian, go through all settings, and see GUI enabled.

Test GUI and GJS Works

gjs <(curl -Ls archibold.io/test/gjs/hello)

gjs

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