From owner-freebsd-questions@FreeBSD.ORG Fri Feb 25 04:27:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB27216A4CE for ; Fri, 25 Feb 2005 04:27:34 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B83C43D45 for ; Fri, 25 Feb 2005 04:27:34 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D4X4f-0004Ls-00 for freebsd-questions@freebsd.org; Fri, 25 Feb 2005 05:27:33 +0100 Received: from [217.246.201.15] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1D4X4d-0000v8-00 for freebsd-questions@freebsd.org; Fri, 25 Feb 2005 05:27:32 +0100 Received: from oliverfuchs.onlinehome.de (localhost.onlinehome.de [127.0.0.1]) j1P4RPZO002826 for ; Fri, 25 Feb 2005 05:27:25 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost) by oliverfuchs.onlinehome.de (8.13.1/8.13.1/Submit) id j1P4IXf4002786 for freebsd-questions@freebsd.org; Fri, 25 Feb 2005 05:18:33 +0100 (CET) (envelope-from oliverfuchs1) Date: Fri, 25 Feb 2005 05:18:32 +0100 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20050225041832.GA2583@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: How do I get KDM to launch KDE ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 04:27:34 -0000 On Thu, 24 Feb 2005, Edward Lichtner wrote: > Hi, > I selected KDM to run at startup by editing /etc/ttys : > ttyv8 ł/usr/local/bin/kdm ­nodaemon˛ xterm on secure > I also created a .xsession file both in /root and in my home directory with > the line : > exec startkde > When I reboot, KDM starts up but when I login (correct password), the login > windows disappears, the KDM background remains and KDE doesnąt start. > However, KDE starts fine when I run startx in a terminal session. > Is there something I didnąt do properly ? > Thanks, > Edward See the handbook for more informations (5.7.3.1 The KDE Display Manager): [...] To make sure kdm understands what the labels (KDE, GNOME etc) mean, edit the files used by XDM. In a terminal window, as root, edit the file /usr/X11R6/lib/X11/xdm/Xsession. There is a section in the middle like this: case $# in 1) case $1 in failsafe) exec xterm -geometry 80x24-0-0 ;; esac esac A few lines need to be added to this section. Assuming the labels from used were ``KDE'' and ``GNOME'', use the following: case $# in 1) case $1 in kde) exec /usr/local/bin/startkde ;; GNOME) exec /usr/X11R6/bin/gnome-session ;; failsafe) exec xterm -geometry 80x24-0-0 ;; esac esac [...] Oliver -- ... don't touch the bang bang fruit