LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   cannot export DISPLAY (https://www.linuxquestions.org/questions/linux-server-73/cannot-export-display-4175619195/)

wl 12-08-2017 09:16 AM

cannot export DISPLAY
 
Hello - I am trying to export DISPLAY (using below cmd) to my local computer (windows) from Linux server (RHEL 6.9). When I did it first time, I used different ip address (for my local machine, had typo) and was able to see pop up for wizard where I had control to perform different task).


export DISPLAY=localhostip:0.0

After that, it not working at all with correct ip address (for my local machine) or with one that I used it before.

I tried to reboot my local machine (not linux server) but still same issue, not able to open display. I checked /etc/ssh/sshd_config -> where X11FORWARDING is enabled with yes option.

Any workaround?

michaelk 12-08-2017 09:33 AM

What ssh client are you using to connect to the server?

What x server are you running on Windows?

wl 12-08-2017 09:42 AM

I am using MobaXterm.

I am not sure if any 'x server' is there on my machine by default but I didn't installed any. It was working fine before and then it stopped. I believe cause is, I used incorrect ip first time which is still in system (linux) somewhere not letting correct ip address picking up or so - but again its my understanding so far...not 100% sure.

michaelk 12-08-2017 10:35 AM

MobaXterm includes an x server and your DISPLAY variable should be automatically set. Have you looked at the log files on the server?

https://mobaxterm.mobatek.net/documentation.html#1_4

wl 12-08-2017 11:29 AM

thanks Michaelk. I don't know much about MobaXterm setup but I believe something wrong on specific server itself. something (may be any temporary file) needs to go away so everything can start from scratch I think, but don't know what is that :(

michaelk 12-08-2017 11:47 AM

Have you tried not exporting DISPLAY to see what happens?

wl 12-08-2017 01:02 PM

yes, I did. then it is saying DISPLAY environment variable has not been assigned, Thank you.


All times are GMT -5. The time now is 06:31 PM.