Date: Wed, 29 Jul 2009 19:48:03 +0200 From: Polytropon <freebsd@edvax.de> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: problem with startx..! Message-ID: <20090729194803.8742e0bc.freebsd@edvax.de> In-Reply-To: <d4a469990907290904w512e65fen4fe4eae927a453f6@mail.gmail.com> References: <d4a469990907280654p3243160bu59b0a67d40c620ca@mail.gmail.com> <4463dcg86r.fsf@be-well.ilk.org> <d4a469990907281040k98bdd00l8cf5919facffc515@mail.gmail.com> <441vo0o9ap.fsf@be-well.ilk.org> <d4a469990907281426x20a5934atef715b8c54bd7be4@mail.gmail.com> <44ocr3a8zq.fsf@be-well.ilk.org> <d4a469990907290824j1c33df86u5a74d4a220135d0@mail.gmail.com> <20090729173305.a9e0f458.freebsd@edvax.de> <d4a469990907290904w512e65fen4fe4eae927a453f6@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Jul 2009 19:04:23 +0300, thanos trompoukis <atr0x23@gmail.com> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090729194803.8742e0bc.freebsd>