problem with startx..!

Polytropon freebsd at
Wed Jul 29 17:48:12 UTC 2009

On Wed, 29 Jul 2009 19:04:23 +0300, thanos trompoukis <atr0x23 at> 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

	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

	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.

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list