Re: Problems in setting display variable for X Windows server

From: Pete Nesbitt (pete_at_linux1.ca)
Date: 06/25/04

  • Next message: Edward: "Re: load testing suggestion"
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    Date: Thu, 24 Jun 2004 18:06:24 -0700
    
    

    On June 24, 2004 12:00 pm, santhosh wrote:
    > Hi,
    > Thanks for the suggestions, but I should have informed you that
    > a) I have logged in as root directly into the window using a ssh connection
    > (putty)
    > b) I have tried to put things back....its still not working....
    >
    > Here is some info I gathered.....I heard that if an
    > user is logged into the X server and opened a connection....nobody else can
    > open another connection.....so I am wondering if something got messed
    > up...and though nobody is using the connection...the server still has some
    > files left behind to believe that someone else is using the connection
    >
    >
    >
    > Regards,
    > Santhosh

    If you are ssh'ing in to run X, you can't do that. You want to log in via ssh
    launched from an X terminal on your local machine. Then in the ssh session
    execute the X app you want to run on the remote machine and it will be
    displayed locally.

    The X server can run lots of sessions at once, that's why it is a server :)
    There can only be one instance of a X server running per display (not the
    actual monitor), that is why you want to remove any old lock files that may
    have been created on any of the failed X startups (as your error message
    indicated).

    In X, the server is your local keyboard, mouse and video, while the client is
    the remote application. So when you run "xhost +" it should be on your local
    machine, to allow _any_ machine to display it's X application on your local
    machine. I don't think you'll need to do that though, as ssh should take care
    of X forwarding (which I beleive is on by default).

    Hope that helps.

    -- 
    Pete Nesbitt, rhce
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Edward: "Re: load testing suggestion"

    Relevant Pages

    • Re: probleme mit ssh
      ... waehrend das entfernte System der Server ist. ... Bei X11 ist alles andersherum, da ist das entfernte System der Client ... und dein lokales Display der Server. ... DArum brauchsts bei SSH ...
      (de.comp.os.unix.networking.misc)
    • Re: Suggestions for a square font?
      ... > ssh -X creates a tunnel from distant_computer to your real X server at ... > the tunneled X display, connecting directly to the X ... Let's say that the first line was for ssh users and the second ... connect through ssh and play a curses game. ...
      (rec.games.roguelike.development)
    • Re: probleme mit ssh
      ... waehrend das entfernte System der Server ist. ... und dein lokales Display der Server. ... DArum brauchsts bei SSH ... SSH hat das fuer X11 aber bereits ...
      (de.comp.os.unix.networking.misc)
    • X11 session over ssh, problem
      ... The problem is that I ssh to a server, and then try to run a program that requires an X display. ... But if I do the same to B (i.e. xterm -e ssh B &), then try to run a program like xpdf which uses X, it doesn't work. ...
      (Debian-User)
    • RE: Problem with X server
      ... Try tunneling everything through ssh. ... This gets around the need to use the xhost and export display settings. ... Subject: Problem with X server ... On the local host, type: ...
      (RedHat)