Skip to content

Instantly share code, notes, and snippets.

@dannysauer
Created December 28, 2020 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannysauer/d1d6bac0ad47f8de1be3e00e37513309 to your computer and use it in GitHub Desktop.
Save dannysauer/d1d6bac0ad47f8de1be3e00e37513309 to your computer and use it in GitHub Desktop.
windows Linux setup
  1. Install WSL2 w/ updates

  2. Get a Linux distro from Windows store

  • OpenSUSE Leap 15.2
  • Ubuntu 20.04
  1. Fix mount for permissions and resolv.conf
  1. link a dev directory
  2. set up linked .ssh config
  3. install X410 (pay the $10)
  4. add DISPLAY var to .profile
  • export DISPLAY=$( awk '$1=="nameserver"{print $2}' /etc/resolv.conf ):0.0
  • export DISPLAY=$(ip r list default | awk '{print $3":0.0"; exit}')
  1. set system to use Windows fonts
  1. set up git prompt
  • check out
  • edit .bashrc
  • _GITPROMPT=$HOME/devel/bash-git-prompt/gitprompt.sh
    if [[ -f "$_GITPROMPT" && -r "$_GITPROMPT" ]]
    then
        GIT_PROMPT_ONLY_IN_REPO=1
        source "$_GITPROMPT"
    fi
    unset _GITPROMPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment