From owner-freebsd-questions@FreeBSD.ORG Wed Feb 28 11:57:09 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 1E98616A400 for ; Wed, 28 Feb 2007 11:57:09 +0000 (UTC) (envelope-from satimis@yahoo.com) Received: from web35207.mail.mud.yahoo.com (web35207.mail.mud.yahoo.com [66.163.179.86]) by mx1.freebsd.org (Postfix) with SMTP id DAF2B13C48D for ; Wed, 28 Feb 2007 11:57:08 +0000 (UTC) (envelope-from satimis@yahoo.com) Received: (qmail 94418 invoked by uid 60001); 28 Feb 2007 11:57:08 -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=Xc9OQIfiB9nHZcUiWyDoLsIshytMB2kF+WHEvREhU9pCMTH40S5qSPO9gkZp93ruUjalCyYbtAVygQ441meQfq2Py7qqGr7iH25SW66fIiOCC3IGIP7+m0A6PYHkn8xt93559w5rlWQwEjCJzBuwBbqIrokeIV+ZkBPjUxhXM3k=; X-YMail-OSG: WlIrpmwVM1m4TqOIuptvTrKlWIjCm9CyibOHNhFeSb3JB9._KidmhVnEXY0EPkvCyDwM5wpW4dk5YfqtF6jp.k0W2QqWLG8sE3r6fluxdEJGwgYw5.ljx5zoAJNsGtl4tRqeaAhlepQwLwE- Received: from [220.232.213.178] by web35207.mail.mud.yahoo.com via HTTP; Wed, 28 Feb 2007 19:57:08 CST Date: Wed, 28 Feb 2007 19:57:08 +0800 (CST) From: Stephen Liu To: Armin Pirkovitsch , freebsd-questions@freebsd.org In-Reply-To: <45E43E70.9090304@inode.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <359469.93868.qm@web35207.mail.mud.yahoo.com> 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: Wed, 28 Feb 2007 11:57:09 -0000 Hi Armin, Tks for your advice. --- Armin Pirkovitsch wrote: > 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) Something strange happened here. If copying "xorg.conf.new" on /etc/X11/ and renaming it as "xorg.conf". I can't start X, the HD only turning. Now I don't have /etc/X11/xorg.conf. I can start KDE (not Gnome). I don't know which "xorg.conf" I am now running. I can toggle resolution to increase font size on browser witn [Ctrl]+[Alt]+[+] B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com