This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:x_conf [2022/08/08 14:57] jypeter [On a Windows computer with WSL+Linux and an X server installed] Improved |
other:x_conf [2022/08/08 15:49] jypeter [Nothing works!] Improved |
||
---|---|---|---|
Line 198: | Line 198: | ||
* Have you configured [[other:putty_conf|PuTTY]] and/or other required applications correctly ? | * Have you configured [[other:putty_conf|PuTTY]] and/or other required applications correctly ? | ||
* Is the ''DISPLAY'' variable defined correctly on the local and remote computer? | * Is the ''DISPLAY'' variable defined correctly on the local and remote computer? | ||
+ | |||
+ | === When DISPLAY is not defined correctly === | ||
+ | |||
+ | If the ''DISPLAY'' **variable is not defined (correctly)**, you will get a ''Can't open display: //[NO VALUE DISPLAYED HERE]//'' error | ||
+ | |||
+ | <code>$ xterm & | ||
+ | $ xterm: Xt error: Can't open display: | ||
+ | xterm: DISPLAY is not set | ||
+ | $ echo $DISPLAY | ||
+ | |||
+ | </code> | ||
+ | |||
+ | Make sure that you are using ''ssh -X'' or ''ssh -Y'', or that [[other:putty_conf#changing_some_useful_settings|PuTTY is configured]] with ''Enable X11 forwarding'' | ||
+ | |||
+ | === When there is no X server running === | ||
+ | |||
+ | If the ''DISPLAY'' variable is defined, but there is **no X server**, you will get a ''Can't open display: localhost://[SOME VALUE]//'' error\\ <code>$ xterm & | ||
+ | $ connect localhost port 6000: Connection refused | ||
+ | xterm: Xt error: Can't open display: localhost:12.0</code> | ||
+ | |||
+ | Time to [[other:x_conf|read this page again]]... | ||
==== OpenGL related settings ==== | ==== OpenGL related settings ==== | ||