User Tools

Site Tools


other:win10_wsl_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
other:win10_wsl_1 [2022/08/08 16:04]
jypeter [Configuration (in your local Linux account)]
other:win10_wsl_1 [2022/08/09 14:00]
jypeter [Configuration (in your local Linux account)] Improved
Line 309: Line 309:
 ==== Configuration (in your local Linux account) ==== ==== Configuration (in your local Linux account) ====
  
-  * Set the DISPLAY variable in the shell (by hand, or in the bash shell init file) +  * Set the ''​DISPLAY'' ​variable in the shell by hand, or automatically ​in the shell configuration ​file(s): 
-    * ''​export DISPLAY=localhost:​0.0''​ +    * //bash// shell: ​''​export DISPLAY=localhost:​0.0''​\\ Can be defined in the ''​~/​.bashrc''​ file 
-    * <wrap em>​Warning!<​/wrap> ​''​export ​DISPLAY=:​0.0'' ​will also work for using graphical windows locally, but will fail when trying to open a window on a remote computer, with a ''​connect /tmp/.X11-unix/​X0:​ No such file or directory'' ​error message ([[https://unix.stackexchange.com/​questions/​57138/​why-does-my-x11-forwarding-attempt-fail-with-connect-tmp-x11-unix-x0-no-such/​|source]])+    * //tcsh// shell: ​''​setenv ​DISPLAY ​localhost:​0.0''​\\ Can be defined in the ''​~/.login'', ​or the ''​~/.cshrc''​ file  ​
  
-  * VcXsrv ​**and WSL2** : check ''​export DISPLAY=$(cat /​etc/​resolv.conf | grep nameserver | awk '​{print $2}'​):​0.0''​ in [[https://​solvercube.com/​how-to-install-ubuntu-20-04-on-windows-using-wsl/​|How to install Ubuntu 20.04 on Windows using WSL]]+  * <wrap em>​Warning!</​wrap>​ ''​export DISPLAY=:​0.0''​ will also work for using graphics locally, but **will fail when trying to use graphics on a remote computer**, with a ''​connect /​tmp/​.X11-unix/​X0:​ No such file or directory''​ error message ([[https://​unix.stackexchange.com/​questions/​57138/​why-does-my-x11-forwarding-attempt-fail-with-connect-tmp-x11-unix-x0-no-such/​|source]]) 
 + 
 +  * FIXME **//X server// ​and WSL2** : check ''​export DISPLAY=$(cat /​etc/​resolv.conf | grep nameserver | awk '​{print $2}'​):​0.0''​ in [[https://​solvercube.com/​how-to-install-ubuntu-20-04-on-windows-using-wsl/​|How to install Ubuntu 20.04 on Windows using WSL]]
  
  
other/win10_wsl_1.txt · Last modified: 2022/08/12 12:25 by jypeter