LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-23-2004, 07:38 PM   #1
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Rep: Reputation: 15
Question How to Start in Command Line (No GUI)


I have a problem in that I tried to install the drivers for my touchpad and I editted the XF86Config-4 file in such a way that when I start up Linux it tries to load the GUI, but all that comes up is a black screen for about 1 minute and then it just reboots. I can see the Command Line asking me to login a couple of seconds before the GUI loads, but not long enough to do anything.

I know what to do to fix this problem if I can just get access to that XF86Config-4 file to change it back to what it was previously. I want to use the Command Line as my sort of 'Safe Mode' to do that from. I'm figuring there must be some button I could hold down to boot up to the Command Line and not load anything else.

Is there such a shortcut key, or some other way to get into a function like that?

Thanks a lot,
Peter
 
Old 09-23-2004, 08:14 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
boot into single user mode (by adding a " 1" [_space_ 1] to the end of the kernel parameter... you can do this by hitting 'E' when you see the grub boot splash....

this will give you root command line access to edit the config file.
 
Old 09-23-2004, 08:24 PM   #3
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Original Poster
Rep: Reputation: 15
While i was installing Sarge, Grub suffered a fatal error. So I just left it along and install Lilo (which I quite like) Will this trick work with Lilo as well?

Thanks,
Peter
 
Old 09-23-2004, 08:27 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
well you can forcably exit x with ctrl-alt-backspace, that should drop you into a shell. or just switch to a seperate tty
 
Old 09-23-2004, 08:37 PM   #5
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
If you have a linux boot disk handy the easiest way i have found to force Linux to boot text only is to edit the inittab file.

It is located at /etc/inittab

in the file there is a line that should look like:
id:5:initdefault:

what you do is comment out this line like so
#id:5:initdefault:
and chang the line to
id:3:initdefault:

This will force linux to start up with the text login and not the GUI login.

Hope this helps.
 
Old 09-23-2004, 08:40 PM   #6
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Original Poster
Rep: Reputation: 15
Unfortunately I'm on a laptop with no Floppy Drive so I have no floppies. : ( I tried a couple of USB drives with my laptop but they just didn't seem to work for some reason.

Is there any way to do this without a floppy?

Thnx,
Peter
 
Old 09-23-2004, 09:37 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Will this trick work with Lilo as well?
Pretty close. When you are in LILO, type the word single after the kernel name entry at the prompt at the bottom of the screen. That should put you into single mode and you can edit files to your heart's content.
 
Old 09-23-2004, 09:39 PM   #8
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Original Poster
Rep: Reputation: 15
Great, thanks I'll be sure to try that on my next reboot : )

Worked like a charm, thank you : )


Last edited by pjpeter; 09-24-2004 at 12:43 AM.
 
  


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
command line and GUI kpachopoulos Linux - Newbie 3 08-22-2004 10:13 AM
Command line to GUI Jon84 Slackware 34 03-12-2003 09:54 PM
Need help getting to GUI from command line Negativ13 Linux - Newbie 6 02-25-2003 04:20 PM
gui vs. command line sdfjk Linux - Newbie 1 10-05-2002 04:59 PM
Command Line vs GUI Poorman Linux - General 27 07-11-2002 01:40 PM


All times are GMT -5. The time now is 04:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration