LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-01-2008, 10:57 AM   #1
lapope
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
SSH not setting Display variable


I just purchased an asus eee pc specifically for the purpose of remote logging in to other computers. I am using the default ssh settings that came with the xandros operating system, and they don't seem to be setting the display variable properly. This is what I get when I ssh using X11 forwarding:

ssh -l -X lapope@astrolab03.astro.washington.edu
Last login: Fri Aug 29 11:09:42 2008
DISPLAY: Undefined variable.

The problem is not with the remote host, I have successfully ssh'd into it from other computers before without this issue.

What do I need in my ssh_config file or anywhere else that will automatically set up the display variable like it's supposed to?
 
Old 09-01-2008, 12:06 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I am not sure about the error you are getting, but what happens if you enter env | grep DISP in a terminal on the eee?
It should return something like DISPLAY=:0.0

I got fed up with xandros on my eee701 and put kubuntu 8.04 on it
Details are on the eee wiki at http://wiki.eeeuser.com/
 
Old 09-01-2008, 12:18 PM   #3
lapope
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I tried that just now, and it did return DISPLAY=:0.0
The problem is only when I try and open something like an xterm or emacs window while ssh'd into another host.
 
Old 09-01-2008, 12:40 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
OK, $DISPLAY is set properly.

I don't know why this is happening. I gave up on ssh -X (remembers... have you tried ssh -Y ?) because I found using a vncserver and vncviewer both easier and prettier. You can install these on your eee, but I think you might have to enable the Debian repositories (see the wiki link above).

Many of my PCs start up a vnc4server when they boot, then it is easy to connect to them remotely. Otherwise I just ssh in, start a vnc4server, exit, then connect to it with xvnc4viewer

I realise I am giving you a "workaround" here, rather than answering your original Q, but no one else seemed interested.
"If it aint broke, fix it till it is. Then find a "workaround" ".
 
Old 09-01-2008, 12:57 PM   #5
lapope
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, a workaround still counts as a solution. I think I'm just going to give up and go the way of ubuntu. On a previous laptop (a sony vaio) I had no problems sshing with ubuntu until an upgraded version stopped seeing my ethernet card. Here's hoping that doesn't happen again. I'm tired of struggling with this xandros thing, even the advanced desktop is obnoxious.

Thanks again, and if anybody else has another way I'd love to hear it. This problem might crop up again or for someone else.
 
Old 09-01-2008, 01:46 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
This problem might crop up again or for someone else.
I searched. Nobody else seems to have this exact problem. But maybe they have abandoned xandros, or are using vnc or aren't using ssh -X from the eee's xandros.
 
  


Reply

Tags
display, ssh, x11



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
setting a variable variable in a script... this works, but could it be more elegant? pwc101 Programming 3 08-18-2006 11:23 AM
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 11:14 AM
setting environment variable DISPLAY jpan Debian 4 10-15-2004 06:09 PM
Setting DISPLAY Variable for software texmansru47 Slackware 1 08-02-2004 11:23 AM
About setting DISPLAY variable Rex_chaos Linux - General 4 09-29-2003 01:24 AM

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

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