how to choose session when I startx from text mode
Can anyone tell me how to choose the session when I startx from the text mode.
The default session if GNOME. Is there a way like # startx -s kde to choose the session I want to begin with. Or there is a file in the /etc/X11 which I can modify something as the default. Thanks very much! cain |
You have in your home directory (or can make) a file ~/.xinitrc. To start kde put in a line that says startkde
just like that, nothing else needed, when you startx it will start kde. Now from here you can also google to find scripts that give you a choice when you startx, but I never have gotten around to this yet so I can't tell you anymore than that. |
Here's my ~/.xinitrc:
Code:
# xscreensaver-demo & The earlier command lines must end with "&" or the script will end at that command. The window-manager command must be executed last. When I want to change window-managers, I just comment the current line and uncomment the line for the WM I wish to use. The sleep lines are just to ensure that the progs show up on my toolbar in the predicted order. |
thanks a lot!
but it looks a little difficult for me I will copy all the lines and try it anyway thanks a lot cain |
All times are GMT -5. The time now is 10:51 PM. |