Ask Your Question

disable x temporarily

asked 2013-12-10 01:44:46 -0500

Natherul gravatar image

updated 2014-10-17 08:12:02 -0500

mether gravatar image

Hey all!

I was trying to install the official NVIDIA drivers and it cant continue since X server is running, so I wonder if theres any way to disable X temporarily for just one login or something like that?

edit retag flag offensive close merge delete


marcindulak gravatar imagemarcindulak ( 2013-12-10 06:02:58 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-12-10 10:44:55 -0500

cobra gravatar image

updated 2013-12-10 10:46:09 -0500

The quick guide is this:

Flip to a text-mode console - use CTRL-ALT-F2

Log-in as root

issue the command init 3, which will flip you to runlevel 3, i.e. text mode multiuser with networking

Carry out the video card install in the normal way (following the instructions from nVidia)

either reboot (that's the easy way out) or use the more complex (but quicker 'cos there's no reboot involved) method:

issue the command init 5, the video log-in screen will restart, flip back to the console you were just on with CTRL-ALT-F2, log out of your root user session with CTRL-D, and flip back to your login screen with CTRL-ALT-F1.

NOTE: you don't have to do any of this - if you drop by you can install their repository on your system and use their pre-build binary versions of the drivers. These install as a yum package (kmod-nvidia) so you don't have to build the drivers yourself.

edit flag offensive delete link more


The concept of SysV runlevels is obsolete, but luckily these old commands still work. The systemctl equivalents are as "simple" as: "systemctl isolate" and "systemctl isolate"

jmt gravatar imagejmt ( 2013-12-10 15:35:04 -0500 )edit

Yeah - it's a good job they're making it so much easier... :s

cobra gravatar imagecobra ( 2013-12-10 16:18:55 -0500 )edit

answered 2013-12-10 02:18:11 -0500

mrunge gravatar image

you could boot by adding a '3' to the boot command line in grub2 boot menu, could issue init 3 on a root prompt.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-12-10 01:44:46 -0500

Seen: 222 times

Last updated: Dec 10 '13