LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2018, 03:45 PM   #1
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Rep: Reputation: Disabled
NVIDIA Driver on Ubuntu 12.04


Hello,

I have a question about following guide explaining how to install NVIDIA driver on Ubuntu 12.04: http://www.beginninglinux.com/home/g...n-ubuntu-12-04

I learned that while installing a new graphic driver the x server isn't allowed to work, so by the commands
$ sudo service lightgm stop
$ sudo init 3

one stops the x server and therefore the gui application and are working from there only in text mode.

My question is following: In the first command the old graphic driver is removed by


$ sudo apt-get auroremove --purge nvidia-*

after done this, temporary the os hasn't any working graphics driver, so why the display manager and the X serven can run?

Only later, before installing the new graphics driver, the display manager get killed by

$ sudo service lightgm stop
$ sudo init 3

I want to know why removing the old graphic driver by


$ sudo apt-get auroremove --purge nvidia-*

make sense while os running in runlevel 5, so while the X server works.

Last edited by HansWolf; 03-01-2018 at 03:49 PM.
 
Old 03-01-2018, 03:54 PM   #2
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Welcome to the forums HansWolf!

Ubuntu 12.04 was the April 2012 version. It is "end of life" and totally unsupported. I recommend you try either the current Ubuntu 17.10 or the long-term support 16.04 release.

Once you have replaced Ubuntu 12.04 with a supported release, you can follow these instructions if you want to install the Nvidia drivers (but you might not need to; it might just magically work fine for your needs with the open source Nouveau drivers): https://help.ubuntu.com/community/Bi...erHowto/Nvidia
 
Old 03-01-2018, 03:57 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,267

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
Quote:
why the display manager and the X serven can run?
Probably with the default free Nvidia driver(s) : nouveau_dri.so, nouveau.ko
 
Old 03-01-2018, 04:01 PM   #4
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi snowpine,
thank you for the answer. But my problem is of more banal, general nature. I wanted to know how it generally possible to run the display manager and the X server (and other GUI applications) when one hasn't any working graphics driver? Here the old one is purged.

Last edited by HansWolf; 03-01-2018 at 04:02 PM.
 
Old 03-01-2018, 04:11 PM   #5
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello knudfl,

so after purging the old one it's switches automatically to the default os driver, right?

But in this case I ask myself why it's necessary to stop the x server resp. change runlevel before install the the new driver? Or what whould not work if one would don't do it?

Last edited by HansWolf; 03-01-2018 at 04:28 PM.
 
Old 03-01-2018, 06:15 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,267

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
Re #5.

X cannot be running when manually installing the Nvidia drivers nvidia-**.ko, nvidia_drv.so etc.
 
Old 03-02-2018, 08:55 AM   #7
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by HansWolf View Post
Hi snowpine,
thank you for the answer. But my problem is of more banal, general nature. I wanted to know how it generally possible to run the display manager and the X server (and other GUI applications) when one hasn't any working graphics driver? Here the old one is purged.
Are you referring to the official 2018 instructions from help.ubuntu.com or to some unofficial 2012 instructions from a random dude's blog? The official 2018 instructions from help.ubuntu.com do not recommend or require you to "purge" anything. Follow unofficial/outdated instructions at your own risk!

To answer your broader question, the way that 'apt-get' works is that when you remove a package, it doesn't kill the currently-running instance of that software. For example if I were to remove Firefox right now, I could still finish typing this message to you. (But once I quit Firefox, I won't be able to re-launch it.)

Last edited by snowday; 03-02-2018 at 09:42 AM.
 
1 members found this post helpful.
Old 03-02-2018, 09:08 AM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Not reboot, it will be gone when you terminate it. Deleted files will be deleted permanently when nothing is using them.
 
1 members found this post helpful.
Old 03-02-2018, 10:02 AM   #9
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
To answer your broader question, the way that 'apt-get' works is that when you remove a package, it doesn't kill the currently-running instance of that software. For example if I were to remove Firefox right now, I could still finish typing this message to you. (But once I quit Firefox, I won't be able to re-launch it.)
But if I restart after purging the old driver without installing to new one, how the x-server will run?
Does then the os start automatically in lower runlevel (so without graphic manager) or does it automatically switching to the given default drivers like nouveau_dri.so, nouveau.ko which are given with the distribution if I understood knudfl's explanation correctly?
 
Old 03-02-2018, 10:15 AM   #10
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
There are fallback drivers, VESA and fbdev, these will work virtually with any VGA compatible video card. Hardware acceleration won't be available and resolution may be limited.
 
1 members found this post helpful.
Old 03-02-2018, 10:28 AM   #11
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by HansWolf View Post
But if I restart after purging the old driver without installing to new one, how the x-server will run?
I'm not sure I understand your question. Installing the new driver is the very first step of the tutorial, and purging the old driver is not recommended.
 
1 members found this post helpful.
Old 03-02-2018, 06:04 PM   #12
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
I'm not sure I understand your question. Installing the new driver is the very first step of the tutorial, and purging the old driver is not recommended.
I refering to following part of the refered guide above : Before installing to new driver there is ordered to purge to old one by the command:

$ sudo apt-get auroremove --purge nvidia-*

The point is that I'm curious how the x server will run after making this command and restarting again. As you explained in your previous post the driver will not be killed instantly after "be purged" but for example after beeing closed or restarting. So my question is what will happen with x server after restart. Will the os switching automatically to lower runlevel or will it run the x server with an defalult driver as knudfl has explained?
 
Old 03-02-2018, 06:24 PM   #13
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
You decided to ignore my answer. What's the point asking the same question again?
 
Old 03-02-2018, 06:36 PM   #14
HansWolf
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
You decided to ignore my answer. What's the point asking the same question again?

Excuse me. If I understand you explanation correctly then after purging the old driver and restarting the os uses these "fallback drivers" like VESA and fbdev to run the x server by default?
 
Old 03-03-2018, 10:06 AM   #15
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by HansWolf View Post
I refering to following part of the refered guide above : Before installing to new driver there is ordered to purge to old one by the command:

$ sudo apt-get auroremove --purge nvidia-*

The point is that I'm curious how the x server will run after making this command and restarting again. As you explained in your previous post the driver will not be killed instantly after "be purged" but for example after beeing closed or restarting. So my question is what will happen with x server after restart. Will the os switching automatically to lower runlevel or will it run the x server with an defalult driver as knudfl has explained?
You are following the wrong how-to. Please refer to the guide I linked to in my post #2. If you want to follow the obsolete 2012 tutorial to "see what happens" then do so at your own risk. My educated guess is that you might experience lower resolution and lack of 3D acceleration due to generic/fallback drivers, or perhaps worst-case, Linux will boot to text mode.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NVidia Driver Issues on Ubuntu Skatman88 Linux - Laptop and Netbook 2 09-29-2015 03:28 PM
NVIDIA Video Driver | Ubuntu 11.10 Kronus980 Linux - Software 1 02-03-2012 11:52 AM
Installing NVIDIA driver on UBUNTU dblkickflip720 Linux - Desktop 5 11-26-2011 03:30 AM
Ubuntu 8.10 + nvidia driver = no audio htpc_fail Linux - Software 4 02-09-2009 09:16 PM
Nvidia Driver Confusion (Ubuntu) champman99 Linux - Newbie 2 01-05-2007 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration