From owner-freebsd-questions@FreeBSD.ORG Wed Jul 29 17:48:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A486106564A for ; Wed, 29 Jul 2009 17:48:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id B79E98FC0A for ; Wed, 29 Jul 2009 17:48:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-59-134.dynamic.qsc.de [92.195.59.134]) by mx02.qsc.de (Postfix) with ESMTP id 975D91E274 for ; Wed, 29 Jul 2009 19:48:09 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n6THm4C1003260 for ; Wed, 29 Jul 2009 19:48:04 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 29 Jul 2009 19:48:03 +0200 From: Polytropon To: FreeBSD Questions Message-Id: <20090729194803.8742e0bc.freebsd@edvax.de> In-Reply-To: References: <4463dcg86r.fsf@be-well.ilk.org> <441vo0o9ap.fsf@be-well.ilk.org> <44ocr3a8zq.fsf@be-well.ilk.org> <20090729173305.a9e0f458.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: problem with startx..! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 17:48:12 -0000 On Wed, 29 Jul 2009 19:04:23 +0300, thanos trompoukis wrote: > The .xinitrc exists and contains this: startkde This should be okay for the "startx" command, but display managers such as xdm and kdm aren't interested in it. > The .xsession does not exists. This file is needed for display managers. > What am I suppose to do now? > I have no Idea. It's quite easy. Create or modify so you have this: 1. ~/.xsession #!/bin/csh source ~/.cshrc exec ~/.xinitrc This assumes that your shell is the C shell, FreeBSD's standard dialog shell. This file is used by the display managers, such as xdm. It sources your user's C shell settings from .cshrc so you have these settings in X when, for example, you're starting an X terminal. Then it continues running as .xinitrc ("exec" statement). 2. ~/.xinitrc #!/bin/sh exec startkde This file is used when giving the "startx" command from the text mode console or executed after login by a display manager, such as xdm. It continues running as the "startkde" command, which is supposed to launch your KDE session. After creating the files, run % chmod +x .xinitrc .xsession Now you can % startx to start X and KDE, or use xdm or kdm - no matter which solution you use, the config files are prepared to cope with both situations. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...