*BSD News Article 53088


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!usenet.eel.ufl.edu!brutus.bright.net!chi-news.cic.net!newsfeed.internetmci.com!netnews.nwnet.net!news.uidaho.edu!usenet
From: Faried Nawaz <fn@uidaho.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Q: which FAQ or how to set up X to run automatically?
Date: 21 Oct 1995 20:18:58 -0700
Organization: she lost all her innocence
Lines: 40
Sender: nawaz921@crater.cs.uidaho.edu
Distribution: world
Message-ID: <imburaqk7x.fsf@crater.cs.uidaho.edu>
References: <DGp96t.FA0@undergrad.math.uwaterloo.ca>
Reply-To: fn@uidaho.edu
NNTP-Posting-Host: crater.cs.uidaho.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: bcrwhims@undergrad.math.uwaterloo.ca's message of Thu, 19 Oct
	1995 14:20:52 GMT
X-Newsreader: (ding) Gnus v0.99.13

In article <DGp96t.FA0@undergrad.math.uwaterloo.ca> bcrwhims@undergrad.math.uwaterloo.ca (Carsten Whimster) writes:

$ I have FreeBSD 2.0.5 installed, and want to set it up to run X
$ automatically, while still allowing me to drop back to text-only mode.
$ How do I go about doing this, or which file do I read thast explains
$ this?

Okay, this is what I've done.  I _can't_ remember exactly which of the XFree
distribution files I've installed, but I'm guessing I got almost everything
(I had a lot of disk space).

a) I got X, and xdm working.
   I didn't have to frob /usr/X11R6/lib/X11/xdm/*; you may need to.
b) I edited /etc/ttys.  Look at ttyv1:

#	@(#)ttys	5.1 (Berkeley) 4/17/89
#
# name	getty				type	status		comments
#
# This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here
console	none				unknown	off secure
#
ttyv0	"/usr/libexec/getty Pc"		cons25	on  secure
# Virtual terminals
ttyv1	"/usr/X11R6/bin/xdm -auth -nodaemon" xterm on	secure
#ttyv1	"/usr/libexec/getty Pc"		cons25	off  secure
ttyv2	"/usr/libexec/getty Pc"		cons25	off  secure
ttyv3	"/usr/libexec/getty Pc"		cons25	off  secure

c) I reread /etc/ttys (kill -1 1, or reboot).



$ I need to be able to drop back to text-mode while root, but I would
$ like to prevent other users from doing this. Basically, I would like
$ xdm or something to run magically, I guess.

I thought there was something in XF86Config for that, but I can't find
it in the man page (for XFree 3.11).  I'm not sure...