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 04-27-2006, 09:30 AM   #1
chucker8
Member
 
Registered: Nov 2005
Posts: 52

Rep: Reputation: 15
question about DISPLAY variable


From my desktop, I launch a terminal window.

I connect to ServerA (SLES 9) which has gnome as DE.

ssh -X root@ServerA

I type:
# echo $DISPLAY
localhost:10.0

However, I connect in same way to Server B (SLES 9) which has no GUI

ssh -X root@ServerB

# echo $DISPLAY


Why is no display being set on Server B?
thanks!
 
Old 04-27-2006, 09:51 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
-X tells SSH to forward the X11 connection, which basically says that any graphical stuff gets "forwarded" from the remote server, over the encrypted SSH link, to your local machine.
Hence, you can see it.

ssh -X probably plays around with the $DISPLAY variable and alike to make this happen.

If you don't have an X server running (like on serverB ie text mode), the -X will have no effect, since there is no X server to actually use the forwarded X connection.
Sounds logical, no?

Why ssh then doesn't change/set $DISPLAY in that case, is probably just a logical consequence of this.

However, I'm no ssh/X expert, so I can be wrong on this one.
 
  


Reply



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
DISPLAY variable value behind firewall atifali Linux - General 1 02-26-2006 08:11 AM
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 11:14 AM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM
DISPLAY environment variable danahata Slackware 2 02-26-2004 03:30 PM
Display Variable Problem blas Linux - Newbie 2 11-21-2003 11:58 AM

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

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