LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-14-2004, 02:58 AM   #1
antizero
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 9

Rep: Reputation: 0
Bypassing GDM/getting a text login


Hi,
I'm wondering if anyone knows of a command to bypass the GUI login (I have it set to gdm) at boot. I've tried alt+f6 but that only works temporarily, once X starts it will go from text mode to GUI... and that isn't working for me because I made an error in a gnome display manager theme .xml file, I need to simply login from text mode as root, and rename a file and/or edit one or two... but I can't seem to come across any commands to bypass X windows/login via text mode. I'm using mandrake 10.0. Thanks in advance, for anybody who has an idea.
 
Old 10-14-2004, 03:12 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Edit /etc/fstab
change
id:5:initdefault:
to
id:3:initdefault:

and
init 3
will put you into runlevel 3 without a whole reboot.
 
Old 10-14-2004, 03:16 AM   #3
antizero
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by darthtux
Edit /etc/fstab
change
id:5:initdefault:
to
id:3:initdefault:

and
init 3
will put you into runlevel 3 without a whole reboot.

This would be useful, if I had a means to edit it... I can't login to bring up any editor (vi, pico, etc.) in the first place.
 
Old 10-14-2004, 03:46 AM   #4
antizero
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 9

Original Poster
Rep: Reputation: 0
I'll elaborate a bit:

When I boot up, everything goes smoothly until x starts, GDM (gnome display manager, the graphical logon I use) looks for a theme .xml file which is pointing to an image file, which I incorrectly named... this prevents GDM from starting normally and gives me an error dialog, I cannot do anything at this point.. besides restart. I simply need to logon in text mode, but I can't change /etc/inittab initdefault from 5 to 3 because I can't login in the first place. Is there any command which will allow me to bypass x windows and go to a text-only login? (such as alt+f6, but alt+f6 is overridden as soon as x starts... so that isn't any use)

Sorry if I'm unclear about anything.
 
Old 10-14-2004, 03:55 AM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
You need to boot into single user mode. Is your bootloader LILO or GRUB? If lilo, then type
linux single
at the boot prompt
for grub, I'm not sure. I know you have to hit e and then go through a few more steps.
 
Old 10-14-2004, 03:57 AM   #6
antizero
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 9

Original Poster
Rep: Reputation: 0
It's grub, ;-(... but that's alright I'm sure I can google some stuff up and try to get going from there... If I cant fix it that way I'll just hit up this forum again. Thanks.
 
Old 10-14-2004, 04:00 AM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
I googled this up
http://www.redhat.com/docs/manuals/l...ng-single.html

 
Old 10-14-2004, 04:12 AM   #8
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
When I do stuff like this I just bung in a knoppix disk, mount the partition and edit from there.
 
Old 10-14-2004, 04:55 AM   #9
antizero
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 9

Original Poster
Rep: Reputation: 0
Darth, thanks alot! I booted in single user mode, did my thing and everything is running smoothly now, you own. And speaking of knoppix, I should've thought of that but I can't seem to find my cd anywhere so I guess I'll have to burn a new one. :- )

!edit
I found my knoppix disc :-)

Last edited by antizero; 10-14-2004 at 04:56 AM.
 
Old 10-14-2004, 05:20 AM   #10
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Cool I'm glad it's working. I have knoppix and morphix cd's. They come in very handy.
 
  


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
GDM: one login per user Pastorino Linux - Software 2 05-10-2005 01:19 PM
Graphical login fail, text login works livewire98801 Linux - General 2 10-11-2004 06:09 PM
gdm login help moschi Linux - Newbie 2 07-03-2004 12:30 PM
X login using GDM koyi Slackware 2 07-24-2003 11:00 PM
GDM to Text anandag Linux - Newbie 1 06-14-2003 06:33 PM


All times are GMT -5. The time now is 05:56 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 Google+: linuxquestions
Open Source Consulting | Domain Registration