Linux остановить x server linux mint

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

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.

Читайте также:  Linux list all dev

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:

List all your runing services with:

Источник

Перезапуск, остановка и запуск X-сервера

Будьте внимательны! При перезапуске X-сервера все открытые приложения будут немедленно закрыты и все несохранённые данные будут утеряны.

Во многих руководствах для перезапуска X-сервера предлагается нажать Ctrl + Alt + Backspace . Однако, начиная с Ubuntu 9.04, в связи с туманной возможностью случайного нажатия, эта комбинация по умолчанию отключена. Однако её очень просто вернуть обратно.

Ubuntu 8.10 и более старые

Для перезапуска X-сервера в версиях Ubuntu до 9.04 достаточно в любой момент нажать Ctrl + Alt + Backspace .

Ubuntu 9.04 «Jaunty Jackalope»

Достаточно установить пакет dontzap через Synaptic или командой:

sudo aptitude install dontzap

Затем выполнить в терминале команду:

Можно включить сочетание клавиш и без доп. пакета dontzap , для этого надо вручную отредактировать xorg.conf , см. ниже секцию про Ubuntu 9.10.

Читайте также:  Linux системы для разработки

Ubuntu 9.10 и более новые

Для того, чтобы включить возможность перезапуска X-сервера сочетанием клавиш в «Karmic Koala» нужно зайти в программу располагающуюся в меню «Система→Параметры→Клавиатура», там перейти на вкладку «Раскладки», нажать на кнопку «Параметры раскладки», найти пункт «Последовательность клавиш для перезагрузки Х-сервера» и поставить галочку в поле «Control + Alt + Backspace».

Найдите пункт «Комбинация клавишь для прерывания работы X-сервера» и установите галочку «Control + Alt + Backspace».

Кроме того, можно включить возможность перезапуска через терминал командой:

setxkbmap -option terminate:ctrl_alt_bksp

Однако действие этой команды сохраняется только до перезагрузки. Для постоянного действия просто добавьте эту команду в ваш файл ~/.xinitrc .

Также можно просто исправить файл xorg.conf , добавив в него секцию:

Section "ServerFlags" Option "DontZap" "false" EndSection

Неправильное редактирование системных файлов xorg.conf и ~/.xinitrc может привести к очень неприятным последствиям, так что не стоит изменять эти файлы, если вы чётко не понимаете, что делаете.

Альтернативные варианты остановки X-сервера: alt+SysRq+k (тоже самое,что kill) или alt+SysRq+R,E,I — после чего можно перейти в консоль по alt+Fx и остановить или перезагрузить X-сервер.

Включение, выключение и перезапуск графической подсистемы вручную

Для остановки X-сервера зайдите в текстовую консоль (нажав Ctrl + Alt + F1 ), войдите в ней под своим именем и выполните:

sudo /etc/init.d/lightdm stop

Для перезапуска X-сервера необходимо вместо stop указать restart :

sudo /etc/init.d/lightdm restart

Для запуска графической подсистемы достаточно выполнить:

sudo /etc/init.d/lightdm start

Вместо прямого вызова init-скриптов можно использовать service . Названия процессов и команды будут теми же (вызываются те же скрипты, но более прогрессивным методом). Например:

sudo service lightdm stop sudo service lightdm start

Еще один метод выполнения этих же действий:

sudo stop kdm sudo start kdm sudo restart kdm
  • Сайт
  • Об Ubuntu
  • Скачать Ubuntu
  • Семейство Ubuntu
  • Новости
  • Форум
  • Помощь
  • Правила
  • Документация
  • Пользовательская документация
  • Официальная документация
  • Семейство Ubuntu
  • Материалы для загрузки
  • Совместимость с оборудованием
  • RSS лента
  • Сообщество
  • Наши проекты
  • Местные сообщества
  • Перевод Ubuntu
  • Тестирование
  • RSS лента

© 2018 Ubuntu-ru — Русскоязычное сообщество Ubuntu Linux.
© 2012 Canonical Ltd. Ubuntu и Canonical являются зарегистрированными торговыми знаками Canonical Ltd.

Источник

How to Linux Mint 18 Stop X Server Easy Guide

You are Welcome! This Guide simply shows you Step-by-step How to Stop the X Server in Linux Mint 18.x Sarah/Serena/Sonya/Sylvia Mate/Cinnamon/Xfce/KDE Desktop.

So with this procedure you should be able to Stop Mint 18 X Server and drop a Runlevel 3 Shell.

Step-by-step – Epson Printer Utility Ubuntu 20.04 Installation Guide

