LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-08-2017, 09:16 AM   #1
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Rep: Reputation: Disabled
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?
 
Old 12-08-2017, 09:33 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
What ssh client are you using to connect to the server?

What x server are you running on Windows?
 
Old 12-08-2017, 09:42 AM   #3
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-08-2017, 10:35 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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
 
Old 12-08-2017, 11:29 AM   #5
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-08-2017, 11:47 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Have you tried not exporting DISPLAY to see what happens?
 
Old 12-08-2017, 01:02 PM   #7
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
yes, I did. then it is saying DISPLAY environment variable has not been assigned, Thank you.
 
  


Reply

Tags
configuration, remotecontrol, rhel6, system admin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is export DISPLAY=:0 yureka Linux - Newbie 3 07-05-2012 12:26 PM
Export DISPLAY idk666 Linux - General 3 07-02-2009 11:58 AM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 02:51 AM
What is the difference between DISPLAY= and export DISPLAY=?? john test Linux - Newbie 4 09-01-2008 06:41 PM
export DISPLAY binary_0011 Linux - Newbie 2 10-15-2006 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration