If you have an X display running already, changing ssh's display offset to zero won't work (IIRC). 1) Set X11DisplayOffset to 10 on the server. 2) restart sshd (/etc/init.d/ssh restart or something similar) 3) SSH into the server with the -X option (ssh -X example.org) 4) run 'export DISPLAY=localhost:10.0' 5) evince
If that doesn't work, it may be an xauth thing, try substituting ssh -Y for ssh -X in step 3 and try again. I'd not paid attention to what you wrote... setting display like 'display=rem...@somedomain' won't work... you need a hostname (i.e. that @ sign is out of place). Secondly, the remote.somedomain computer must have X11 running and remote access allowed (so, DISPLAY=remote.example.org:0 if you have an X display 0 running on remote.example.org), will launch X applications on remote's display 0. On Tue, Sep 22, 2009 at 03:37:39PM -0400, pete b. wrote: > [server restarted] > > [pal...@server]$ evince > Cannot parse arguments: Cannot open display: > > On Mon, Sep 21, 2009 at 12:01 AM, Brian Jester <[email protected]>wrote: > > > Step 1: Reboot server > > Step 2: > > Step 3: > > Step 4: > > Step 5: > > Step 6: > > > > First do step 1 then let me know what happens. > > > > On Sun, Sep 20, 2009 at 4:39 PM, pete b. <[email protected]> wrote: > > > >> X11DISPLAYOFFSET was 10 so I changed it to 0. > >> Then I tried: export display=rem...@somedomain:0.0 > >> Then the system told me "unable to open DISPLAY ..." > >> I thought we had this all figured out since it worked for a day. What > >> could have changed? > >> Anyway computers are complex, a lot goes on under the hood. > >> > >> On Fri, Sep 18, 2009 at 1:56 PM, Daniel Eggleston <[email protected]>wrote: > >> > >>> > >>> On Fri, Sep 18, 2009 at 10:46:55AM -0700, p_a wrote: > >>> > > >>> > Correct. I'm familiar with scp. > >>> > > >>> > Would you believe that yesterday we restarted the server and now it > >>> > X11forwarding > >>> > does not operate again. > >>> > > >>> > My procedure is the following: > >>> > 1. > >>> > a) ssh -X lo...@somedomain -p xxx > >>> > b) export display=rem...@somedomain:0.0 > >>> > c) xhost + (on remote) > >>> > 2. ssh_config has X11Forward yes > >>> > 3. sshd_config has X11Forwarding yes > >>> > 4. Can not find any info on the DISPLAY variable in any of /var/log > >>> > logfiles on the server. > >>> > > >>> > > > >>> What's the setting of X11DisplayOffset in your /etc/ssh/sshd_config? > >>> > >>> if it's 10, for example, should be export display=rem...@somedomain:10.0 > >>> > >>> > >>> > >> > >> > >> > > > > > > -- > > Over 300,000 Piece of Vector Clipart $1.00 each > > http://millart.110mb.com > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
