LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-10-2003, 02:57 PM   #1
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Rep: Reputation: 15
Switching between graphical and console modes


Hello. I keep on noticing that feature of completely turning off x-server and working on console mode, but I just can't figure out how to do it with Mandrake 9.1. Ctrl+Alt+F# keys do nothing, and when I try using Ctrl+Alt+Backspace the server is restarted but I can't terminate it unless I reboot.

How do I do it?
 
Old 09-10-2003, 03:18 PM   #2
jcksrobbins
Member
 
Registered: Oct 2002
Location: Idaho
Posts: 55

Rep: Reputation: 15
Ctrl+Alt+F2 should work in mdk 9.1. After you hit the previous keys, login as root and then swich to runlevel 3 by typing: init 3

It should switch to console only and ask you to login again.

Maybe you've got a keyboard problem if the key combination above won't work.

Last edited by jcksrobbins; 09-10-2003 at 03:21 PM.
 
Old 09-10-2003, 03:19 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If you go to your control center and in there, there is a section where you can configure X. It can be done there.

Also you canedit your /etc/innitab (I think that is the files name). In it there is a section about runlevel. I believe that in Mandrake it should be runlevel 3 to boot to a command line. When you are in the command line and want to start a GUI, you can type startx. If you want to change window managers make a file named .xinitrc in your home directory and make it look like this.

#!/bin/bash
exec <name of window manager>

I hope I gave you the right file name. I'm not in front of a Linux box right now.
 
Old 09-10-2003, 03:40 PM   #4
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Well, I don't want it to log into console by default, I just wish to be able to leave X server when you need console only mode (e.g. updating graphics card drivers).

Ctrl+Alt+F2 does nothing either by the way, and I don't recall modifying anything as far as the keyboard is concerned.
 
Old 09-10-2003, 06:55 PM   #5
LiquidZoo
Member
 
Registered: Sep 2003
Location: Utah, USA
Distribution: Mandrake 9.1
Posts: 66

Rep: Reputation: 15
You may need to change it to log in as cli only if you are trying to update graphics drivers. That's the only thing I can think of to help since your Ctrl+Alt+F2-6 doesn't do anything on your system (that's really strange, by the way). The shortcuts should be Ctrl+Alt+F2-6 to bring you to a new login prompt and Ctrl+Alt+F7-12 to bring you back to the graphical environment.
 
Old 09-11-2003, 12:20 AM   #6
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Is there no way at all to configure the keyboard like that? I just hope it would be fine in the new version...
 
Old 09-11-2003, 12:32 AM   #7
LiquidZoo
Member
 
Registered: Sep 2003
Location: Utah, USA
Distribution: Mandrake 9.1
Posts: 66

Rep: Reputation: 15
It should be configured like that by default... I have no clue, honestly, if you can configure those shortcuts in. What happens when you log out of your DE? Does it take you back to KDM? If so, there should be a way to get to a console from there.

I guess if all else failed, you could always reboot and start up in failsafe. That is a rather Windowsy way to go about it, but it would work.
 
Old 09-11-2003, 05:50 AM   #8
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
It takes me back to KDM, but I've failed to find a way how to leave the X server completely after started.
 
Old 09-11-2003, 06:04 AM   #9
LiquidZoo
Member
 
Registered: Sep 2003
Location: Utah, USA
Distribution: Mandrake 9.1
Posts: 66

Rep: Reputation: 15
ok, at KDM can you press Ctrl+Alt+F2 and change to a console login screen? If you can, do it, log in as root and issue this command: service dm stop

Then do what you have to do and issue: service dm start

Then logout, Ctrl+Alt+F7 to get back to your normal login screen.
 
Old 09-11-2003, 09:57 AM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I think you just open a console window and then as root do
init 3
This should force the system down to runlevel 3, i.e. no X. I'm never in runlevel 5 b/c I don't use dm, but I know I can kill X and get down to runlevel 1 in this way from inside X.
 
Old 09-12-2003, 04:37 AM   #11
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
I've tried using Ctrl+Alt+F2 on the KDM screen, but again nothing happened.

Also I've tried reading the man page for the init command, but they say nothing about the difference between the numbers there.

Can anyone tell me what does it do? I know about 0, 1 and 6 I think, but what about the rest? And how can I determine my current init level?
 
Old 09-12-2003, 08:17 AM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you can determine the current runlevel with command
runlelvel
If you're using kdm you'll be in runlelvel 5. If you go to runlelvel 3, kdm will be killed.

You can think of different runlelvels as different amounts of services running. Usually, runlelvel 3 has text console with networking. So you have pretty much everything except for the graphical login manager. You can start X in runlelvel 3 (by startx). Runlelvel 5 is for graphical login (usually). In mandrake, level 4 is not used.

\you can determine what gets started at what runlelvel with K-muenu->config->boot and init -> SysV-init-editor

Last edited by quatsch; 09-12-2003 at 08:49 AM.
 
Old 09-12-2003, 11:14 AM   #13
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Hmm I don't want to change anything in the login sequence, I just wish be able to switch to console mode when needed, or is it impossibe?
 
Old 09-12-2003, 02:37 PM   #14
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you don't have to change anything in the boot sequence. When you issue
init 3
as root, this take your system to runlevel 3 which has no X running. If you want to get back, you do
init 5
This is not going to have any effect on your boot sequence. Similarly, for certain things you want to do
init 1
and once you're done with the maintenance stuff, you do
init 5
and you're back to your graphical login manager.
 
Old 09-13-2003, 01:59 AM   #15
Panzerfrost
Member
 
Registered: Aug 2003
Distribution: RedHat 9, Mandrake 9.1, Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Oh, got it now. I guess that'll do the trick

Thanks a lot.
 
  


Reply



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
console text modes (NOT X) Dazed_75 Debian 14 01-06-2006 08:26 PM
Graphical + Console Tredo Linux - General 3 11-18-2004 11:37 AM
xfce switching between graphical interfaces el_pajaro! Linux - Software 3 09-10-2004 12:32 PM
(here's a challenge) VGA text console modes with a new kernel. ftgow Linux - Hardware 9 02-12-2004 02:08 AM
Switching Modes???? WAT!! nstuer16 Linux - Newbie 7 12-21-2003 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration