From owner-freebsd-questions Sun Apr 14 7: 1:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 310A737B404 for ; Sun, 14 Apr 2002 07:01:15 -0700 (PDT) Received: from lungfish.ntlworld.com ([80.4.0.215]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020414140112.YLYX14788.mta01-svc.ntlworld.com@lungfish.ntlworld.com>; Sun, 14 Apr 2002 15:01:12 +0100 Received: from tuatara.goatsucker.org (tuatara.goatsucker.org [192.168.1.6]) by lungfish.ntlworld.com (8.11.6/8.11.6) with ESMTP id g3EE1BV43894; Sun, 14 Apr 2002 15:01:11 +0100 (BST) (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id g3EE1OD19195; Sun, 14 Apr 2002 15:01:24 +0100 (BST) (envelope-from scott) Date: Sun, 14 Apr 2002 15:01:24 +0100 From: Scott Mitchell To: "Mark A.Hummel" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: KDM Configuration Question (Replace XDM???) Message-ID: <20020414150124.A18618@fishballoon.dyndns.org> References: <20020414132155.ONPE24267.sccmmhc02.mchsi.com@there> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020414132155.ONPE24267.sccmmhc02.mchsi.com@there>; from mhumm2@mchsi.com on Sun, Apr 14, 2002 at 08:27:09AM -0500 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Apr 14, 2002 at 08:27:09AM -0500, Mark A.Hummel wrote: > Hi, > > I've been sent to, read, printed, and studied the handbook and fbsd FAQs > about booting to XDM. The advice to "... just read that and do what it says > but replace xdm with kdm." doesn't work! It's very much appreciated, but > again, I couldn't get it to work. All I get (with xdm) is an xterm login > loop. > > My goal is to boot my system to a KDE login screen. I understand to do that, > I should use kdm which I've found. When I just run kdm from the console I > get the following error message: > > Cannot open access control file /usr/local/share/config/kdm/Xaccess, no > XDMCP requests will be granted. How did you install KDE? If you installed it from packages (or built the port) you should have all the necessary stuff in /usr/local/share/config/kdm. You did install KDE2, right? Anyway, to run kdm at boot-time, the usual way is to have a script in /usr/local/etc/rc.d/kdm.sh that will be run at boot-time. The kde port doesn't install one; perhaps it should. Here's mine: ----- cut here ----- #!/bin/sh # Start/stop KDM login manager # scott 20020101 kdm=/usr/local/bin/kdm kdmpid=/var/run/xdm.pid case "$1" in start) if [ -f $kdmpid ] then echo "kdm already running (pid `cat $kdmpid`)?" echo "Maybe try '$0 stop' first" else $kdm fi ;; stop) if [ ! -f $kdmpid ] then echo "kdm not running!" echo "Maybe try '$0 start' first" else kill `cat $kdmpid` rm -f $kdmpid fi ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac exit 0 ----- cut here ----- Copy that to the right place, make sure it's executable, then (as root): # /usr/local/etc/rc.d/kdm.sh start or just reboot. Of course you *should* be able to run kdm directly as you tried to do above, so you need to fix that problem first... maybe a re-install of KDE is called for? HTH, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message