View previous topic :: View next topic |
Author |
Message |
madman420 n00b
Joined: 13 Oct 2009 Posts: 15 Location: NorthWest US
|
Posted: Tue Oct 13, 2009 5:16 pm Post subject: Add KDE4 to KDE3's KDM? |
|
|
I just installed KDE 4.3.2 (with: emerge ~kdebase-startkde-4.3.2). I also have KDE 3.5.10, which is great, I love it, and plan to keep it too (or instead, if push comes to shove). When I start the PC, it still shows the old KDM login screen with no option for a KDE4 session. The only way I can get to KDE4 is to "console login" from KDM (which I think leaves a bunch of KDE3 libs in memory) and then 'startx' from console.
Is there a way to switch between which version of KDE I want active? And is there also a way to (automatically) switch which slot (3.5 or 4) apps run?
Thanks. |
|
Back to top |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Tue Oct 13, 2009 7:14 pm Post subject: |
|
|
seems that the old kdm is not finding the right session file.
do you have kdm-4.3.2 installed? if not - do it. If yes, use that one instead of kdm-3.5 _________________ Study finds stunning lack of racial, gender, and economic diversity among middle-class white males
I identify as a dirty penismensch. |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Tue Oct 13, 2009 7:22 pm Post subject: |
|
|
Hi madman420,
did you also installed the kdm version of the (4.3) slot?
It's not installed as dependency by the command you named above.
Regards, Andy.
Uups, too late for that post, energyman was faster... _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
madman420 n00b
Joined: 13 Oct 2009 Posts: 15 Location: NorthWest US
|
Posted: Tue Oct 13, 2009 11:34 pm Post subject: Doesn't work yet... |
|
|
Okay, I installed KDM-4.3.2, and *replaced* the config files in /etc/conf.d/xdm & /etc/init.d/xdm with the new ones via 'etc-update'.
Then I got these errors during boot-up:
Code: |
ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm or install x11-apps/xdm package
start-stop-daemon: stat /usr/bin/xdm: No such file or directory (No such file or directory)
ERROR: could not start Display Manager
|
... I tried messing around with a few different combinations in related files, but no luck, it just dumps me at a console with those errors.
Also, /usr/kde only has a '3.5' directory, but 4.3.2 is installed somewhere because 'startx' always launches KDE 4.3.
BTW: If anyone knows a good way to review Gentoo's init messages, I'd be happy to know (I had to write down & type the ones above because dmesg didn't show them). |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Oct 13, 2009 11:44 pm Post subject: |
|
|
So what did you set DISPLAYMANAGER to in /etc/conf.d/xdm ?
BTW the KDE4 executables are installed in /usr/bin. |
|
Back to top |
|
|
madman420 n00b
Joined: 13 Oct 2009 Posts: 15 Location: NorthWest US
|
Posted: Wed Oct 14, 2009 12:17 am Post subject: |
|
|
I tried setting it to: kdm, kdm-4.3, kde-4.3 (give or take a few others). I was just trying whatever seemed like it had a chance (probably missed a few choices though). What should it be? Anyone with a working KDM 4.3.2 please tell me your:
/etc/conf.d/xdm
/etc/init.d/xdm
/etc/rc.conf
/etc/env.d
(or any setting that might help) THANKS!
@Mike Hunt (cool name =)
Thanks for the location of the exe's. Gentoo (last I read) is supposed to keep the Desktop Environments in their own directory in /usr, everything else that isn't a game server or something similar is supposed to go into /usr/bin. |
|
Back to top |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Wed Oct 14, 2009 1:09 am Post subject: |
|
|
I have both kde-3.5 and 4.3 installed and both are used.
The login manager is currently kdm-3.5 but I plan to change
that. However kde4 was one of the possible choice for me.
So here is what you asked:
/etc/conf.d/xdm Code: | # We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you have't accidently configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7
# What display manager do you use ? [ xdm | gdm | kdm | kdm-3.5 | kdm-4.0 | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
# KDE-specific note: kdm-3.5 and kdm-4.0 are just examples. You will find all
# possible versions by looking at the directories in /usr/kde/.
DISPLAYMANAGER="kdm-3.5" | /etc/init.d/xdm default coming with xdm-1.1.8
I don't mess much with init script.
/etc/rc.conf Code: | # /etc/rc.conf: Global startup script configuration settings
# UNICODE specifies whether you want to have UNICODE support in the console.
# If you set to yes, please make sure to set a UNICODE aware CONSOLEFONT and
# KEYMAP in the /etc/conf.d/consolefont and /etc/conf.d/keymaps config files.
UNICODE="yes"
# Set EDITOR to your preferred editor.
# You may use something other than what is listed here.
EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# DISPLAYMANAGER has moved to /etc/conf.d/xdm
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts are smart enough to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enlightenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
# is called.
# 2) even if ~/.xsession exists, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (look in /etc/X11/Sessions/)
# Xsession - will start a terminal and a few other nice apps
XSESSION="kde-3.5" | Note that you could try to put kde-4.3 in the XSESSION variable above and see what happen when you try
to login in "default" rather than "last". Check also the content of /etc/X11/Sessions: Code: | ll /etc/X11/Sessions/
total 17
drwxr-xr-x 2 root root 144 2009-10-05 22:26 .
drwxr-xr-x 16 root root 696 2009-10-05 22:26 ..
-rwxr-xr-x 1 root root 2187 2009-10-05 22:25 Xsession
-rwxr-xr-x 1 root root 41 2009-06-04 13:39 kde-3.5
-rwxr-xr-x 1 root root 33 2009-09-12 21:21 kde-4.3
-rwxr-xr-x 1 root root 25 2009-08-08 22:31 openbox | If you don't have kde-4.3 there you are in trouble.
As to your assertion that desktop are kept in their own directory it is not
FHS compliant and in the case of kde it was a nice hack to be able to have
several versions of kde installed side by side (you probably could do the same
with gnome). There was an option to do that with kde4 but it caused problems
and is now masked (kdeprefix useflag). |
|
Back to top |
|
|
madman420 n00b
Joined: 13 Oct 2009 Posts: 15 Location: NorthWest US
|
Posted: Wed Oct 14, 2009 4:38 pm Post subject: |
|
|
Thanks fb.
I decided to go ahead and file a bug report about this because it shouldn't be this difficult to get KDM going when you have etc-update replace all the configs. |
|
Back to top |
|
|
|