LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-13-2004, 10:44 PM   #1
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Rep: Reputation: 15
mdkdm configuration question


This is probably a silly quesiton, but I've been googling for about 20 minutes and haven't found anything. Weird.

I want to know 2 things. First, how do you add a window manager to the mdkdm window manager selection?

Second: I've just re-installed Mandrake 10.0 official (first time I managed to mess up the file system). When reboot is selected at mdkdm (the choices are "halt" and "reboot"), I get a blank menu. What file do I have to edit to add Linux and Windows back to this menu? And what should be in it?

Thanks, I know this is silly, but I just can't seem to find anything.

stunter

Edit: OK, gdm wasn't installed. The files for gdm must have been installed by the afterstep installation. I installed gdm and can get to afterstep now. It's interesting anyway.

Still can manage to get mdkkdm to display a reboot list, but that's no big deal.

Thanks for the help. At least I can play a bit now.

stunter

Last edited by stunter; 05-16-2004 at 02:30 PM.
 
Old 05-14-2004, 07:48 PM   #2
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
Can someone tell my where the mdkkdm conf file is located? I had thought, for some reason, that it was in /etc. but if it's there, I don't see it.

Thanks,

stunter
 
Old 05-14-2004, 07:58 PM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
From MUO (MandrakeUser.org) - X - Starting X

Quote:
Configuration Files

The X Window System consists of two components: a client and a server. Because of this architecture, there are two sets of configuration files, one set for the client side and one set for the server side. Client side configuration can be overruled by special files in a user's home directory.

Client side configuration:

* '/etc/X11/Xsession': This script determines which window manager or desktop environment is run on X. Settings can be overruled by '.xinitrc' or '.xsession' (although the later is rarely used these days) or by options to the 'startx' command (see below).
* '/etc/X11/wmsession.d/': This directory contains the start scripts for the window managers and desktop environments installed on this system. Sessions can be checked, added and deleted via the 'chksession' command. See man chksession.
So the answer to your question is that it's not a file, but a directory. Hope this helps.
 
Old 05-14-2004, 08:06 PM   #4
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
motub,

Thanks, that helps a lot. As I said, it was a dumb question. Should have thought of it...but I didn't.

Thanks again,

stunter
 
Old 05-14-2004, 08:11 PM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
No, it wasn't a dumb question at all... figuring out which "Sessions" directory is the one you need to be working with (I've got 3, I think, in various areas of /etc), much less what to do once you've found it, is really not something one would be expected to know right off the bat.

So it's a useful reference for me as well-- decent docs often clear up what can sometimes be quite a muddy issue.
 
Old 05-14-2004, 08:20 PM   #6
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
motub,

Well, in looking at it, I think I have to come up with a script file for a new windowmanager then addit to the wmsession.d directory. Still not sure where the config for mdkkdm is exactly. It must be getting configuration from somewhere.

I also haven't found the reboot menu option yet. I remember in 9.2 that all the options from GRuB are listedm, but when I installed 10.0, the reboot menu from mdkkdm is blank.

Hmmm...

stunter
 
Old 05-14-2004, 10:08 PM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
I think that mdkdm, like gdm and xdm get their configuration (or at least part of it) from xdm if installed (and it's almost always installed).

This is why I have 3 or 4 Sessions directories in different places; in addition to the xdm config folder, both GDM and KDM have their own (GDM's is in /etc/X11, but KDM's is in the KDE filetree somewhere), and then there's some general one called /etc/X11/dm which I don't even know what that one's about.

In any case, what I do if a new WM has not added itself to the menu is to open up one of the shell scripts in /etc/X11/Sessions (which afaik is the xdm folder, unless it's /etc/X11/dm/Sessions, and the higher-level folder is bogus)-- but not the GNOME or KDE ones, one for something simpler like XFce, blackbox, or whatever-- and change the exec and any other relevant settings (like the tooltip) to reflect the new DE I want to add, then save as the_new_DE_name. But I use GDM, so it might be slightly different for you (I never used mdkdm for more than one login so I really don't know what it might do differently from the other DMs).

But in general, that's how it's done.... you might want to do a "which DE_name" first, to see if there's already a shell script or something that you should be using in your DM session script.

I know it's not very clear, but like I said, this is a muddy issue. Hope it helps.
 
Old 05-14-2004, 11:10 PM   #8
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
motub,

Cool. I'll mess with it a bit. It if works, it works. I use Windomaker and I wanted to try Afterstep, but running the rpm (or building from source for that matter) doesn't add it to the menus for mdkkdm or to gdm either, so I'm just rying to figure out how to add it manually.

We'll see.

stunter
 
Old 05-15-2004, 08:25 PM   #9
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
Well, I tried about everything I can think of. I created a script to start Afterstep in the /etc/X11/wmsession.d directory. pretty much copying the existing scripts. Didn't work. I've looked at about everything I can think of. There's supposed to be a way to add window managers to KDM. Thought that might work since mdkkdm gets it's configuration from KDM, but couldn't figure out how to do that. Under Mandrake's control center (desktop managers), GDM isn't an option. It's KDM, MdkDM and XDM. I looked through about 50 scripts that are in any way associated with XDM, but couldn't find anything other than fall back stuff if other's fail.

Does anyone know how to add window managers to either KDM or MdkDM?

Thanks,

stunter
 
Old 05-16-2004, 05:09 AM   #10
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
KDM... Run KDE and go to the KDE Control Center=>System Administration=>Login Manager. Under KDE 3.1.x there is supposed to be a tab that lets you add sessions (I have KDE 3.2.2 and do not have this tab).

The KDM folder is in /path/to/KDE/share/config/kdm/sessons. I think Mandrake installs KDE in the /opt folder.

GDM may need to be installed separately. It is usually installed with GNOME, but is a separate package from GNOME, so I don't believe you need to install GNOME to install GDM. To configure it, you type gdmsetup as root in a terminal (it's also in the main menu, under System Tools, I think, if you are still using the Mandrake menus and not the KDE/GNOME default menus).

