<div dir="ltr"><div>The sshd sets the DISPLAY environment variable to point to its tunnel.  There is no requirement that you use the tunnel, hence the above script overrides it and sets the DISPLAY to :0.0  (which is a direct local connection) before running firefox.<br><br></div>-Matt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 12, 2015 at 2:22 AM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Aug 11, 2015 at 7:32 PM, Matthew Dillon<br>
<<a href="mailto:dillon@apollo.backplane.com">dillon@apollo.backplane.com</a>> 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>
</span>snip<br>
<span class=""><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>
</span>Can you explain how this works without going through localhost:22?<br>
Isn't X forwarded through the ssh tunnel?<br>
</blockquote></div><br></div>