Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-17-2006, 11:13 AM   #1
Registered: Aug 2005
Posts: 39

Rep: Reputation: 15

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 :0

This seems incredibly rudimentary, yet it is really bugging me !. Any help would be greatly appreciated.
Old 05-17-2006, 05:03 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
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.
Old 06-03-2009, 04:30 PM   #3
LQ Newbie
Registered: Jun 2009
Posts: 22

Rep: Reputation: 0
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.
Old 07-02-2009, 11:58 AM   #4
LQ Newbie
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
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...


display, rlogin

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export HP-UX display to linux box xgreen Other *NIX 5 07-06-2007 08:58 AM
Trying to export display automatically in Linux ? lab123 Linux - Networking 0 09-29-2005 08:33 AM
how to export the display bruse Linux - Networking 18 05-03-2005 09:13 PM
can't export my display to another systems jaybrus Member Intro 2 05-15-2004 04:29 AM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM > Forums > Linux Forums > Linux - General

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

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