Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Running KDE with Apple's X11 UNIX
Over the last few days, I installed KDE from source (using darwinports), which took forever. Then I endeavored to get KDE running correctly under Apple's X11. I looked at the two hints that mention KDE already on this site, but neither offered enough information to make it work. The biggest problem with running KDE under Apple's X11 is it simply doesn't work correctly with the default window manager (i.e. quartz-wm). KDE comes with its own window manager, but it can't use it if quartz-wm is in use. After much testing, I found the best solution to the problem. First, open up the file /usr -> X11RC -> lib -> X11 -> xinit -> xinitrc in BBEdit (or your editor of choice -- make sure to run it as sudo if it can't authenticate itself). Next, comment out the two lines xterm & and exec quartz-wm. After that, add these two lines to the end:

exec /opt/local/bin/kwin &
exec /opt/local/bin/startkde
Of course, those paths assume you installed KDE using darwinports. If you installed KDE manually or through fink, you may have to change the paths. Anyway, once those changes are in place, X11 will now start up correctly with KDE and the KDE window manager. BTW, make sure to run X11 in Full Screen mode. It would be difficult to use KDE when intermingled with Aqua. The last (and most annoying) problem to getting X11 and KDE working was that I had no functioning Alt key - the Option key simply did nothing. After much fooling around, I found the following solution:

Create a file called .Xmodmap in your home directory. Open it in some editor. Add in the following two lines:

keycode 66 = Alt_L
keycode 69 = Alt_R
Save it. If you're already running X11, type the following in:
xmodmap ~/.Xmodmap
Otherwise, just start X11. Now option will act as Alt.
    •    
  • Currently 2.60 / 5
  You rated: 3 / 5 (5 votes cast)
 
[16,463 views]  

Running KDE with Apple's X11 | 8 comments | Create New Account
Click here to return to the 'Running KDE with Apple's X11' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Running KDE with Apple's X11
Authored by: Ranger Rick on Nov 16, '03 01:19:54PM

Hmm, how did you come to those keycodes?

I'd like to add support for setting them in startkde in future KDE builds, but the codes I was told to change them to are slightly different than what you got:


/usr/X11R6/bin/xmodmap -e "keycode 78 = Left"
/usr/X11R6/bin/xmodmap -e "keycode 74 = Right"

I'm also told that up and down can cause problems in kate. I'd like to determine that those are OK too.

xev doesn't seem to print the "right" thing, so it's hard to tell what this really *should* be.



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: Ranger Rick on Nov 16, '03 02:55:13PM

Duh, never mind, you appear to be fixing a different problem.

I guess the real question is, "what's up with encoding on apple's x11?"

Sounds like there's all kinds of stuff that's just messed up by default.



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: GaelicWizard on Nov 16, '03 03:59:33PM

Do NOT edit the xinitrc file in the X11R6 folder! Copy it to ~/.xinitrc and edit that one! You do NOT need to edit a system file! And you do NOT need to be root!

Also, you might find it neccessary to turn off the "show icons on desktop" in the kontrol panel, that is likely the only problem you're experiencing, as it is the only one I am having (with quartz-wm). Also, if you use kwin then it is best to run it (with icons on) in full screen mode, not in rootless as the functionality is quite diff from quartz-wm.

---
Pell



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: aranor on Nov 16, '03 06:09:20PM

I did say to use fullscreen mode. And the problem with quartz-wm was that no windows were responding to clicks. Besides, if you're using KDE you really shouldn't be using anything other than kwin.

BTW, the reason I said to edit the default .xinitrc file was because I read somewhere that if you add your own .xinitrc file the default one isn't run, and it has some other stuff in it (the .Xmodmap stuff) that you need.



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: GaelicWizard on Nov 16, '03 07:29:38PM

Which is exactly why you need to *copy* the original. :-)

The windows not responding to clisks is actually because of the "show icons on desktop" setting, believe it or not. It is a known bug.

---
Pell



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: rockman2023 on Nov 16, '03 09:51:55PM

I've seen KDE before and wasnt exactly sure if I wanted to install it or not. So, me, being new to KDE and X11, what's a good resource for me to follow; a beginner's guide perhaps. I'm familiar with Terminal.



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: lolajl on Nov 17, '03 11:02:57AM

Okay, so, if I need to copy the original, how do I make sure this new copy is the one that gets read and not the original when I start up X11?



[ Reply to This | # ]
Running KDE with Apple's X11
Authored by: aranor on Nov 17, '03 07:12:39PM

Call the new one .xinitrc and place it in your Home folder.



[ Reply to This | # ]