Linux exit x before installing

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

Источник

Проблема с установкой драйвера 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, и после этого запускать, выдает тоже самое.

Читайте также:  Suse linux обновить 12

Ставь из репозитория. Не надо себе мозги так выкручивать. У тебя 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, тоже самое

Источник

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

@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. )

Читайте также:  Clonezilla hdd to ssd linux

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):

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:

Читайте также:  Screen capture for linux

List all your runing services with:

Источник

Thread: [SOLVED] How to exit X?

rsnow is offlineFrothy Coffee!

Join Date Jan 2007 Location Navasota, Texas Beans 194 —> Beans 194 Distro Ubuntu 10.10 Maverick Meerkat

[SOLVED] How to exit X?

I am trying to install Nvidia drivers. When I do the instructions from Nvidia, i.e., type sh NVIDIA-Linux-x86-177.82-pkg1.run

I get error: You appear to be running an X server; Please exit X before installing.

I guess I’m just denser than usual today. How does one exit X if that is part of the operating system?

sr20ve is offlineA Carafe of Ubuntu

Join Date Jun 2007 Location Oklahoma City Beans 115 —> Beans 115 Distro Ubuntu 10.10 Maverick Meerkat

Re: How to exit X?

ctrl-alt-f2 to switch to virtual terminal. ctrl-alt-f7 to switch back.

Edit your boot line from your grub menu.

Reboot, press esc on bootup to enter the grub menu. Select you default kernel, press e to edit. Put a space, then 1 at the end of the line. Press esc, then b to boot.

That will boot into runlevel one, and it is just a temporary edit, so it will not affect the next boot.

RATM_Owns is offlineFrothy Coffee!

Re: How to exit X?

Chunky Dunk is offlineJust Give Me the Beans!

Re: How to exit X?

Press ctrl-alt-F1 (or F2-F6) to switch to a virtual console, then login. Once you’ve done that issue:

rsnow is offlineFrothy Coffee!

Join Date Jan 2007 Location Navasota, Texas Beans 194 —> Beans 194 Distro Ubuntu 10.10 Maverick Meerkat

Re: How to exit X?

First of all, thanks to all for the prompt responses and clear instructions.

Second, I didn’t know there were Nvidia drivers available through ubuntu. I guess I should have checked. I just went to the Nvidia web site and downloaded the drivers they recommended and started trying to install them.

rsnow is offlineFrothy Coffee!

Join Date Jan 2007 Location Navasota, Texas Beans 194 —> Beans 194 Distro Ubuntu 10.10 Maverick Meerkat

Re: How to exit X?

Follow up question — where how to find the nvidia drivers in the repository? I did searh in synaptic with no results.

Chunky Dunk is offlineJust Give Me the Beans!

Re: How to exit X?

Go to System >> Administration >> Hardware Drivers and it will search for the nvidia driver, and tell you how to enable it.

nzadLithium is offlineQuad Shot of Ubuntu

Re: How to exit X?

First off try this way, click system, administration, Hardware drivers
This app should hopefully detect your card and give you some available drivers for it along with a recommendation of what you should use, you can use that app to install it.

they are in synaptic, search nvidia

or you could try this, I’m not sure if it will install all the necessary components of the driver but on command-line
sudo apt-get update
sudo apt-get install nvidia-glx-177

If it still doesn’t work, can you post up your nvidia cards model number so we can find out what version of the driver will work for you? (I think ubuntu has 3 different versions of the nvidia drivers XD).

Oh chunky dunk already posted the first bit XD

Источник

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