From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 08:23:38 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4332116A408 for ; Tue, 27 Feb 2007 08:23:38 +0000 (UTC) (envelope-from satimis@yahoo.com) Received: from web35205.mail.mud.yahoo.com (web35205.mail.mud.yahoo.com [66.163.179.84]) by mx1.freebsd.org (Postfix) with SMTP id EB61A13C467 for ; Tue, 27 Feb 2007 08:23:37 +0000 (UTC) (envelope-from satimis@yahoo.com) Received: (qmail 56152 invoked by uid 60001); 27 Feb 2007 08:23:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=BzvGSm8T2IS1mBCtYZtRSzBebmBFaMOtAk4KjgVeS38pSgBEM0DkUcbtYxiGlsz5JpcMRxA0ei0mJ6xAPnVYLFJcUCbH5BRjKPD52Q2PSh/ZiIvRkAhOlJ3AqSCJm6nqYZLfCfxOkS0UnBokQW2IlukY4EI5QFPq4nnu9E9a6mE=; X-YMail-OSG: QKskF.QVM1liDvvyMVPlEvJMIzAemyhW3YRIrrXx3YNFx3GgDOt0sJE_3578mAwT_nJeUZzP5kY0eHqJkzW_JGsD3uVmKZ5sBZRi9FmxO6s8lQrIMGBoF77N2WCKFvu96ehsNFFQcw11g24- Received: from [220.232.213.178] by web35205.mail.mud.yahoo.com via HTTP; Tue, 27 Feb 2007 16:23:37 CST Date: Tue, 27 Feb 2007 16:23:37 +0800 (CST) From: Stephen Liu To: freebsd-questions@freebsd.org In-Reply-To: <45E3DE8C.7080300@inode.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <355416.54750.qm@web35205.mail.mud.yahoo.com> Subject: Re: Fail to start KDE and Gnome X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 08:23:38 -0000 Hi Armin, Tks for your advice. > There are two files that control which windowsmanager shall be used > (depending on whether you use a login manager or just startx) > One is called .xinitrc the other one .xsession - they are both in > your > home directory - create them (you can create one of them and symlink > the > other one) and add the start command to the file (full path) - and > make > sure they are set executable (chmod 755 ) > eg. for kde: > exec /usr/local/bin/startkde > eg for gnome: > exec /usr/local/bin/gnome-session Done as per your advice. $ cat ~/.xsession exec /usr/local/bin/startkde exec /usr/local/bin/gnome-session $ ls -al ~/.xsession -rwxr-xr-x 1 satimis wheel 62 Feb 27 07:59 /home/satimis/.xsession $ startkde .... ksplash: cannot connect to X server kdeinit: Aborting, $DISPLAY is not set Warning: Connect() failed: No such file or directory ksmserver: Cannot connect to Xserver ! startkde: shutting down ... Warning: Connect() failed: No such file or directory Error: Can't contact kdeinit ! startkde running shutdown script startkde : Done Still failed. B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com