LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Config files, X issue, startup scripts... please help! (http://www.linuxquestions.org/questions/slackware-14/config-files-x-issue-startup-scripts-please-help-349448/)

shashir 08-02-2005 11:48 PM

Config files, X issue, startup scripts... please help!
 
I installed Slackware and everything was going just right. I followed the "How I do it all" thread and updated my software using swaret. Then I did this to my init/startup scripts:
mv /etc/rc.d/rc.inet1.conf.new /etc/rc.d/rc.inet1.conf
mv /etc/rc.d/rc.wireless.conf.new /etc/rc.d/rc.wireless.conf
mv /etc/rc.d/rc.local.new /etc/rc.d/rc.local
mv /etc/rc.d/rc.inet1.new /etc/rc.d/rc.inet1
mv /etc/rc.d/rc.inet2.new /etc/rc.d/rc.inet2
mv /etc/rc.d/rc.font.new /etc/rc.d/rc.font
mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4
mv /etc/rc.d/rc.6.new /etc/rc.d/rc.6
mv /etc/rc.d/rc.M.new /etc/rc.d/rc.M
mv /etc/rc.d/rc.S.new /etc/rc.d/rc.S
mv /etc/profile.new /etc/profile
mv /etc/shadow.new /etc/shadow
mv /etc/smartd.conf.new /etc/smartd.conf
mv /etc/gshadow.new /etc/gshadow
mv /etc/group.new /etc/group
mv /etc/hotplug/blacklist.new /etc/hotplug/blacklist
mv /etc/passwd.new /etc/passwd
mv /etc/inittab.new /etc/inittab

And efter that everytime I start my computer, instead of going into the really nice dropline gdm login screen, I end up with the xdm login screen (it even says it is starting gdm in the console... but ends up in xdm). This and other really silly issues ruined by slackware installation.

Please tell me how to solve this. If not, at least allow me to download these files from you.

Thank you,
Shashir

shilo 08-03-2005 12:31 AM

The problem is this:
Code:

mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4
There is a modified /etc/rc.d/rc.4 for dropline. Here it is:

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/sbin/gdm ]; then
  exec /usr/sbin/gdm -nodaemon
fi
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.

You can use the whole thing, or you can just edit the three relevant lines.

shashir 08-03-2005 12:46 AM

Everything works correctly now... thanks!

vls 08-03-2005 07:13 PM

You might considered using the '-b' option with mv when writing over important files. This creates a backup of the file being overwritten.

zborgerd 08-05-2005 04:12 PM

Yeah. Unfortunately, the GDM maintainers moved the binary on us. Our GDM packager sent a report Pat's way, since he's not working with the GNOME stuff anymore. We were a bit concerned that Pat was likely going to remove the GDM stuff from the startup scripts anyway (since he's no longer shipping GNOME or GDM), so we decided that we'd probably have to added the entry on our own. There will be no GDM in Slackware 10.2, so it's just a matter of time before it breaks on all of the third-party GNOME/Slackware desktops (if he makes the change to the script). That modification was there to help plan ahead for this. :)


All times are GMT -5. The time now is 08:50 AM.