LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-26-2004, 07:54 PM   #1
Acetylcholine
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu
Posts: 24

Rep: Reputation: 15
Display Manager blocks out


Hey. My Slackware is on runlevel 4. I wanted (stupidly) to change the default display manager to XDM from GDM. Now I changed my /etc/rc.d/rc.4 file from:

# GNOME's session manager:
if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
# KDE's kdm:
elif [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon
# If all you have is XDM, I guess it will have to do:
elif [ -x /usr/X11R6/bin/xdm ]; then
exec /usr/X11R6/bin/xdm -nodaemon
fi

to:

# If all you have is XDM, I guess it will have to do:
elif [ -x /usr/X11R6/bin/xdm ]; then
exec /usr/X11R6/bin/xdm -nodaemon
fi

# GNOME's session manager:
if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
# KDE's kdm:
elif [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon


Because I wanted XDM to be primary and everything else as a backup plan (i COULD have commented it out but nooo). What I (soooooo stupidly) didnt look (think??) at was (the code and) that instead of an IF there was an ELIF... ouch.

Now my computer goes up to "starting X display manager" and the screen changes to blank and black a few times, and then the terminal jumps out with no command line. I can type whatever, and it doesnt work. CTRL-C does nothing, CTRL ALT BAKSPACE the same

the virtual terminals dont have the command line..

How do I change my rc.4? Only thing I can think of is secure shell, but... lets assume firewall doesnt let it though.

Thanks!

How do I
 
Old 08-26-2004, 08:02 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
A good way to fix that is using a Linux Live CD as Knoppix. It's a great rescue tool. Simply boot knoppix, then mount your Linux partitions and fix the file you've made the changes. Reboot and enjoy your system

http://www.knoppix.org/

there might be some other ways of fixing it, but Knoppix is like my best bud. I never go out without a copy of it in my pockets
 
Old 08-30-2004, 11:03 PM   #3
Acetylcholine
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Well I did get onto the partition with knoppix, but the problem is I cant change anything on the disk: "Read only partition" it says, or something...

Note: Anyway, it doesnt say elif (else if) ... it says if... and it broke down

HELP.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Manager Troubles... HooX Linux - Newbie 9 01-05-2005 11:13 AM
C++: Write a display manager herzeleid Programming 0 07-15-2004 10:41 AM
not starting X display manager jamaas Linux - Laptop and Netbook 1 03-30-2004 05:00 AM
Display Manager aikempshall Mandriva 2 02-12-2004 03:11 PM
Display Manager DavidTempler Linux - Newbie 0 08-01-2003 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 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