How to kill X server without being forced to log out
Hi, I'm having trouble killing X server and keeping access to the console. I'm trying to install an Nvidia driver so that I can use OpenGL with Geant4. To install the driver, I need X server to be off.
I Googled, and found a lot of things about runlevels that no longer apply in 10.04, since inittab has been removed, and that the runlevel now defaults to 2. I tried CTRL + ALT + Backspace, but that just boots me to the GUI login prompt. In earlier versions of Ubuntu, I would set the default runlevel to 3, but since I'm already at 2, that seems to be as low as I need to go. I tried it in runlevel 1, but the installer warned me about the possibility of needing daemons that would otherwise be running. So in summary, I just need to be able to kill the X server and keep using the console on the current run level. If anyone knows how I can do that in 10.04, I would be grateful. |
Press ctrl+alt+f1? Then log in and /etc/init.d/gdm stop ?
|
init 3...
Open a terminal and use the command "sudo init 3". You should then be in runlevel 3, that is in console mode with X halted. However, you will have to log in again, either as an ordinary user or su. |
While init levels are an option, the smoothest is to use the provided consoles using the ctrl+alt keys as listed above. CTRL+ALT+F1-F6 are 6 terminal logins which will persist through UI reboots (killing X and restarting). CTRL+ALT+F7 is your UI. Additionally CTRL+ALT+F1 is the console that displays the output during machine startup.
I've done this many times before (applying nvidia upgrades) and even gone so far as to script it, but basically in that console you wanna Code:
pkill gdm |
Or, last time I tried, just press Ctrl-Alt-Backspace (while in an X window). This kills X immediately.
--- rod. |
Quote:
|
All times are GMT -5. The time now is 08:41 AM. |