This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
other:win10_wsl_1 [2022/08/09 13:50] jypeter [Configuration (in your local Linux account)] Improved |
other:win10_wsl_1 [2022/08/12 12:25] (current) jypeter other:win10wsl renamed to other:win10_wsl_1 (Moved the original page to WSL_1, before starting a WSL2 version (with the same name as the original page)) |
||
---|---|---|---|
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): |
- | * //bash// shell: ''export DISPLAY=localhost:0.0'' | + | * //bash// shell: ''export DISPLAY=localhost:0.0''\\ Can be defined in the ''~/.bashrc'' file |
- | * //tcsh// shell: ''setenv DISPLAY localhost:0.0'' | + | * //tcsh// shell: ''setenv DISPLAY localhost:0.0''\\ Can be defined in the ''~/.login'', or the ''~/.cshrc'' file |
* <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]]) | * <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]]) |