Nvidia drivers linux you appear to be running x server

Не запускается Xserver после установки драйверов nvidia

Решил я установить драйвера nvidia. После установки я зашёл в Nvidia X Server и мне там предложили настроить xorg.conf. Я согласился и теперь xserver не грузится вовсе (не говоря уже о DE, которым у меня является GNOME 3). Как поставить драйвер nvidia так, чтобы xserver запускался?(OS Debian 9, kernel 4.9.0-5)

для начала кидай лог запуска X-сервера на paste.org.ru и я на него буду посмотреть

ванга: скорее всего модуль тупо не собрался, а вовсе не из-за конфига

как будешь лог перекидывать — ну через флэшку можно

а по какому пути они хранятся?

Астрологи объявили неделю nVidia.

Количество неработающих иксов увеличилось вдесятеро.

а что, прям много так дохлых иксов развелось?

вот, всё, нашёл (тут лог 0)

а вот тут лог 1

Вот буквально вчера коллеге ставил дрова нвидии — у него не запахало. Один раз установили — модуль не собрался и не работает. Повторили второй раз — успешно собралось. А до того жаловалось что ядро собрано gcc-4.8 но само упорно лезло на gcc-4.9 который даже не удалить. Решилось установлением переменной export CC=gcc-4.8

Но у ТС-а другая трабла — драйвер по ходу собрался но запускается.

ТС, туда же на paste.org.ru кидай lspci -v

Решил я установить драйвера nvidia.

Как ты его установил? Как описано здесь: https://wiki.debian.org/ru/NvidiaGraphicsDrivers или ты их скачивал с сайта Nvidia?

У тебя в логе xorg-server`а видны два видео адаптера, показывай вывод lspci и рассказывай что у тебя за оборудование, случаем не ноутбук с Nvidia Optimus?

установил самые последние с сайта Nvidia, по поводу оборудования: у меня ноут с Intel HD 530 и GeForce GTX 950M на борту (об Nvidia Optimus ничего сказать не могу)

и да, каким образом залить можно на paste.org.ru что-то если у меня даже GUI нет, а браузер запускаться отказывается?

установил самые последние с сайта Nvidia

Ну молодец, сам виноват, открывай ссылку, что я тебе дал и следуй инструкциями по установке драйвера.

Модель говорить не нужно, это совсем необязательные и малозначительные данные для решения твоей проблемы, не надо об этом говорить. А так, где модель ноута?

Но с большой долей вероятности у тебя Nvidia Optimus, в Linux она настраивается не так, как в Windows.

В Linux графическую оболочку нужно запускать на карте Intel, а для запуска приложений на карте Nvidia нужно использовать специальную службу bumblebee и программы optirun или primusrun.

мне там предложили настроить xorg.conf

Если у тебя Nvidia Optimus, то его придётся удалить.

Есть консольные утилиты wgetpaste и pastebin.

хорошо, спасибо, будем, значит, следовать мануалу, а теперь такой вопрос: а как эти дрова обновлять до новых версий? (не сидеть же мне всю жизнь на старом драйвере)

а как эти дрова обновлять до новых версий?

Ты поставил Debian, это бинарный релизный дистрибутив. Т.е. выходит релиз и в нём есть определённые версии пакетов, вот их ты и должен использовать. Если тебе нужны новые версии, то можешь подключить репозиторий Debian Backports https://packages.debian.org/stretch-backports/nvidia-driver и поставить оттуда новое ядро, новый xorg-server и новую версию драйвера nvidia.

Читайте также:  Антитроянское по для windows

В бинарном дистрибутиве Linux, да и в любом другом Linux нужно ставить всё только из репозитория дистрибутива. Если ты не хочешь его сломать конечно. Есть конечно исключения, например Slackware или Linux From Scratch. Ну либо ты должен чётко понимать то делаешь.

Сейчас ты, к примеру, после установки драйвера с сайта Nvidia попросто перезаписал часть файлов. Тебе сейчас нужно переустановить пакеты с mesa для восстановления файлов с реализацией OpenGL, которые нужны для запуска xorg-server`а на драйвере Intel.

А потом уже ставь драйвер Nvidia из репозитория.

Далее идёшь в Google и вбиваешь: Debian wiki nvidia optimus.

Если у тебя конечно ноутбук с Nvidia Optimus.

Какая модель ноутбука?

Не забудь подключить ветки репозиториев contrib и non-free, это делается в файле /etc/apt/sources.list.

В начале разберись как что-либо настраивается, а уже затем делай, а не наоборот.

Если тебе хочется более свежих пакетов и вообще более регулярного обновления, то посмотри в сторону rolling-release дистрибутивов, дистрибутивов с непрерывным цыклом обновления, таких как Arch Linux.

А так, скажи какая цель гнаться за самыми последними версиями драйвера?

