How to correctly install nvidia.

Write tutorials here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this
d4rk50ld13r
Level 1
Level 1
Posts: 16
Joined: Sun Apr 12, 2015 2:13 pm

How to correctly install nvidia.

Postby d4rk50ld13r » Sun Apr 12, 2015 2:36 pm

Hi

This is how you install nvidia drivers on LMDE2.

# aptitude update
# aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms
# mkdir /etc/X11/xorg.conf.d
# echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf
# reboot

*** Worked on : Nvidia Quadro 1600M

REF : https://wiki.debian.org/NvidiaGraphicsD ... ion_340.65

Rüssel
Level 1
Level 1
Posts: 20
Joined: Sun May 20, 2012 1:50 pm

Re: How to correctly install nvidia.

Postby Rüssel » Wed Jul 29, 2015 1:52 am

Here is what I did to install nVidia proprietary driver in LMDE 2 Betsy:

1. download latest driver from nvidia web site. In my case the file was called "NVIDIA-Linux-x86_64-352.21.run"
2. open terminal, write "sudo /etc/init.d/mdm stop" to stop the GUI
3. type "cd /home/YourUserName/Downloads" into CLI
4. execute "sudo sh NVIDIA-Linux-x86_64-352.21.run" (if the file name of your download is different you need to adapt to that)
5. answer "Yes" to any question the installer will ask now
6. when finished reboot machine with "sudo reboot"
Linux Mint Donor #2676

User avatar
Alley Cat
Level 2
Level 2
Posts: 64
Joined: Fri May 08, 2015 11:38 pm
Location: Gilbert, AZ

Re: How to correctly install nvidia.

Postby Alley Cat » Wed Jul 29, 2015 3:06 am

I followed this post and took the advice of the first comment, avoiding nvidia-xconfig:

http://community.linuxmint.com/tutorial/view/331
Image

TomRoche
Level 4
Level 4
Posts: 243
Joined: Thu Jan 13, 2011 2:52 pm

easier way to install NVIDIA drivers

Postby TomRoche » Sat Sep 12, 2015 4:53 pm

Why not use sgfxi? Works great for me.

User avatar
Flemur
Level 13
Level 13
Posts: 4666
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to correctly install nvidia.

Postby Flemur » Sat Sep 12, 2015 5:07 pm

Why not use sgfxi? Works great for me.

I'd be reluctant to use software associated with such a poor website; one can read several pages of stuff like this
Sgfxi is a fairly simple script to run if you use a default, standard system, but sometimes people have special configurations or setups that might trigger a problem.

without them saying what sgfxi is or does. Amazing.

FWIW, I installed nvidia drivers the easy way:

Code: Select all

gksudo driver-manager

select "recommended".
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

kevinthefixer
Level 4
Level 4
Posts: 242
Joined: Thu Jul 23, 2015 10:36 pm

Re: How to correctly install nvidia.

Postby kevinthefixer » Sat Sep 12, 2015 6:45 pm

Flemur wrote:
Why not use sgfxi? Works great for me.

I'd be reluctant to use software associated with such a poor website; one can read several pages of stuff like this
Sgfxi is a fairly simple script to run if you use a default, standard system, but sometimes people have special configurations or setups that might trigger a problem.

without them saying what sgfxi is or does. Amazing.

FWIW, I installed nvidia drivers the easy way:

Code: Select all

gksudo driver-manager

select "recommended".

Are you sure you did this on LMDE2 "Betsy"? The command does nothing on my Mate system, and no package called "driver-manager" is listed in Software Manager, either as installed or in the repos.

kevinthefixer
Level 4
Level 4
Posts: 242
Joined: Thu Jul 23, 2015 10:36 pm

Re: How to correctly install nvidia.

Postby kevinthefixer » Sun Sep 13, 2015 11:25 am

OK, I give up! I gotta holler for help here.

None of the above methods worked for me. The only one that would actually do anything was sgfxi; it did finally install the driver--which gave me a screen displaced 100 or 150 pixels to the right. Unfortunately, the position correction built into my old Dell monitor wasn't even half enough to fix it. I attempted to install nvidia-settings, and got a message that the installed driver was incompatible with the Debian packages, I would have to uninstall it first--but the uninstaller wouldn't work either! I ran sudo nvidia-installer --uninstall manually, which finally removed the Nvidia package. Unfortunately it left Nouveau disabled, and I haven't been able to repair that. I found the blacklist file (forget where now, I was tired last night) and removed nouveau from it (the only line there), and changed /etc/x11/xorg.conf so it read "nouveau" instead of "vesa" in the "Device" section. That simply breaks X. So I can only boot into X with Vesa at a max 1024X768 resolution. Not good enough! Unless some guru can bail me out here, I'll have to re-install from scratch. And then stay away from trying to fix a perfectly good system in the future!

GeneBenson
Level 4
Level 4
Posts: 341
Joined: Fri Sep 17, 2010 9:55 pm

Re: How to correctly install nvidia.

Postby GeneBenson » Mon Sep 14, 2015 3:35 am

Hi kevinthefixer,

The first time you install the Nvidia drivers using sgfxi you need to:
1. Run sgfxi and install the drives
2. Reboot
3. Run sgfxi again and reinstall the drivers
4. Start the desktop from sgfxi

This is the only time you need to install twice.
Also, no need to install nvidia-settings separately. It gets installed when you use sgfxi.

Hope this helps. :D

kevinthefixer
Level 4
Level 4
Posts: 242
Joined: Thu Jul 23, 2015 10:36 pm

Re: How to correctly install nvidia.

Postby kevinthefixer » Mon Sep 14, 2015 9:12 am

Yes, that's what the sgfxi "wizard" said, so that's what I did. It didn't install nvidia-settings, and as I say the screen position was way off. I went ahead and reinstalled LMDE2, so I'm back to nouveau, which of course was working fine anyway. Thanks for trying, but I think I'll do any future experimenting on something that isn't my daily driver! Dumb thing to do anyway.

TE901
Level 1
Level 1
Posts: 1
Joined: Thu Nov 26, 2015 1:12 am

Re: How to correctly install nvidia.

Postby TE901 » Thu Nov 26, 2015 4:01 am

I booted from live dvd on AMD A6 motherboard with GFX750. All good. Installed to 120Gig SSD from live boot menu and rebooted from SSD. Uh oh, system unusable--fonts mangled beyond recognition.

Solution (for me) :-
Live boot from DVD. Mount SSD at /mnt in live boot filesystem
Download nvidia driver install file from nvidia.com
Copy driver installer from virtual file system download directory to download directory on mounted SSD,
"sudo chroot /mnt" to work on SSD file system, and then from within chroot session :-
Edit /etc/Default/grub with nano to replace line "GRUB_CMDLINE_LINUX_DEFAULT=" quiet splash"" with
"GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 quiet splash""
"update-grub" to rebuild Grub configuration file.
cd to /home/<NAME>/Downloads and set permissions on driver installer to 4755.
Run the installer from the chroot root prompt. Agree to the license terms and follow the prompts. Driver installed and configured!.
Close chroot session and reboot into SSD.
Enjoy the beautiful clear graphics
Hope that this helps others with AMD motherboards and nvidia graphics.


Return to “Tutorials”