Skip to content

Instantly share code, notes, and snippets.

@Pajn
Last active October 19, 2018 14:24
Show Gist options
  • Save Pajn/2e40455804358ed4209ef16038624b52 to your computer and use it in GitHub Desktop.
Save Pajn/2e40455804358ed4209ef16038624b52 to your computer and use it in GitHub Desktop.
Set up WSL

Set up SSH Agent

https://www.daveeddy.com/2017/10/18/persistent-sshagent-on-bash-on-ubuntu-on-windows/

Set up Docker

https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly

Use Windows versions to fix problems

# Hyper not detaching
alias hyper="cmd.exe /c hyper"
# Nmap uses non implemented sockets
alias nmap='"/c/Program Files (x86)/Nmap/nmap.exe"'

Fix X

Configuration:

export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=1
export GTK_THEME="Ant-Dracula"

Fix DBUS:

sudo apt install dbus-x11
sudo dbus-uuidgen --ensure=/etc/machine-id

Utils

alias open='xdg-open'

Create x program shortcut

Example: gnome-terminal

C:\Users\Rasmus\AppData\Local\Microsoft\WindowsApps\ubuntu.exe run "export DISPLAY=127.0.0.1:0; gnome-terminal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment