[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-users
Subject:    Re: Running firefox a bit more safely - HOWTO
From:       Matthew Dillon <dillon () backplane ! com>
Date:       2015-08-12 18:32:50
Message-ID: CAOZ7CpDH4s5xLZGgQgTaFAnE=1nSLpnZ7=pzg1fh-TGS3x=wug () mail ! gmail ! com
[Download RAW message or body]

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.

-Matt

On Wed, Aug 12, 2015 at 2:22 AM, Carsten Mattner <carstenmattner@gmail.com>
wrote:

> On Tue, Aug 11, 2015 at 7:32 PM, Matthew Dillon
> <dillon@apollo.backplane.com> wrote:
> >         #!/bin/csh
> >         #
> >         # script for ~/bin/firefox  (assumes ~/bin is in your path)
> >         #
> >         scp ~/.Xauthority dfw1@localhost:
> >         ssh dfw1@localhost -n "setenv DISPLAY :0.0; firefox"
>
> snip
>
> >     * Also note that these applications will be able to use X shared
> memory
> >       and thus run fairly optimally (they are NOT using an ssh tunnel
> nor do
> >       we want them to as that would be ridiculously slow).  Programs run
> in
> >       this way will not have direct access to the GPU so 3D might not be
> >       so hot.  But for general browsing I haven't had any trouble, and
> even
> >       with 4K video appears to work about the same as it did before.
>
> Can you explain how this works without going through localhost:22?
> Isn't X forwarded through the ssh tunnel?
>

[Attachment #3 (text/html)]

<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">&lt;<a href="mailto:carstenmattner@gmail.com" \
target="_blank">carstenmattner@gmail.com</a>&gt;</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> &lt;<a href="mailto:dillon@apollo.backplane.com">dillon@apollo.backplane.com</a>&gt; \
wrote:<br> &gt;              #!/bin/csh<br>
&gt;              #<br>
&gt;              # script for ~/bin/firefox   (assumes ~/bin is in your path)<br>
&gt;              #<br>
&gt;              scp ~/.Xauthority dfw1@localhost:<br>
&gt;              ssh dfw1@localhost -n &quot;setenv DISPLAY :0.0; firefox&quot;<br>
<br>
</span>snip<br>
<span class=""><br>
&gt;        * Also note that these applications will be able to use X shared \
memory<br> &gt;           and thus run fairly optimally (they are NOT using an ssh \
tunnel nor do<br> &gt;           we want them to as that would be ridiculously slow). \
Programs run in<br> &gt;           this way will not have direct access to the GPU so \
3D might not be<br> &gt;           so hot.   But for general browsing I haven&#39;t \
had any trouble, and even<br> &gt;           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&#39;t X forwarded through the ssh tunnel?<br>
</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic