LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 09-14-2003, 05:57 PM   #1
ChaosJunkee
LQ Newbie
 
Registered: Aug 2003
Location: North Carolina
Distribution: Mandrake 9.1
Posts: 8

Rep: Reputation: 0
Angry Problem getting to command line...


Ok, first of all I am using mandrake 9.1 and kde. I have mandrake setup to go straight into the graphical mode (this is for ease of use for my wife who I am trying to convert to linux). The problem is that I can't figure out how to get out of x and back to the command line. Ctrl-Alt-Bksp just causes x to restart and put me back at the graphical login screen. If I logout of x, I end up at the graphical login menu which gives me options to reboot the comp, shutdown the comp, and place the comp in standby, but no option to get me to a command line without x running.

So when installing things that involve x, such as an nvidia driver, I am supposed to log out of x and work from the command line. But the only way I have found to get out of x and to a real command line is to unselect my option to boot directly to graphical mode and then logout. Then after installing something like an nvidia driver, I have to start x from the command line and then reselect my option to boot to graphical mode.

What I need is a way to get out of x to do command line work, but on the next reboot, my "boot to graphical" selection will still apply. Just so you know, I do know how to use consoles, but for things like the nvidia driver, X cannot be running at all during the install.

Thanks in advance for any advice.
 
Old 09-14-2003, 06:06 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
An 'init 3' should get you into runlevel 3, a non graphical environment.

Open a term, become root and type init 3

I'm not a mandrake user, but this is the general way of switching runlevels.

This are the runlevels and what they should be used for:

# runlevel 0 is System halt (Do never use this for initdefault)
# runlevel 1 is Single user mode
# runlevel 2 is Local multiuser without remote network (e.g. NFS)
# runlevel 3 is Full multiuser with network
# runlevel 4 is Not used
# runlevel 5 is Full multiuser with network and xdm
# runlevel 6 is System reboot (Do never use this for initdefault)

To go back to your 'X' environment: init 5

Or reboot, your default setting is still intact, check /etc/inittab for the following line:

# default runlevel
id:3:initdefault:

It won't say 3, probably 5 (if Mandrake followed the numbering convention)
 
Old 09-14-2003, 06:09 PM   #3
jcksrobbins
Member
 
Registered: Oct 2002
Location: Idaho
Posts: 55

Rep: Reputation: 15
I'm not sure if its the right way, but when I want to go to terminal only from the GUI this is what I do:

Open the konsole or a terminal, "su -" to work as root. Type "init 3"(without quotes). X server is shut down and you are then working in text mode only. When you want to go back to the GUI type "init 5"(as root, without quotes) and you will be taken back to the login screen.
 
Old 09-14-2003, 06:12 PM   #4
jcksrobbins
Member
 
Registered: Oct 2002
Location: Idaho
Posts: 55

Rep: Reputation: 15
Sorry for the redundant post. Guess I was still typing when you posted.
 
Old 09-14-2003, 06:25 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374


NP, bottomline: We both gave the same answer.
 
Old 09-14-2003, 06:26 PM   #6
ChaosJunkee
LQ Newbie
 
Registered: Aug 2003
Location: North Carolina
Distribution: Mandrake 9.1
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the help...

That was exactly what I needed to know.

Works great!

Thanks guys!
 
  


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 problem elfowl MEPIS 9 06-05-2005 01:18 AM
problem using ln with command line lex Linux - Newbie 4 06-03-2004 08:43 AM
Problem executing from command line jleyba213 Linux - General 4 04-09-2004 01:43 PM
command line problem garth_s Linux - General 1 06-26-2003 03:12 PM
problem with command line prompt ??? robeb Linux - General 2 12-07-2002 09:47 PM


All times are GMT -5. The time now is 03:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration