Skip to content

Instantly share code, notes, and snippets.

@JHerseth
Created April 10, 2020 09:41
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 JHerseth/50478148a52e0ac82b730dfccab9a25e to your computer and use it in GitHub Desktop.
Save JHerseth/50478148a52e0ac82b730dfccab9a25e to your computer and use it in GitHub Desktop.
bash -x /etc/profile.d/00-pengwin.sh
bash -x /etc/profile.d/00-pengwin.sh
+ id -Gn
+ grep -c 'adm.*sudo\|sudo.*adm'
+ '[' -n /run/WSL/781_interop ']'
++ wslpath 'C:\Windows\System32\ipconfig.exe'
+ ipconfig_exec=/c/Windows/System32/ipconfig.exe
+ command -v ipconfig.exe
++ command -v ipconfig.exe
+ ipconfig_exec=/c/Windows/system32/ipconfig.exe
++ eval '/c/Windows/system32/ipconfig.exe 2> /dev/null'
+++ /c/Windows/system32/ipconfig.exe
++ grep -n -m 1 'Default Gateway.*: [0-9a-z]'
++ cut -d : -f 1
+ wsl2_d_tmp=11
+ '[' -n 11 ']'
++ eval /c/Windows/system32/ipconfig.exe
+++ /c/Windows/system32/ipconfig.exe
++ sed '7,11!d'
++ grep IPv4
++ cut -d : -f 2
++ sed -e 's|\s||g' -e 's|\r||g'
+ wsl2_d_tmp=192.168.1.80
+ export DISPLAY=192.168.1.80:0.0
+ DISPLAY=192.168.1.80:0.0
+ sudo /usr/local/bin/wsl_change_checker 2 WSL2 '192.168.1.80:0\.0'
+ sudo /usr/local/bin/wsl2_ip_checker 192.168.1.80
Detected: IP Changed from to 192.168.1.80. Restart Pengwin to apply changes.
+ export WSL2=2
+ WSL2=2
+ unset wsl2_d_tmp
+ unset ipconfig_exec
+ command -v glxinfo
+ unset LIBGL_ALWAYS_INDIRECT
+ sudo /usr/local/bin/libgl-change-checker 0
+ export NO_AT_BRIDGE=1
+ NO_AT_BRIDGE=1
+ alias 'clear=clear -x'
+ alias 'll=ls -al'
+ command -v cmd.exe
+ '[' '!' -f /home/jonas/.firstrun ']'
+ wslpath 'C:\'
++ cmd-exe /c 'echo %HOMEDRIVE%%HOMEPATH%'
++ tr -d '\r'
+ wHomeWinPath='C:\Users\jonas'
++ wslpath -u 'C:\Users\jonas'
+ export WIN_HOME=/c/Users/jonas
+ WIN_HOME=/c/Users/jonas
+ win_home_lnk=/home/jonas/winhome
+ '[' '!' -e /home/jonas/winhome ']'
+ unset win_home_lnk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment