LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   echo $DISPLAY is blank in RH7.3 (https://www.linuxquestions.org/questions/linux-software-2/echo-%24display-is-blank-in-rh7-3-a-34854/)

Cpare 11-07-2002 07:07 PM

echo $DISPLAY is blank in RH7.3
 
Trying to run an X application through an SSH session is proving harder than I thought. I would love to have this functionality because then I could run Xapplications from my home machines while at work on my M$ machine...

When I connect to my RH7.3 server however and do an echo $DISPLAY I get a blank row returned. How can I get this to tell me the correct information so when I launch an X application it knows where to send it?

Thanks in advance!

stickman 11-07-2002 08:18 PM

You should just probably go ahead and set the DISPLAY value. It typically is not set when you login via SSH.

leed_25 11-07-2002 10:27 PM

You may have your ssh config file set up not to allow X forwarding (man ssh, man sshd for all the nitty gritty). When you issue your ssh command try using the -X option. is the $DISPLAY env variable set now?

Here's another thing that helps when you're trying to figure out what's going on with ssh: use the -v (verbose) option it dumps a lot of stuff on stdout to tell you what's happenin'. really. try it.

Cpare 11-08-2002 01:50 PM

Logged in from the terminal and this is even true here - it appears it's not a SSH configuration.

I could set the $DISPLAY, but how do I know WHAT to set it to?
I can use localhost:0.0 but I don't think this is going to help in an SSH session...

Argh...


All times are GMT -5. The time now is 08:41 AM.