From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 23:22:49 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 544F01065671 for ; Tue, 19 Aug 2008 23:22:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id DEBA48FC1A for ; Tue, 19 Aug 2008 23:22:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-135-36.dynamic.qsc.de [92.195.135.36]) by mx02.qsc.de (Postfix) with ESMTP id 84F5A16C004D; Wed, 20 Aug 2008 01:22:46 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m7JNMiDq004614; Wed, 20 Aug 2008 01:22:45 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 20 Aug 2008 01:22:44 +0200 From: Polytropon To: Gary Kline Message-Id: <20080820012244.8181e243.freebsd@edvax.de> In-Reply-To: <20080819182542.GB3822@thought.org> References: <20080818234319.GA3184@thought.org> <7AA13B0DB106DA72821364AE@utd65257.utdallas.edu> <20080819182542.GB3822@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Paul Schmehl , FreeBSD Mailing List Subject: Re: Still, no-joy with kdm...... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 23:22:49 -0000 On Tue, 19 Aug 2008 11:25:42 -0700, Gary Kline wrote: > I haven't edited /etc/ttys yet; I may. But I think something got > broken [mis-CLEANED by fsck or otherwise damanaged during the > weekend power-out]. When I had my big problem... haha... some structures in /, some in /var and the whole /usr/X11R6 disappeared. Well, that doesn't matter to me because all this stuff can easily be reinstalled (which would be a good advice to do when you think that parts of the system may be missing, just to be sure). > It may be easier to completely remove v3 and re-install kde4. Yes, this should leave the system in a default state where KDE4 should run fine without complaining about stuff from version 3. > I'm pretty sure I was in ./root or slash when I logged in. Display managers (xdm, gdm, kdm, wdm), when run manually, have to be run as user root: Login: root # xdm # exit X sessions started via the xinitrc command and a proper ~/.xinitrc file should not be run as root, but from a regular user account: Login: bob % startx To run a display manager automatically, /etc/ttys needs to contain the correct line: # name getty type status comments ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure For gdm, kdm and wdm, use /usr/local/bin/[gkw]dm respectively. Finally, there's an easy way to automatically login a user (ATTENTION, SECURITY RISK!) and start an X session for him. Therefore, /etc/gettytab needs a little modification: default:\ ... autologin:\ :al=:tc=Pc: a|std.110|110-baud:\ ... As well, the user's ~/.login file needs to start X; last line: [ -f /tmp/.X0-lock ] && startx For this solution, xdm may not be loaded via /etc/ttys - only one instance of X will run (except you put some extra stuff there). But please, keep in mind that this procedure enables anyone with physical access to the machine can click around stupidly and mess up things. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...