Contents

Showing Ads here is the best solution I found for not embarassing somebody about participating in a #%$Foundation^.

«When the Last Tree has been cut down, the Last Fish caught, the Last River poisoned, only then will we realize that One Cannot Eat Money.»

«No usable Computer exists today with completely Open Software and Hardware (as much as some companies want to Market themselves as such).»

Follow Us

The GNU/Linux Free Software Phylosophy

GNU/Linux Logo

Steve Jobs’ Last Words

Steve Jobs Last Words in the Darkness

«Being a Winner in a Free Computing OS Mission means to adopt a Commercial like Strategy. Transcending Duality in Oneness and so dispensing both Free and Non Free Software. Cause evangelizing Freedom in a Non Free World is like keeping a Trojan Horse. Hallelujah!»

«Using the Money just for buying Stuff and Not Supporting the Free Gift Philosophy is a sign of a Selfish and Narrow Mind.»

Читайте также:  Linux configuration gnu error

What can Save the World from a Blind and Quick Self-destruction.
The Immediate and Humble Mass Conversion to the Spiritual Way!
Because Earth & Nature has been Ravaged without Pity by the Wild and Selfish mass Competition to Win and Shown that U’re someone Better because you got a Lot of fla$hY Power$$$.

«Taking care if somebody is liking, following, or buying is just a serious hidrance on the priceless Way of Creative Freedom.»

Credits

Ganesha

Everlasting Glory to God, Jesus Christ, The Holy Spirit, Ganesha, Shiva, Vishnu, Krisna, Laozi, Buddha, Bodhidharma, Ma Gcig, Hakuin, Ikkyu, Nagarjuna, Tilopa, Naropa, Milarepa, Suhrawardi, St Dismas, St Francesco, St Teresa, St John, St Filippo, Eckehart. All The Holy Divinities, Avatars, Saints, Mystics, and True Spiritual Masters. Because they are in the Eternal Light of Truth & Delight Enlightening a World of Darkness, Nescience, Blindness, Uneasiness and Falsehood!

Источник

Linux Mint 20 Stop X Server Guide

You are Welcome! This Guide simply shows you Step-by-step How to Stop the X Server in Linux Mint 20.x Ulyana/Ulyssa/Uma/Una Mate/Cinnamon/Xfce Desktop.

So with this procedure you should be able to Stop Mint 20 X Server and drop a Runlevel 3 Shell.

Linux Mint 20 Stop X Server - Featured

  1. First, Hit. Ctrl+Alt+F1.
  2. Then Login again
    So enter your Username & Pass.

Contents

Showing Ads here is the best solution I found for not embarassing somebody about participating in a #%$Foundation^.

«When the Last Tree has been cut down, the Last Fish caught, the Last River poisoned, only then will we realize that One Cannot Eat Money.»

«No usable Computer exists today with completely Open Software and Hardware (as much as some companies want to Market themselves as such).»

Follow Us

The GNU/Linux Free Software Phylosophy

GNU/Linux Logo

Steve Jobs’ Last Words

Steve Jobs Last Words in the Darkness

«Being a Winner in a Free Computing OS Mission means to adopt a Commercial like Strategy. Transcending Duality in Oneness and so dispensing both Free and Non Free Software. Cause evangelizing Freedom in a Non Free World is like keeping a Trojan Horse. Hallelujah!»

«Using the Money just for buying Stuff and Not Supporting the Free Gift Philosophy is a sign of a Selfish and Narrow Mind.»

What can Save the World from a Blind and Quick Self-destruction.
The Immediate and Humble Mass Conversion to the Spiritual Way!
Because Earth & Nature has been Ravaged without Pity by the Wild and Selfish mass Competition to Win and Shown that U’re someone Better because you got a Lot of fla$hY Power$$$.

«Taking care if somebody is liking, following, or buying is just a serious hidrance on the priceless Way of Creative Freedom.»

Credits

Ganesha

Everlasting Glory to God, Jesus Christ, The Holy Spirit, Ganesha, Shiva, Vishnu, Krisna, Laozi, Buddha, Bodhidharma, Ma Gcig, Hakuin, Ikkyu, Nagarjuna, Tilopa, Naropa, Milarepa, Suhrawardi, St Dismas, St Francesco, St Teresa, St John, St Filippo, Eckehart. All The Holy Divinities, Avatars, Saints, Mystics, and True Spiritual Masters. Because they are in the Eternal Light of Truth & Delight Enlightening a World of Darkness, Nescience, Blindness, Uneasiness and Falsehood!

Источник

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