Date: Tue, 1 Jun 1999 23:40:05 -0500 From: "Matthew D. Fuller" <fullermd@futuresouth.com> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: chat@FreeBSD.ORG, Kris Kennaway <kkennawa@physics.adelaide.edu.au> Subject: Re: FreeBSD & X Message-ID: <19990601234004.W6251@futuresouth.com> In-Reply-To: <XFMail.990602140143.doconnor@gsoft.com.au>; from Daniel O'Connor on Wed, Jun 02, 1999 at 02:01:43PM %2B0930 References: <19990601232736.T6251@futuresouth.com> <XFMail.990602140143.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 02, 1999 at 02:01:43PM +0930, a little birdie told me that Daniel O'Connor remarked > > > > And I think syscons + slightly customized startx script (creating > > .Xauthority record, etc) is a pretty cool looking 'login' screen ;> > > Yeah, I wish startx did xauth stuff by default :-/ (Yep, I went WAAAAAAAY overboard. But it works) (ttyp6):{403}% cat mystartx | grep auth SERVERARGS=":0 -auth .Xauthority -bpp 32" # Generate the xauth keys bin/authcookiegen.sh 0 [23:38:21] mortis:~ (ttyp6):{404}% cat bin/authcookiegen.sh #!/bin/sh # # A half-decent xauth cookie generator DISPNUM=$1 # Generate the cookie in multiple parts, just for added safety key1=`/usr/bin/vmstat -i | /sbin/md5` key2=`/usr/bin/netstat -i | /sbin/md5` key3=`/bin/ps -gaxuww | /sbin/md5` key4=`/usr/sbin/pstat -f | /sbin/md5` # There we go. Quick check echo "key for display ${HOST}:${DISPNUM} is: $key1$key2$key3$key4" # Now, gen the keys xauth add ${HOST}/unix:${DISPNUM} . $key1$key2$key3$key4 xauth add ${HOST}:${DISPNUM} . $key1$key2$key3$key4 -- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller MF4839 http://www.over-yonder.net/ | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990601234004.W6251>