From owner-freebsd-questions Sat Sep 13 18:32:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA11109 for questions-outgoing; Sat, 13 Sep 1997 18:32:49 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA11097 for ; Sat, 13 Sep 1997 18:32:45 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id LAA27217; Sun, 14 Sep 1997 11:02:36 +0930 (CST) Message-ID: <19970914110236.18773@lemis.com> Date: Sun, 14 Sep 1997 11:02:36 +0930 From: Greg Lehey To: Brian Somers Cc: Michael Richards <026809r@dragon.acadiau.ca>, freebsd-questions@FreeBSD.ORG Subject: Re: Making X go right away References: <199709131312.KAA06001@dragon.acadiau.ca> <199709131955.UAA10225@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.81e In-Reply-To: <199709131955.UAA10225@awfulhak.demon.co.uk>; from Brian Somers on Sat, Sep 13, 1997 at 08:55:37PM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, Sep 13, 1997 at 08:55:37PM +0100, Brian Somers wrote: >> Does anyone know how to make X fire up right away? I remember I just changed >> something in inittab for linux, but FreeBSD seems to be a little different >>> ) > > I run it from /etc/ttys: > ttyvb "/usr/X11R6/bin/xdm -nodaemon" unknown on insecure This is the method that I recommended in the first edition of "The Complete FreeBSD". Jörg Wunsch subsequently showed me the error of my ways: if you screw up your X config, you might find yourself unable to access the system. This is what I have in the (draft) second edition: If you don't want to even see a character mode display, you can run xdm, a display manager which makes your PC look like an X terminal: it presents you with a login screen that runs under X. This requires some configuration, which we'll look at in the next section. Configuring xdm --------------- To enable xdm, 1. Add the following line (in bold face) to /etc/rc.local: # put your local stuff here echo " xdm"; /usr/X11R6/bin/xdm echo '.' 2. Add a line to the xdm configuration file /usr/X11R6/lib/X11/xdm/Xservers: :0 local /usr/X11R6/bin/X :0 vt04 (more options) This will start an xdm login window on /dev/ttyv4 when you start the system. You can also test the display manager manually by logging in as root on the console and typing: $ xdm -nodaemon Yet another way to start the display manager automatically when the system boots is to add a line in /etc/ttys to start it on one of the unoccupied virtual terminals. This is a very dangerous method: if you make a mess of your X configuration, you may no longer be able to access the system. The idea with running xinit at system startup is bogus. xinit is designed to run after login. Greg