Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    26

    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!

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    678
    I'm not sure all of the effects not having a GUI will have, but if I ssh into an OpenWRT (also no GUI) it still sets the Display variable.

    I would suspect the sshd_config file on serverB. Take a look for the following lines

    Code:
    X11Forwarding yes
    X11DisplayOffset 10
    Let us know how that goes and we can help you more if you need,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •