Find the answer to your Linux question:
Results 1 to 5 of 5
Hiya, I've been using Slack for about 6 months now, And something that has been bothering me is I can't run KDM or GDM as anyone BUT root. Clearly you ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    65

    GDM and KDM


    Hiya,

    I've been using Slack for about 6 months now,

    And something that has been bothering me is I can't run KDM or GDM as anyone BUT root. Clearly you all know why this is a problem, as I hate running as root.

    I've tried chmodding, and I figured that wouldn't work anyways.

    Can you help? I like the extra features GNOME gives you if you run GDM.

  2. #2
    Just Joined!
    Join Date
    Oct 2004
    Posts
    15
    Hmmm... you actually have to run GDM or KDM... I set up the runlevel at boot time to be 4 in the /etc/inittab so it automatically loads for me... strange....

  3. #3
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407
    Quote Originally Posted by espiesior
    Hmmm... you actually have to run GDM or KDM... I set up the runlevel at boot time to be 4 in the /etc/inittab so it automatically loads for me... strange....
    by default Slackware is runlevel 3, which does require you to run GDM or KDM

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407

    Re: GDM and KDM

    Quote Originally Posted by Social Burn
    Hiya,

    I've been using Slack for about 6 months now,

    And something that has been bothering me is I can't run KDM or GDM as anyone BUT root. Clearly you all know why this is a problem, as I hate running as root.

    I've tried chmodding, and I figured that wouldn't work anyways.

    Can you help? I like the extra features GNOME gives you if you run GDM.
    if you want to stay in run level 3, you can still
    Code:
    startx
    and it will load the default WM

  6. #5
    Just Joined!
    Join Date
    Nov 2004
    Location
    Portugal
    Posts
    39
    If you're using runlevel 3, you won't need the GDM or KDM to login.
    But... if you're using runlevel 4, you'll be able to login via a graphical interface.

    To run at runlevel 4, you have to edit the initab file and change the Default to 4.
    Look at the following line:

    Code:
    # Default runlevel. (Do not set to 0 or 6)
    id:3:initdefault:
    Currently I have runlevel 3 selected. In runlevel 4, should be:

    Code:
    # Default runlevel. (Do not set to 0 or 6)
    id:4:initdefault:

    Than, at the file rc.4 located in /etc/rc.d/ you can edit to choose your runlevel.
    Mine looks like this:
    Code:
    # Tell the viewers what's going to happen...
    echo "Starting up X11 session manager..."
    
    # Try to use GNOME's gdm session manager:
    #if [ -x /usr/bin/gdm ]; then
    #  exec /usr/bin/gdm -nodaemon
    #fi
    
    # Not there?  OK, try to use KDE's kdm session manager:
    if [ -x /opt/kde/bin/kdm ]; then
      exec /opt/kde/bin/kdm -nodaemon
    fi
    
    # If all you have is XDM, I guess it will have to do:
    #if [ -x /usr/X11R6/bin/xdm ]; then
    #  exec /usr/X11R6/bin/xdm -nodaemon
    #fi
    
    # error
    echo
    echo "Hey, you don't have KDM, GDM, or XDM.  Can't use runlevel 4 without"
    echo "one of those installed."
    sleep 30
    
    # All done.
    Hope this helps.
    GL m8.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •