From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 14:21: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 CE91316A403 for ; Tue, 27 Feb 2007 14:21:38 +0000 (UTC) (envelope-from a.pirko@inode.at) Received: from mx.inode.at (mx16.lb01.inode.at [62.99.145.18]) by mx1.freebsd.org (Postfix) with ESMTP id 7D87013C48D for ; Tue, 27 Feb 2007 14:21:38 +0000 (UTC) (envelope-from a.pirko@inode.at) Received: from [85.124.26.15] (port=13458 helo=[192.168.1.11]) by smartmx-16.inode.at with esmtp (Exim 4.50) id 1HM3Cz-0007tF-9m; Tue, 27 Feb 2007 15:21:37 +0100 Message-ID: <45E43E70.9090304@inode.at> Date: Tue, 27 Feb 2007 15:21:36 +0100 From: Armin Pirkovitsch User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: Stephen Liu , freebsd-questions@freebsd.org References: <218603.24972.qm@web35203.mail.mud.yahoo.com> In-Reply-To: <218603.24972.qm@web35203.mail.mud.yahoo.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: 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 14:21:38 -0000 Stephen Liu wrote: > Hi Jonathan Chen, > > Tks for your advice. > > >> If you're going to use "startx" you will need a ${HOME}/.xinitrc with >> the following contents: >> >> #/bin/sh >> startkde >> >> Make sure the file is 755 permissions. This will start up X with KDE. >> I would suggest you configure /etc/ttys to start up KDM instead of >> using "startx" > > Your advice worked here starting KDE. > > What I'm trying to do is running; > > $ startkde > will start K desktop > > $ gnome-session > will start Gnome desktop This won't work since those are just the windowmanagers - you need an X server to start them. However you could solve it with some small scripts: start-gnome.sh: ---------------- #!/bin/sh rm -f ~/.xinitrc ln -s ~/.xinitrc_gnome ~/.xinitrc startx ---------------- ################ .xinitrc_gnome: ---------------- #!/bin/sh exec /usr/local/bin/gnome-session ---------------- ################ start-kde.sh: ---------------- #!/bin/sh rm -f ~/.xinitrc ln -s ~/.xinitrc_kde ~/.xinitrc startx ---------------- ################ .xinitrc_gnome: ---------------- #!/bin/sh exec /usr/local/bin/startkde ---------------- make sure all of these files are executable (chmod 755 ) the .xinitrc* files have to be in your home directory - start-gnome.sh and start-kde.sh in any directory in your PATH (eg. ~/bin if it's only for one user) -- Armin Pirkovitsch a.pirko@inode.at