Nvidia linux exit x server

Smart ways to do regular things

How to “Exit X” to manually install latest nvidia drivers on Ubuntu Oneiric 11.10

I recently upgraded my Ubuntu installation to Oneiric 11.10 x64. I did a clean install and was disappointed to see that my nvidia drivers were not the latest that were available from the nvidia website. My system had 280.13 while the latest 64bit stable drivers available on nvidia’s website was 285.05

I dutifully downloaded the drivers from the website on my computer, but when I wanted to run and install the driver, I was getting a message to “Exit X” before trying to install these graphics drivers. After slapping my forehead once (because I had already encountered this issue last year too!) I promptly pressed

to get into Virtual Console (tty1) and logged in. Then I typed the usual

to disable the X server temporarily, as I’m used to do in 11.04 and earlier. But this gave rise to the error message

gdm is an unrecognized service

Another head slapping moment. I remembered that 11.10 has ditched gdm in favor of lightdm. So the command has to change to

Install the graphics driver with the command

xyz@Ubuntu64:~/Downloads$ sudo sh ./NVIDIA-Linux-x86_64-285.05.09.run

Once the driver is successfully installed, you can restart X server with the command

to enjoy your newly installed nvidia graphics drivers.

Note: This post is relevant to the Gnome version of Ubuntu Oneiric 11.10.
For Kubuntu 11.10: To start stop x server in kde, replace lightdm with kdm

Источник

Thread: How do I exit the X server, terminate all OpenGL applications, etc.

tessawong is offlineFirst Cup of Ubuntu

How do I exit the X server, terminate all OpenGL applications, etc.

I wish to install NVIDIA-Linux-x86_64-331.20.run on Ubuntu 12.04.3 LTS (x64)

I was reading the article (URL is http://us.download.nvidia.com/XFree8. alldriver.html) and hope that someone show me how to do the following:

1. Exit the X server
2. Terminate all OpenGL applications
3. Ensure that all OpenGL applications have exited
4. Set the default run level such that it will boot to a VGA console
5. Disable the Nouveau driver

I am new to Linux; hence some handholding would be helpful.

monkeybrain20122 is offlineUbuntu addict and loving it

Re: How do I exit the X server, terminate all OpenGL applications, etc.

You don’t need to install the .run file from Nvidia. As I answered in your other thread. Use the xswat ppa
Open the terminal

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvida-331 ppa-purge

ppa-purge is installed just in case something goes wrong you can use it to remove the ppa and downgrade the packages, but don’t worry about it atm.

Читайте также:  Low cost linux server

EDITED: HOLD IT. I noticed that you are using 12.04.3 so you are using the raring graphic stack and there may be issues using the ppa. Better wait a bit before you do anything..

Saw this in the xorg-edgers ppa, not sure if it applies to x-swat as well

WARNING: Do not use this PPA with the precise X backport stacks, aka if you fresh install of 12.04.2 or newer. You can switch back to a compatible one by installing xserver-xorg-lts-precise instead if you do want to use these packages but horrible things will happen if you don’t.

oldos2er is offlineStaff Emeritus

Join Date Jul 2007 Location Magic City of the Plains Beans 18,511 —> Beans Hidden! Distro Xubuntu Development Release

Re: How do I exit the X server, terminate all OpenGL applications, etc.

deadflowr is offlineRobot Pirate Ghost

Re: How do I exit the X server, terminate all OpenGL applications, etc.

QuoteOriginally Posted by oldos2er View Post

Not in 12.04.
In 12.04, just open the dash and search for additional drivers.
It moved to the software sources after Precise.

nvidia-319 is the latest available on Precise through the repos method.
I have no idea what’s going on with 12.04.3 and the xswat ppa.

+1 to installing from the repos over installing the run file from nvidia, too many problems crop up when installing from the downloaded file.(Not to mention the arcane way you have to actually install it.)

But in all fairness to the OP
To kill X move to a console(ctrl +alt+F1)
login, enter you password and then run

sudo service lightdm stop

this will kill X and all the goodies the run on it(ie, opengl stuffs)
Then you’d want to move into the Downloads folder and run the commands you should already have written down to install the file.
After you install the file, either run a reboot(simply type sudo reboot), or change the stop in the above command to start.

Splat Double Splat Triple Splat
Earn Your Keep
Don’t mind me, I’m only passing through.
Once in a blue moon, I’m actually helpful .

Источник

How to close X Server, to avoid errors while updating nVidia driver?

I tried to update my nVidia driver but I got an error when I ran the driver installation. See the error:

 ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com. 

Note: I tried following a guide by typing init 3 but still nothing changed.. How to close the X server? So I can update the driver

9 Answers 9

I don’t think I’ve ever gotten that installing/updating nvidia, but here:

# To stop: sudo init 3 # To resume: sudo init 5 

Though I’m not 100% sure that’ll work on Ubuntu, IIRC they moved away from init. On Ubuntu, try this (replace gdm with kdm/slim/whatever display manager you use):

# To stop: sudo service gdm stop # To start: sudo service gdm start 

I’m pretty sure that stops the whole X session

Less cleanly, you could just kill them:

I tried your first solution and didn’t work, then I tried your second solution it says unrecognised service(I tried all of them) I also tried your last solution and it says no proccess found

Читайте также:  Восстановление linux средствами linux

@CKM you need to be on a virtual console, ctrl-alt-f1 through f6. Ctrl-alt-f7 will get you back to the gui once you start it again.

Depending on your version the way of stopping the X server varies. You have to exit the graphic mode (by typing alt+ctrl+F1 , for example), login, and then type one of the following commands to stop the X server:

sudo service lightdm stop sudo service gdm stop sudo service kdm stop //this is the one that worked for mi as I use kdm and Linux mint 

Now you can install the drivers and then type

When you write sudo service press tab to see the options you have (gdm, kdm. )

As the error states, you are still running an X server. This error occurs when you try to install the Nvidia .run files while logged in.

Make sure you are logged out.

  • Hit CTRL+ALT+F1 and login using your credentials.
  • kill your current X server session by typing sudo service lightdm stop or sudo stop lightdm
  • Enter runlevel 3 (or 5) by typing sudo init 3 (or sudo init 5 ) and install your .run file.
  • You might be required to reboot when the installation finishes. If not, run sudo service lightdm start or sudo start lightdm to start your X server again.

Booting to a different runlevel

Runlevels in Linux dictate which services are started and stopped automatically when the system boots or shuts down. The runlevels typically range from 0 to 6, with runlevel 5 typically starting the X window system as part of the services (runlevel 0 is actually a system halt, and 6 is a system reboot). It is good practice to install the NVIDIA Linux Driver while X is not running, and it is a good idea to prevent X from starting on reboot in case there are problems with the installation (otherwise you may find yourself with a broken system that automatically tries to start X, but then hangs during the startup, preventing you from doing the repairs necessary to fix X). Depending on your network setup, runlevels 1, 2 or 3 should be sufficient for installing the Driver. Level 3 typically includes networking services, so if utilities used by the system during installation depend on a remote filesystem, Levels 1 and 2 will be insufficient. If your system typically boots to a console with a command prompt, you should not need to change anything. If your system typically boots to the X window system with a graphical login and desktop, you must both exit X and change your default runlevel.

On most distributions, the default runlevel is stored in the file /etc/inittab, although you may have to consult the guide for your own distribution. The line that indicates the default runlevel appears as

or similar, where n indicates the number of the runlevel. /etc/inittab must be edited as root. Please read the sections on editing files and root user if you are unfamiliar with this concept. Also, it is recommended that you create a copy of the file prior to editing it, particularly if you are new to Linux text editors, in case you accidentally corrupt the file:

# cp /etc/inittab /etc/inittab.original 

The line should be edited such that an appropriate runlevel is the default (1, 2, or 3 on most systems):

Читайте также:  Манджаро линукс xfce настройка

After saving the changes, exit X. After the Driver installation is complete, you may revert the default runlevel to its original state, either by editing the /etc/inittab again or by moving your backup copy back to its original name.

Different distributions provide different ways to exit X. On many systems, the init utility will change the current runlevel. This can be used to change to a runlevel in which X is not running.

There are other methods by which to exit X. Please consult your distribution.

List all yours processes with:

List all your runing services with:

Источник

Проблема с установкой драйвера nvidea

Стоит дебиан 8, kde 4.14.2 Скачал драва с сайта nvidea .deb и .run Запускал из рута пишет:

ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at http://www.nvidia.com.

Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at http://www.nvidia.com.

nvidia-installer log file ‘/var/log/nvidia-installer.log’

creation time: Sat Jun 13 14:10:38 2015 installer version: 346.72

nvidia-installer command line: ./nvidia-installer

Using: nvidia-installer ncurses user interface -> Detected 4 CPUs online; setting concurrency level to 4. -> The file ‘/tmp/.X0-lock’ exists and appears to contain the process ID ‘980’ of a runnning X server. ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at http://www.nvidia.com

Пробывал останавливать иксы, переходил Ctrl+Akt+F1 etc/init.d/kdm stop, и после этого запускать, выдает тоже самое.

Ставь из репозитория. Не надо себе мозги так выкручивать. У тебя debian, не слака.

Да научись уже читать

Читай внимательно, чтобы писать правильно и не задавать глупых вопросов.

sudo systemctl disable kdm sudo systemctl stop kdm sudo killall Xorg chmod +x *.run

Далее, ставишь свой *.run Но лучше конечно же, ставить драйвер из репы, как выше уже сказали.

Проблема новая Делал все по второму пункту Добавил репозитарии в sources.list Вот что там:

# # deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official amd64 DVD Binary-1 20150606-14:19]/ jessie contrib main #deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official amd64 DVD Binary-1 20150606-14:19]/ jessie contrib main deb http://ftp.ru.debian.org/debian/ testing main contrib non-free deb-src http://ftp.ru.debian.org/debian/ unstable main contrib non-free deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free deb http://ftp.ru.debian.org/debian/ jessie main deb-src http://ftp.ru.debian.org/debian/ jessie main deb http://security.debian.org/ jessie/updates main contrib deb-src http://security.debian.org/ jessie/updates main contrib # jessie-updates, previously known as 'volatile' deb http://ftp.ru.debian.org/debian/ jessie-updates main contrib deb-src http://ftp.ru.debian.org/debian/ jessie-updates main contrib 

Создал в каталоге /etc/apt/apt.conf.d/ 00release

APT::Default-Release "testing";

apt-get install module-assistant проходит

apt-get install -t sid nvidia-kernel-source выдает: >> тение списков пакетов… Готово E: Значение «sid» недопустимо для APT::Default-Release, так как выпуск недоступен в источниках

Пробывал testing менять на Jessi, тоже самое

Источник

Оцените статью
Adblock
detector