Setting up GDM seems to set it as your default DM.

Is there an mdkdm folder in the /etc/tree? The config file should be there, which would tell you what folders mdkdm is looking in to find the sessions. It may be that mdkdm does not look in wmsession.d, but everything looks in /etc/X11/Sessions.

The config file in the kdm folder will also have a line like this one (this is mine from /etc/X11/gdm/gdm.conf):

SessionDesktopDir=/etc/X11/sessions/:/etc/X11/dm/Sessions/:/usr/share/xsessions/

This tells you where the dm is going to look for sessions, and as you see, /etc/X11/wmsession.d is not listed, but /etc/X11/sessions is. So I think you're adding the session to the wrong folder.

Hope this helps.

Last edited by motub; 05-16-2004 at 05:10 AM.
 
Old 05-16-2004, 01:52 PM   #11
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
motab,

Hmmm. Well, Afterstep appears in /usr/share/xsessions, though it's the only thing in the folder. Afterstep also appears in the file /usr/X11R6/bin/RunWM. There is no /etc/X11/sessions/, /etc/X11/dm at all. There's a /etc/X11/gdm folder, but no gdm or gdmsetup program that I can find. How weird is that?

I think that mdkkdm runs it's setup from the kde setup, but I'll be darned if I can figure out where that is. It's isn't anywhere that you'd normally look for it.

>>KDM... Run KDE and go to the KDE Control Center=>System Administration=>Login Manager. Under KDE 3.1.x there is supposed to be a tab that lets you add sessions (I have KDE 3.2.2 and do not have this tab)<<

I have 3.2.2 installed and I also don't have a tab for this.

>>The KDM folder is in /path/to/KDE/share/config/kdm/sessons. I think Mandrake installs KDE in the /opt folder<<

Nope, the /opt forder is empty right now (except for some stuff I put in there)

Obviously, KDE is somewhere and it's config files are scattered around. I'll keep looking for it.
 
Old 05-16-2004, 02:55 PM   #12
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Any or all of locate kde |less, locate kdm, which kdm ought to give you a general ballpark path to work with. My files are in /usr/share/kde/3.2/ .
 
Old 05-16-2004, 06:48 PM   #13
stunter
Member
 
Registered: May 2004
Location: Kitsap, Washington
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
motub,

Well, I found it, but it doesn't do me much good. The config files are in /usr/share/kdm/sessions. But they are binary files: (eg, kde.desktop). Hmmm... well, there must be some way to create an afterstep.desktop.

Oh well, I can get to it by using gdm, so that's cool.

stunter
 
Old 05-17-2004, 09:42 AM   #14
matze
Member
 
Registered: Oct 2003
Posts: 50

Rep: Reputation: 15
Quote:
Originally posted by stunter

Does anyone know how to add window managers to either KDM or MdkDM?
Maybe an update-menus -v does the trick. Someway like that, I added fluxbox to the menu in 9.2.

Cheers,
matze
 
Old 05-17-2004, 10:54 AM   #15
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
They are in fact not "real" binaries, in some sense... I know you can't open them with right-click=>Open With, but you can open them in a text editor.

Open a text editor (as root) and open one of the files. You can do this, I do it all the time to edit the files in GDM, which uses the same system (maybe it's part of the freedesktop.org standardization).

Edit it to reflect a different WM and save as "new_wm.desktop" instead of "old_wm.desktop". When you next run KDM (meaning a reboot, since logging out does not restart kdm, only X), you should have both wm's appearing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display configuration question prplmnkydw Debian 4 07-13-2005 10:17 AM
Configuration Question, Please Help smepis Linux - Laptop and Netbook 1 05-16-2005 09:24 PM
Configuration question gsmith1116 Linux - Software 0 02-12-2004 12:52 PM
Configuration question Mow Slackware 1 07-30-2003 08:08 PM
CDRDAO configuration question Viper Linux - Software 12 06-21-2003 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration