View previous topic :: View next topic |
Author |
Message |
turboedvo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Sep 2005 Posts: 87
|
Posted: Sat Feb 25, 2006 5:29 pm Post subject: KDE/Fluxbox how to choose when running startx |
|
|
Hello there. I've been running KDE since I started using Linux and it is pretty but I am trying to learn more of the inner workings of linux. Thus, I'd like to use fluxbox (I have tried it on my friends' computers) and I like it. But, I would like a way to choose between KDE and fluxbox when I run startx. Is there a way to do this? I've only every run one window manage per computer before, so I don't really know where to begin. Thanks.
Eamon |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zsoltika l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/150318895542cb9cf0ab8c2.png)
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sat Feb 25, 2006 5:58 pm Post subject: |
|
|
For an "everlasting" change set it in /etc/rc.conf.
If you want to chosse while using startx set it in your '${HOME}/.xinitrc
Here is some doc about it:
http://www.tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html
HTH _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
turboedvo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Sep 2005 Posts: 87
|
Posted: Sat Feb 25, 2006 8:05 pm Post subject: |
|
|
Yeah, but is there a way to make it selectable with a menu or a command? I want to be able to boot either one easily. I remember back when I was running Fedora, the login screen had a dropdown menu that would allow me to choose KDE or Gnome as I logged in. Something like that would be just fine.
Eamon |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Varean Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/80988600843697aa6653c7.gif)
Joined: 03 Jul 2005 Posts: 436 Location: California, USA
|
Posted: Sat Feb 25, 2006 8:15 pm Post subject: |
|
|
Looks like you are in need of a login screen/display manager. Give KDM(for KDE) or GDM(Gnome) a shot.
Code: | emerge kdm *or gdm* |
_________________ Registered Linux User #387568
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mikegpitt Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/320581971410bd37710af6.jpg)
Joined: 22 May 2004 Posts: 3224
|
Posted: Sat Feb 25, 2006 8:15 pm Post subject: |
|
|
I think you want kdm, which is the login manager for KDE. It has a selection box to allow different session types. Two other login managers you may be interested in are xdm (which comes with X) and gdm. Xdm requires some tewakign to make it look nice (the default is WAY ugly). Gdm is for gnome, so unless you use gnome you probably don't want to use gdm, because of all the dependencies.
To add kdm as your default login manager do this:
In your rc.conf put in this line:
Code: | DISPLAYMANAGER="kdm"
|
Then do this:
Code: | rc-update add xdm default | (yes that is suppose to be xdm not kdm here) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zsoltika l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/150318895542cb9cf0ab8c2.png)
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sat Feb 25, 2006 8:20 pm Post subject: |
|
|
On the page I mentioned above, there is an example .xinitrc script.
Find this in the script:
Quote: | Code: | # start some nice programs
if [ -f $HOME/.Xclients ]; then
exec $HOME/.Xclients
else
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
if [ -f /usr/X11R6/bin/fvwm ]; then
exec fvwm
else
exec twm
fi
fi
#eof |
|
And paste this above this part: Code: |
echo "Choose between Kde/Fluxbox"
read what2start
|
Then edit the queted part like:
Code: | if [ "$what2start" -eq "Kde"] ; then
exec startkde
else
if [ "$what2start" -eq "Fluxbox"] ; then
exec startfluxbox
else
exec twm
fi
fi
|
Or something like this. Didn't checked if this works.[/quote] _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sat Feb 25, 2006 8:58 pm Post subject: |
|
|
You just need to set your XSESSION environment variable and export it before you call startx. Normally this is done in /etc/rc.conf, but you can do it yourself at the command line or in a script. Either "export XSESSION=fluxbox" or "export XSESSION=kde-3.4.3" (put in the correct version number for kde)
You can find the installed sessions on your system by looking in /etc/X11/Sessions. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zsoltika l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/150318895542cb9cf0ab8c2.png)
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sat Feb 25, 2006 9:07 pm Post subject: |
|
|
yabbadabbadont wrote: | You just need to set your XSESSION environment variable and export it before you call startx. Normally this is done in /etc/rc.conf, but you can do it yourself at the command line or in a script. Either "export XSESSION=fluxbox" or "export XSESSION=kde-3.4.3" (put in the correct version number for kde)
You can find the installed sessions on your system by looking in /etc/X11/Sessions. |
Thanks man, I need to sleep 'cause I come up some weird solution instead of yours simple ![Smile :)](images/smiles/icon_smile.gif) _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|