Veritas-bu

[Veritas-bu] export DISPLAY, automatically

2004-03-19 18:50:19
Subject: [Veritas-bu] export DISPLAY, automatically
From: tech2187 AT yahoo DOT com (K Chapman)
Date: Fri, 19 Mar 2004 15:50:19 -0800 (PST)
--0-851683787-1079740219=:50223
Content-Type: text/plain; charset=us-ascii

unless you have X11 related stuff turned off in ssh config files, you can 
connect with:
ssh -X <other options> host
and the display var will get set by ssh
some folks dont like this for security reasons (see man page), but in a small, 
closed env it may not be bad

Jason Helfman <jason.helfman AT ticketmaster DOT com> wrote:
Hey ya'all,

Not sure how you guys export your display, but I just scripting a 
quickie that works great for automatically getting the job done

export PT=`env |grep SSH_TTY |awk -F / '{print $3 "/" $4}'`
export DISPLAY=`who |grep $PT |awk '{print $6}' |sed s/\(// |sed s/\)//`:0.

Just add this to your .bashrc file on the server you want to export 
from, and yer good to go.... jnbSA&

I mostly use command line, but use the gui once in awhile.

-- 
Jason G Helfman, Ticketmaster
8800 W. Sunset Blvd.
West Hollywood, CA 90069
213/739-5174 Direct
310/345-1554 Cell
310/360-3300 Main
jason.helfman AT ticketmaster DOT com
GnuPG Fingerprint: A349 3CAA 5085 DC6E C485 7356 13C3 5772 F865 C926
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

aaarrrggghhh!!!!
FreeBSD rocks
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
--0-851683787-1079740219=:50223
Content-Type: text/html; charset=us-ascii

<DIV>unless you have X11&nbsp;related stuff&nbsp;turned off in ssh config 
files, you can connect with:</DIV>
<DIV>ssh -X &lt;other options&gt; host</DIV>
<DIV>and the display var will get set by ssh</DIV>
<DIV>some folks dont like this for security reasons (see man page), but in a 
small, closed env it may not be bad<BR><BR><B><I>Jason Helfman 
&lt;jason.helfman AT ticketmaster DOT com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; 
BORDER-LEFT: #1010ff 2px solid">Hey ya'all,<BR><BR>Not sure how you guys export 
your display, but I just scripting a <BR>quickie that works great for 
automatically getting the job done<BR><BR>export PT=`env |grep SSH_TTY |awk -F 
/ '{print $3 "/" $4}'`<BR>export DISPLAY=`who |grep $PT |awk '{print $6}' |sed 
s/\(// |sed s/\)//`:0.<BR><BR>Just add this to your .bashrc file on the server 
you want to export <BR>from, and yer good to go.... jnbSA&amp;<BR><BR>I mostly 
use command line, but use the gui once in awhile.<BR><BR>-- <BR>Jason G 
Helfman, Ticketmaster<BR>8800 W. Sunset Blvd.<BR>West Hollywood, CA 
90069<BR>213/739-5174 Direct<BR>310/345-1554 Cell<BR>310/360-3300 
Main<BR>jason.helfman AT ticketmaster DOT com<BR>GnuPG Fingerprint: A349 3CAA 
5085 DC6E C485 7356 13C3 5772 F865 
C926<BR>_______________________________________________<BR>Veritas-bu maillist -
 Veritas-bu AT mailman.eng.auburn DOT 
edu<BR>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</BLOCKQUOTE><BR><BR>aaarrrggghhh!!!!<br>FreeBSD
 rocks<p><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com"; 
target="_blank"><b>Yahoo! Mail</a></b> - More reliable, more storage, less spam
--0-851683787-1079740219=:50223--

<Prev in Thread] Current Thread [Next in Thread>