From owner-freebsd-questions Tue Sep 17 06:43:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA09096 for questions-outgoing; Tue, 17 Sep 1996 06:43:26 -0700 (PDT) Received: from garion.hq.ferg.com (pm1-08.wmbg.widomaker.com [204.17.220.108]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA09089 for ; Tue, 17 Sep 1996 06:43:20 -0700 (PDT) Received: from garion.hq.ferg.com (localhost.hq.ferg.com [127.0.0.1]) by garion.hq.ferg.com (8.7.5/8.6.12) with SMTP id JAA03256; Tue, 17 Sep 1996 09:42:44 -0400 (EDT) Date: Tue, 17 Sep 1996 09:42:42 -0400 (EDT) From: Branson Matheson X-Sender: branson@garion.hq.ferg.com To: Greg Lehey cc: Jerry Dunham , FreeBSD Questions Subject: Re: XF86 & fvwm Problem, Help? (fwd) In-Reply-To: <199609171242.OAA08789@allegro.lemis.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 17 Sep 1996, Greg Lehey wrote: > > Branson Matheson babbled: > >> You might also look at using xdm instead .. with that you will have > >> a graphical login prompt. And it will automagically restart every > >> time you logout. The nice thing about this and freebsd is that you > >> can still use a text console with syscons. > > > > So far, this seems to be terrible advice. I messed with xdm more this > > morning, and it does exactly what he says it does - automagically restart. > > I am completely unable to get out of it. You're not sposta... seems that you forgot to leave in the lines that I stated about testing with xdm -nodaemon!!!! xdm is _designed_ to restart every time. and if you need a text terminal .. use the to switch back to the console! to kill the xdm stuff... you have to kill -TERM the xdm with the lowest pid. This will keep it from re-spawning. If you use -HUP it will respawn right that second. > > If I've logged in as root I can > > get back to the login screen, but I can't quit from there: ^D doesn't work > > and neither does your suggestion of ^[alt]-[backspace]. > > ctrl-alt-backspace will kill the X server, which xdm will then > cheerfully restart. As it is designed to do. > > The only way out seems to be to login as root and type "shutdown -h > > now". If I've logged in as dunham I can't even do that, and su > > doesn't work. Wrong... read the man pages on xdm and what I have above.. you can kill the xdm server and it will not re-spawn. > > I'm going back to startx, unless you can give me some reason why I > > should consider xdm that isn't obvious to the uninitiated, and tell > > me how to REALLY get out of it. > > xdm is great for people who never want (nor need) to see a character > mode display. Unfortunately, not everything runs under X, and xdm > effectively takes away some of your freedom. I use xinit myself, and > for the life of me I can't recall what the difference is from startx. > Not much, anyway. You could consider them interchangeable. well kinda... xdm gives you an x interface when you want it.. but you still have the option of getting the console interface at any time by using . Just a little explanation: there are 12 syscons consoles compiled into the GENERIC kernel. 0,1,2 are all setup to present you with a login prompt. 3 is the default console to start your X session on... so you can still switch back to the others using the . By way of note... you can switch back to the x console using . You can even add more syscons consoles fairly easily... since the devices start at 0, you have in your /etc/ttys somthing like: # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 off secure Note that number three is off .. that is for X windows... you can add a line like: ttyv4 "/usr/libexec/getty Pc" cons25 on secure cd /dev ; MAKEDEV vty4 then kill -HUP 1 and presto gives you another console cd /dev ; MAKEDEV vty4 Hope this helps! ============================================================================= Branson Matheson | Ferguson Enterprises | If Pete and Repeat were System Administrator | W: (804) 874-7795 | sittin on a fence and Pete Unix, Perl, WWW | branson@widomaker.com | fell off, who is left?