Skip to content

Instantly share code, notes, and snippets.

@juneoh
Last active April 1, 2017 18:57
Show Gist options
  • Save juneoh/67f6fadd6e9fe4361eb23d2c5f84985a to your computer and use it in GitHub Desktop.
Save juneoh/67f6fadd6e9fe4361eb23d2c5f84985a to your computer and use it in GitHub Desktop.
WSL + VcXsrv
# Add script to Task Scheduler on system boot
CreateObject("Wscript.Shell").Run "C:\Windows\System32\bash.exe -l -c 'sudo /usr/sbin/sshd -D'",0,True
export TERM=xterm-256color
tmux
"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -clipboard -wgl -multiwindow
CreateObject("Wscript.Shell").Run "C:\Windows\System32\bash.exe -l -c 'DISPLAY=:0 xfce4-terminal --default-working-directory=/home/june/ -x '/home/june/load.sh''",0,True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment