From owner-freebsd-chat Tue Jun 1 21:40:14 1999 Delivered-To: freebsd-chat@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id EFFED15024 for ; Tue, 1 Jun 1999 21:40:11 -0700 (PDT) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.3/8.9.3) id XAA03453; Tue, 1 Jun 1999 23:40:05 -0500 (CDT) Date: Tue, 1 Jun 1999 23:40:05 -0500 From: "Matthew D. Fuller" To: "Daniel O'Connor" Cc: chat@FreeBSD.ORG, Kris Kennaway Subject: Re: FreeBSD & X Message-ID: <19990601234004.W6251@futuresouth.com> References: <19990601232736.T6251@futuresouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Daniel O'Connor on Wed, Jun 02, 1999 at 02:01:43PM +0930 X-OS: FreeBSD Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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