LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2003, 08:18 PM   #1
mindstormsguy
Member
 
Registered: May 2003
Posts: 32

Rep: Reputation: 15
Question How to change what desktop manager is used to logon. (mandrake)


I am running mandrake 9.1 on my box, and i saw someone who changed there graphical logon screen from the default mandrake one (kde) to the one that redhat uses (the gnome one). i cant figure how to change which one my computer uses. can anyone help?

Last edited by mindstormsguy; 10-15-2003 at 08:32 PM.
 
Old 10-15-2003, 09:25 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
http://doc.mandrakelinux.com/Mandrak...tml/login.html

'As you can see in the Session Type field, the default environment is the last one you used. You can change it by simply choosing another one from the pull-down menu.'

Mandrake's documentation is second to none.

RO
 
Old 10-15-2003, 09:32 PM   #3
Read_Icculus
Member
 
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
I believe that you'll have to edit one of your config files, no doubt you should be root to do this. The config file in question is /etc/X11/prefdm

It should look like this (with some more stuff at the bottom I left off) -

Code:
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HOME=/root
export HOME

# We need to source this so that the login screens get translated
[ -f /etc/profile.d/10lang.sh ] && . /etc/profile.d/10lang.sh

# trap SIGTERM to be able to kill autologin
killed () {
    kill -15 $!
    exit
}

trap killed 15

# Run preferred X display manager

# Try autologin first, if wanted...
if [ -f /etc/sysconfig/autologin -a -x /usr/sbin/autologin ]; then
        . /etc/sysconfig/autologin
        if [ -n "$USER" -a "$AUTOLOGIN" = yes ]; then
            /usr/sbin/autologin &
            echo -n $$ > /var/lock/subsys/dm
            wait $!
        fi
fi

# we have to assume that /etc/sysconfig/desktop has two variables, DESKTOP
# and DISPLAYMANAGER because administors may prefer a specific DM regardless
# of desktops.
# DISPLAYMANAGER is referenced by this script, and DESKTOP is referenced
# as system-wide default by /etc/X11/Xsession script only when X-session
# is opened by "startx" command. 
# when DMs open an X-session, they send DESKTOP, which is in this case
# directly selected by users, as a commandline argument of /etc/X11/Xsession.
# actually Xsession script is only able to know by existance of its first
# argument whether it is called by DM or "startx". see the logic
# in /etc/X11/Xsession.
# If DISPLAYMANAGER is not defined, then assume that it is the same as DESKTOP
preferred=
Open this file in your favorite text editor and after the "preferred=" part add the text "gdm", so it looks like "preferred=gdm". That should change your login manager. If that doesn't do it than edit the file again, this time add "gdm" underneath the "
# Run preferred X display manager" line in the config file. Either one of those changes should do what you want.
 
Old 10-16-2003, 08:25 AM   #4
kasperhans
Member
 
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
use xwmconfig to change your standart window manager
 
Old 10-17-2003, 12:43 AM   #5
Read_Icculus
Member
 
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
On a Mandrake 9.1 box there does not seem to be a xwmconfig.

Code:
[default@localhost default]$ man xwmconfig
No manual entry for xwmconfig

[default@localhost default]$ whereis xwmconfig
xwmconfig:

[default@localhost default]$ urpmf --provides xwmconfig
(nothing)
xwmconfig seems to be mainly a Slackware-specific program.

Also I *think* that the original poster wants to merely change the login manager from kdm to gdm, anyone with half a brain can figure out that you can choose from any of the WMs you have installed when you login via gdm or kdm on Mandrake. Mandrake also provides a very easy graphical tool to change the default WM, so I don't imagine that's the problem. However there is no such tool to change your login manager other than the prefdm script. Which is as simple to edit as I outlined above.
 
Old 10-18-2003, 10:45 PM   #6
mindstormsguy
Member
 
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
thanks Read_Icculus your method worked perfectly
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where do you change the X session logon to text and vice versa? Thaidog Linux - General 2 10-19-2005 09:28 AM
Change userID now can't logon to system saraeliz Linux - Newbie 5 10-11-2005 09:07 PM
change logon icon fypon Mandriva 1 03-10-2004 02:13 AM
Gnome Desktop Manager logon problem l_pinter Linux - Newbie 5 01-12-2004 05:39 PM
change from graphical to text logon mode in RH8 hheejj Linux - General 4 01-09-2003 04:49 AM


All times are GMT -5. The time now is 04:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration