Ask Your Question
0

disable x temporarily

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

Natherul gravatar image

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

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

Comments

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

2 Answers

Sort by ยป oldest newest most voted
3

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

cobra gravatar image

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

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 rpmfusion.org 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

Comments

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

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

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

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

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

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

Stats

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

Seen: 214 times

Last updated: Dec 10 '13