<div dir="ltr"><div>Well, running through the ssh tunnel itself is going to be really slow. It will work, but it won't be fun. Make sure your *current* .Xauthority file is installed in the other account and also make sure the other account is in the 'video' group. .Xauthority changes every time you start X. I run a little script to install it whenever I start X (after a fresh reboot of my workstation, for example).</div><div><br></div><div>-Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 26, 2016 at 9:41 AM, Matthias Play <span dir="ltr"><<a href="mailto:matthias_play@gmx.net" target="_blank">matthias_play@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt,<br>
<br>
the script does not work for me as it is listed. I need to call ssh with<br>
'-Y' to get it working.<br>
<br>
I get the following error when calling ssh like it has been suggested:<br>
<br>
"Unable to init server: Could not connect: Abstract UNIX domain socket<br>
addresses not supported on this system<br>
Error: cannot open display: :0.0"<br>
<br>
What might be the reason for this?<br>
<br>
Regards<br>
Matthias<br>
<br>
<br>
On 12.08.15 20:32, Matthew Dillon wrote:<br>
> The sshd sets the DISPLAY environment variable to point to its tunnel.<br>
> There is no requirement that you use the tunnel, hence the above script<br>
> overrides it and sets the DISPLAY to :0.0 (which is a direct local<br>
> connection) before running firefox.<br>
><br>
> -Matt<br>
><br>
> On Wed, Aug 12, 2015 at 2:22 AM, Carsten Mattner<br>
> <<a href="mailto:carstenmattner@gmail.com">carstenmattner@gmail.com</a> <mailto:<a href="mailto:carstenmattner@gmail.com">carstenmattner@gmail.<wbr>com</a>>> wrote:<br>
><br>
> On Tue, Aug 11, 2015 at 7:32 PM, Matthew Dillon<br>
> <<a href="mailto:dillon@apollo.backplane.com">dillon@apollo.backplane.com</a> <mailto:<a href="mailto:dillon@apollo.backplane.com">dillon@apollo.<wbr>backplane.com</a>>><br>
> wrote:<br>
> > #!/bin/csh<br>
> > #<br>
> > # script for ~/bin/firefox (assumes ~/bin is in your path)<br>
> > #<br>
> > scp ~/.Xauthority dfw1@localhost:<br>
> > ssh dfw1@localhost -n "setenv DISPLAY :0.0; firefox"<br>
><br>
> snip<br>
><br>
> > * Also note that these applications will be able to use X shared memory<br>
> > and thus run fairly optimally (they are NOT using an ssh tunnel nor do<br>
> > we want them to as that would be ridiculously slow). Programs run in<br>
> > this way will not have direct access to the GPU so 3D might not be<br>
> > so hot. But for general browsing I haven't had any trouble, and even<br>
> > with 4K video appears to work about the same as it did before.<br>
><br>
> Can you explain how this works without going through localhost:22?<br>
> Isn't X forwarded through the ssh tunnel?<br>
><br>
><br>
</blockquote></div><br></div>