В Linux есть некоторые нюансы в совместимости версии ядра, версии драйвера и версии xorg-server`а.

Источник

Thread: nVidia drivers — «You appear to be running an X server»

Thread Tools
Display

nVidia drivers — «You appear to be running an X server»

So I’m new to Ubuntu/Linux in general, and I’m trying to install my graphics drivers so I don’t have to open grub and boot in nomodeset every time. I’ve gotten a .run file from nvidia.com for the latest x86 linux drivers for my 550 ti. After logging in as root (sudo -i, enter password), changing to the directory of the .run file, and doing «sh NVIDIA.run» (I renamed the file to NVIDIA.run so it’s shorter to type), it starts to install the drivers but throws an error saying «You appear to be running an X server». How do I fix this?

E: Heres the installer log

made me exit to the log in screen and i had to log back in.

edit 3:
Ok wow solved this my self. Here’s how I did it:

1. open gnome (CTRL + ALT + F3)
2. log in as your user
3. run «sudo init 3»
4. switch to root («sudo -i» or «sudo su root»)
5. cd to the directory containing the .run file
6. sh NVIDIA.run (where NVIDIA.run is the name of the .run file)
7. after completing the prompts, enter «reboot»

Last edited by tommyk1995; January 29th, 2012 at 09:52 AM .

Re: nVidia drivers — «You appear to be running an X server»

At the GRUB boot menu screen select your Ubuntu and then hit the e key to edit the kernel line boot options so that it will only boot to run level 3 text mode hopefully without the Xserver running. At the end of this kernel line after the long UUID is; «ro quiet splash», and so on, replace all that with; «rw nosplash —verbose text» which will allow you to view any boot up error messages and to boot into a text console to run your commands. The rw is for to mount in read write mode, not read only which I needed to do for this same type issue on my PC. And use your keyboard arrow keys to move the cursor while in grub.

Re: nVidia drivers — «You appear to be running an X server»

If that is too difficult for you just boot normally to a gui, Ctrl+Alt+F1 to get to a tty command line, then login and use commands

and then navigate to the folder where your NVIDIA.run is sitting and use the command you did before to execute it.

Читайте также:  Как загрузить проводник windows

Now you should be able to start the new xsession with

Источник

Установка драйвера Nvidia

Всем привет. Столкнулся с проблемой установки данного драйвера. Пытаюсь установить модуль apt-get install -t sid nvidia-kernel-source и не получается, пишет:

Пытаюсь установить драйвер с помощью module-assistant auto-install nvidia-kernel-source, пишет вот такую проблему:

Перерыл кучу инфы в гуугле, так и не нашел ответа. Вот что статистика видео показывает:

А при установки sudo sh ./NVIDIA-Linux-x86_64-295.20.run -a пишет вот такое:

Установка репозитория для драйвера nVidia в Kali linux
Всем привет. Сейчас поставил на виртуалку Kali linux и хочу поставить драйвер nvidia. Все.

Неудачная установка драйверов на nvidia
Снова я 🙂 Стоит debian 6 squeez. Устанавливал драйвера вот так.

Установка драйвера видеокарты
Несколько раз устанавливал драйвер командой sh amd-driver-installer-8.982-x86.x86_64.run было все.

OS Tails установка wifi драйвера
Салют, господа! Часто слышал про анонимную систему на основе debian — Tails. Стало любопытно.

А при установки sudo sh ./NVIDIA-Linux-x86_64-295.20.run -a пишет вот такое:

Подсказываю что делать :

1. Не ставьте драйвера NVIDIA ни из каких репозитариев никаких дистрибутивов!
Дистрибьюторы не имеют доступа ни к чему иному, кроме бинарных драйверов NVIDIA, вот тех .run (NVIDIA никому не даёт спецификаций), который и вы видели + они только запаковывают это в пакеты (и делают это временами «с фокусами»).

2. найдите на сайте NVIDIA самый свежий драйвер под вашу плату.

3. пишет он правильно: у вас запущена графика (X11), а вам нужно установить драйвер из текстовой консоли.
— для этого в меню GRUB нужно зайти в режим редактирования (‘e’) и в строчку начинающуюся с kernel . — дописать в конце через пробел 3 + идти в загрузкку (‘b’)
— как вариант, можете попробовать в терминале от root сказать: # init 3 . (если настройки системы позволят).

Источник

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.

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:

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

I’m pretty sure that stops the whole X session

Less cleanly, you could just kill them:

But they might respawn.

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:

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.
Читайте также:  Two monitors in linux

From my experience I would try this:

  • Alt+F1 then login, sudo telinit 3 (if that isn’t work try /sbin/telinit 3 ), and check that it is changed to level 3 with runlevel that should output something like 5 3 which means that the current run level is 3 and before it was 5 .

In case that doesn’t work, do:

  • ps ax | grep X , and in the output you would see the PID number of the process X , so you should kill it with sudo kill -9 number where number is the PID number of the process.

If you are using Linux Mint, use sudo service mdm stop

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:

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.

Источник

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