LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-22-2006, 11:21 AM   #1
Crushing Belial
Member
 
Registered: Mar 2005
Location: University of Massachusetts - Lowell
Distribution: Ubuntu, Win 7 Pro, Win 7 Enterprise
Posts: 126

Rep: Reputation: 15
Setting up GDM to start automatically upon bootup


Running Slackware 10.2 here with GNOME, and I'd like to know how to have GDM start up after bootup. Right now, I get dumped at the command-line after bootup, and then I need to login as root, and then have to type "gdm". How can I skip this?
 
Old 02-22-2006, 11:29 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
Check if you boot into 4 level . Edit /etc/rc.d/rc.4 and add these lines:
if [ -x /usr/sbin/gdm ]; then
exec /usr/sbin/gdm -nodaemon
fi
 
Old 02-22-2006, 11:36 AM   #3
Crushing Belial
Member
 
Registered: Mar 2005
Location: University of Massachusetts - Lowell
Distribution: Ubuntu, Win 7 Pro, Win 7 Enterprise
Posts: 126

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien_Hominid
Check if you boot into 4 level . Edit /etc/rc.d/rc.4 and add these lines:
if [ -x /usr/sbin/gdm ]; then
exec /usr/sbin/gdm -nodaemon
fi
I already have those lines:

Code:
#! /bin/sh
#
# rc.4		This file is executed by init(8) when the system is being
#		initialized for run level 4 (XDM)
#
# Version:	@(#)/etc/rc.d/rc.4	2.00	02/17/93
#
# Author:	Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by:  Patrick J. Volkerding <volkerdi@slackware.com>
#

# 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.
Does it matter if the path is "sbin", or "bin"? I noticed your lines say sbin.

Last edited by Crushing Belial; 02-22-2006 at 11:38 AM.
 
Old 02-22-2006, 11:43 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
Leave that file as is. Open up /etc/inittab in a text editor and change

id:3:initdefault:

to

id:4:initdefault:

After that the system will look for the first graphical login manager. If you have GDM installed it will use that. If you don't, it will start KDM, and if it doesn't find KDM then XDM will run.
 
Old 02-22-2006, 11:47 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
please ignore this entry

Last edited by Randux; 02-22-2006 at 11:49 AM.
 
Old 02-22-2006, 12:19 PM   #6
Crushing Belial
Member
 
Registered: Mar 2005
Location: University of Massachusetts - Lowell
Distribution: Ubuntu, Win 7 Pro, Win 7 Enterprise
Posts: 126

Original Poster
Rep: Reputation: 15
Ok, thanks for the replies.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 6 02-15-2009 10:42 PM
Bootup load GDM JohnStormrider Linux - Software 2 08-22-2005 09:41 AM
automatically start gdm at boot time rosslaird Debian 6 09-07-2004 09:00 AM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 12:58 PM
Language setting for GDM? tipaul Slackware 0 09-18-2003 12:28 AM


All times are GMT -5. The time now is 06:48 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration