LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2011, 02:54 AM   #1
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Rep: Reputation: 45
Question how to stop the xorg X server while in terminal console, what command ?


I have the Ubuntu 11.10 with a nvidia driver issue, and so to put in the newer nvidia driver by direct manual method, it says to exit the X server before I run the downloaded file from the nvidia web site. Please tell me the correct command to use to terminate or exit out of the X server when in run level 3 text mode console. Also it must be mounted read write, not read only
 
Old 12-12-2011, 03:56 AM   #2
Poenikatu
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
Smile

Quote:
Originally Posted by james2b View Post
I have the Ubuntu 11.10 with a nvidia driver issue, and so to put in the newer nvidia driver by direct manual method, it says to exit the X server before I run the downloaded file from the nvidia web site. Please tell me the correct command to use to terminate or exit out of the X server when in run level 3 text mode console. Also it must be mounted read write, not read only
Try issuing "ps ax|less" and get the process ID for
X. Then issue the command "kill process-ID".
 
Old 12-12-2011, 04:01 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
There are commands to exit windows manager gracefully, eg for Xfce:
Code:
xfce4-session-logout --display :0.0
 
Old 12-12-2011, 12:53 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
At first, The default Ubuntu runlevel is 2, not 3, and switching to any other runlevel (except of course 0,1 and 6) will do exactly nothing, all the runlevels from 2-5 are the same.
To exit from X you have to stop the display manager (I think it is LightDM in 11.10), so the command would be something like
Code:
sudo service lightdm stop
 
Old 12-12-2011, 06:54 PM   #5
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Thumbs up

Okay thanks for that, and I did just edit the kernel boot options while at the grub boot loader to boot into text mode, that may be run level 3? Used; nosplash --verbose text, and removed the other default options at the end of that main line for the kernel while in grub.
 
Old 12-12-2011, 07:29 PM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Usually you set default runlevel number in /etc/inittab
The grub boot option is just for seeing text while booting instead of graphics I suppose
 
Old 12-12-2011, 10:52 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
As I already have stated above, runlevels 2-5 are the same on Ubuntu. If you want to boot into text mode you either have to boot into runlevel 1 (single user mode) or you have to change the startup services for one of the other runlevels and boot into that. I don't know how to do that with Ubuntu's upstart system, but I think Google can help here.
 
Old 12-14-2011, 02:57 PM   #8
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Thumbs up

I did finally have it booted with X server not running and not read only file system. Then the nvidia driver 290.10 went through the install process partially but failed to complete due to the kernel module for nvidia not compiled since the needed kernel source and headers files are not in my system. So I just re-installed the older nvidia-173 version which does function fine, thanks for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a way to stop command output to continue scrolling down the terminal uriha Linux - General 4 01-06-2011 02:38 AM
[SOLVED] Can't stop X server and run Xorg -configure - Fedora 14 madsovenielsen Linux - Desktop 5 11-14-2010 03:55 PM
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
How to stop the cd command from changing the terminal title? Agrouf Linux - General 8 07-15-2008 05:05 AM
How to stop a command or start over, in a terminal royeo Linux - Newbie 6 08-12-2006 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration