LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Export DISPLAY (https://www.linuxquestions.org/questions/linux-general-1/export-display-445725/)

idk666 05-17-2006 11:13 AM

Export DISPLAY
 
I am running FC3, 2.6 kernel (csh) and am unable to open a GUI remotely from another Linux PC (using telnet to connect).

I get the error:

Gtk-WARNING **: cannot open display:..........etc.

Previously in Redhat 9.0 I used the following in my .cshrc and I was able to display remotely fine:


if !($?REMOTEHOST) xhost + > /dev/null


# Set the default X server.
if ($?DISPLAY == 0) then
if ($?REMOTEHOST) then
setenv DISPLAY ${REMOTEHOST}:0
else
setenv DISPLAY :0
endif
endif

This seems incredibly rudimentary, yet it is really bugging me !. Any help would be greatly appreciated.

bathory 05-17-2006 05:03 PM

At the machine you're using type in a console window "xhost +"
Then telnet to the other machine and run: "setenv DISPLAY=<your IP>:0.0
That's it.

wiener 06-03-2009 04:30 PM

can not open DISPLAY over rlogin
 
Hello there,
I'm having a problem which I belive to be of the same type.
I have a Debian box which is connected to a network of Solaris workstations.
I wish to have a Solaris window on my Debian box. I open a xterm and rlogin to the Solaris workstation. So far so good.
Now, when I try to run any X based application, I get a message telling that the DISPLAY could not be opend. I set DISPLAY to <my Debian box IP>:0.0, but still no good.
I'm unable to use the better method of ssh -X, because the Unix machines
refuse this type of connection.
The DISPLAY in my Debian box is :0.0 - which can not be used remotely...
Can anyone help me with this point?
Thanks in advance.

Wyo_Knott 07-02-2009 11:58 AM

I am studying for Linux+ and one of the questions in my study materials is a very similar situation. Unfortunately I have the question twice and with two different answers. I have no way to test out the answeres to see which works ( I only have one linux box and it is currently running single-user/non-gui and hosting my web site) This one question will not stop me from passing the exam but I would like to have a correct answer.
: question:
How can a user view an X Window from a remote system on their local system?

answer choices:
A. from local: export DISPLAY=local:0.0
B. from the remote: export DISPLAY=local:0.0
C. from the local: export DISPLAY=remote:0.0
D. from the remote: export DISPLAY=remote:0.0

I chose answer C and was marked incorrect(D was indicated as correct) then on the same question later in the same study session I chose D and was again incorrect. This time A was indicated as correct.
Go Figure...
Wyo_Knott


All times are GMT -5. The time now is 12:56 AM.