Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE/Fluxbox how to choose when running startx
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
turboedvo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2005
Posts: 87

PostPosted: Sat Feb 25, 2006 5:29 pm    Post subject: KDE/Fluxbox how to choose when running startx Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sat Feb 25, 2006 5:58 pm    Post subject: Reply with quote

For an "everlasting" :D 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
View user's profile Send private message
turboedvo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2005
Posts: 87

PostPosted: Sat Feb 25, 2006 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Varean
Guru
Guru


Joined: 03 Jul 2005
Posts: 436
Location: California, USA

PostPosted: Sat Feb 25, 2006 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Sat Feb 25, 2006 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sat Feb 25, 2006 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sat Feb 25, 2006 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sat Feb 25, 2006 9:07 pm    Post subject: Reply with quote

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 :)
_________________
Do not believe that Guru thing under my nickname.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum