From owner-freebsd-newbies Mon May 7 13:15:56 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from home.haneys.net (dsl-64-34-250-237.telocity.com [64.34.250.237]) by hub.freebsd.org (Postfix) with ESMTP id 21C9637B423 for ; Mon, 7 May 2001 13:15:54 -0700 (PDT) (envelope-from rich@linux.haneys.net) Received: by home.haneys.net (Postfix, from userid 501) id C95411183B8; Mon, 7 May 2001 16:15:52 -0400 (EDT) Date: Mon, 7 May 2001 16:15:52 -0400 From: Rich Haney To: Web Razter Cc: freebsd-newbies@freebsd.org Subject: Re: StartX or graphical login Message-ID: <20010507161552.A15251@haneys.net> References: <20010507154022.A15156@haneys.net> <20010507200558.11717.qmail@web4305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <20010507200558.11717.qmail@web4305.mail.yahoo.com>; from webrazter@yahoo.com on Mon, May 07, 2001 at 01:05:58PM -0700 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gosh, there are literally tons of shell scripting tutorials. O'Reilly publishes a book on using each of the major shells (ksh, csh and bash), and each has a section on scripting in the language. You can also look at something online, such as : http://www.uwsg.indiana.edu/usail/concepts/shell-scripting.html Basically, your .login should just call the script (probably best to have it exec at the end). The script should probably just look for the existence of the X lock file, and start X if it doesn't exist, something like this (note that this may not work - I haven't tested it): #!/bin/sh if [ ! -e /tmp/.X0-lock ] then exec startx fi This script simply looks for the existence of a file called /tmp/.X0-lock - and, if it doesn't exist, calls startx . HTH. Don't worry about the newbie stuff - I'm a FreeBSD newbie myself (but I've got a good bit of *NIX experience). We all start somewhere. Rich On Mon, May 07, 2001 at 01:05:58PM -0700, Web Razter wrote: > So then I will not have a true GUI login with FreeBSD > - no prob. But how do I go about making a script for > the .login and where do I put it? gripes here>. Or better yet, point me to a reference > on making scripts so I can actually learn it. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ -- Rich Haney rich@haneys.net --- "I'm growing older, but not up." -- Jimmy Buffett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message