LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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.
 
Old 05-17-2006, 05:03 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
wiener
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
Wyo_Knott
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...
Wyo_Knott
 
  


Reply

Tags
display, rlogin



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 LinuxQuestions.org 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:16 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