[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Handy little script others may have a use for too...
- Subject: [ale] Handy little script others may have a use for too...
- From: dbaron13 at atl.bellsouth.net (da Black Baron)
- Date: 24 Mar 2003 17:05:56 -0500
Well, I'll be darned. I would make things harder than neccessary...
hahaha.
On Mon, 2003-03-24 at 16:39, Michael Still wrote:
> Wait a sec, I just do 'ssh -X host' and X is automatic. No DISPLAY playing.
>
> -----Original Message-----
> From: da Black Baron [mailto:dbaron13 at atl.bellsouth.net]
> Sent: Monday, March 24, 2003 4:41 PM
> To: Atlanta Linux Enthusiasts
> Subject: [ale] Handy little script others may have a use for too...
>
>
>
> ## Add this to your .profile, and you'll not have to set your display
> ## for remote X-apps when you ssh into your box!
>
>
> display=$(env | grep SSH_CLIENT)
>
> display1=${display##SSH_CLIENT=}
>
> display2=${display1%%22}
>
> display3=${display2%%??????}
>
> DISPLAY=$display3':0' export DISPLAY
>
> --------------<snip here>----------------------------
>
> --
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
> "Here's my family tree. As far as I can tell, my relatives were
> carnival folk who were touring this place called Hiroshima in
> the summer of 1945. Because they lost most of their hair, they
> mostly married each other. And here I am"
>
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
>
> (,,oBo,,)
> Wylde Bill ||||
> __________________________________________ http://lyst.org
>
> http://mrpooter.sytes.net
> wyldechylde at geocities.com
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Here's my family tree. As far as I can tell, my relatives were
carnival folk who were touring this place called Hiroshima in
the summer of 1945. Because they lost most of their hair, they
mostly married each other. And here I am"
-------------------------------------------------------------------------
-------------------------------------------------------------------------
(,,oBo,,)
Wylde Bill ||||
__________________________________________ http://lyst.org
http://mrpooter.sytes.net
wyldechylde at geocities.com
-------------------------------------------------------------------------
-------------------------------------------------------------------------
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale