MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.