On 2010-08-19 15:35, zGreenfelder wrote:
What should I write to get, say, gnome?
I have tried "startx gnome" and I got kde4, again.
...
I think your simplest course of action might be to change your default runlevel to 5 (can't think of the tools that would do that right now, I'd edit /etc/inittab and change the line like id:3:initdefault: to id:5:initdefault: )
No, that is not my question. I know how to get gnome (or any other) in runlevel 5, have done so for ages.
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
The script starts the server and then tries to call a window manager. It will execute .xinitrc if that is found, in that file there would be included a statement like "exec twm" (this is the example in the man page). However, install this is not set up on a vanilla install. So when not using xinitrc, the script uses a env variable, $WINDOWMANAGER, which is set at logon, it is taken from /etc/sysconfig/windowmanager DEFAULT-WM. The value is the name of the program which actually starts up the DE or WM, so e.g., for KDE it is the literal "startkde". But note that what is passed to startx is the fully qualified file name, i.e., /usr/bin/startkde. If there is not a valid variable, startx will also look in /usr/X11R6/bin to find the startup program there. Try this . . . boot into runlevel 3 and logon. Immediately do echo $WINDOWMANAGER. When you do startx, that is what is being executed. The variable can overriden, too. I found that "startx startkde" failed while "startx /usr/bin/startkde" worked; "startx twm" failed but "startx /usr/bin/twm" worked, etc. If changing the literal in sysconfig doesn't translate into a windowmanager variable which works, try "startx <fully qualified name>". Unfortunately since I don't have gnome, I can't provide it's startup program name. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org