This guide is for LMDE 2 64 bit cinnamon / mate.
_________________________________________________________________________________
Disclaimer: Though this method works, there is still some work in progress, this means:
This does not work for Optimus
As a note i still want to add a caution/disclaimer to this tutorial that using the official way, this:
https://wiki.debian.org/NvidiaGraphicsDrivers
or
Install nvidia driver from the default Linux Mint / Debian repositories, like so:
Code: Select all
sudo apt install nvidia-driver nvidia-xconfig
sudo nvidia-xconfig
sudo reboot
This is still the recommended way of doing things.
My approach should only be used if you really really need the latest driver for decent frame rates, your applications and graphics card.
As it stands now, the official method is a way easier install than my approach is, yet i do get better results doing it the way i do. (with playing windows based 32 bit games)
__________________________________________________________________________________________________
Tutorial Nvidia install, the non-official way....
So, here is the correct order of things for people that need to install the latest driver for what ever reason for their LMDE 2 64 bit system and Nvidia Graphics Card:
Before installing the nvidia driver, you will first want to add a i386 architecture (if you are using the 64 bit version of LMDE 2) If you plan on playing games through wine / playonlinux you' ll also want to install wine32 and probably version 1.7.x and up before installing playonlinux from the software center.
(playonlinux will throw "wine seems to have crashed" error (on 64 bit LMDE2) if you do not set multi-arch i386 first and have not installed wine32 without telling you it is actually missing 32 bit libraries)
If you do not intend to use your LMDE 2 64 bit install for 32 bit applications or games you can actually skip the part about installing Wine / PlayonLinux / Multi-arch. If you do not plan on gaming but are going to use 32 bit applications than at least setup Multi-arch (sudo –add-architecture i386)
Setting up multi-arch (You need to do this if you are planning to use 32 bit applications / games)
Code: Select all
sudo dpkg --add-architecture i386
sudo apt update
sudo apt upgrade
It seems it is best to install wine before installing Playonlinux.
Another thing to note is that you might want a later version of wine than version 1.7.29-4 . For the latest wine versions you will have to install from the jessie backports repository as well.
You can do this like this:
1) add the following repository to your sources.list
Code: Select all
deb http://httpredir.debian.org/debian jessie-backports main
Manually:
Code: Select all
sudo nano /etc/apt/sources.list
Code: Select all
deb http://httpredir.debian.org/debian jessie-backports main
2)
Code: Select all
sudo apt update
Code: Select all
sudo apt install wine wine32
Code: Select all
sudo apt install libasound2-plugins:i386 glibc-doc:i386 locales:i386 gnutls-bin:i386 libvisual-0.4-plugins:i386 gstreamer0.10-tools:i386 gstreamer0.10-plugins-base:i386 libportaudio2:i386 ttf-mscorefonts-installer libc6-i686:i386 libtxc-dxtn-s2tc0:i386 libgpm2:i386 libsasl2-modules:i386 libxcursor1:i386 glibc-doc-reference rng-tools:i386 opus-tools:i386 speex:i386 va-driver-all:i386 gvfs:i386 gpm:i386 libsasl2-modules-otp:i386 libsasl2-modules-ldap:i386 libsasl2-modules-sql:i386 libsasl2-modules-gssapi-mit:i386 libsasl2-modules-gssapi-heimdal:i386 libbluray-bdj:i386 libaacs0:i386
Code: Select all
sudo apt install wine-development wine32-development wine32-development-preloader:i386 libwine-gecko-2.24:i386
The suggested and recommended packages are optional.
Code: Select all
sudo apt install \
wine-development/jessie-backports \
wine32-development/jessie-backports \
wine64-development/jessie-backports \
libwine-development/jessie-backports \
libwine-development:i386/jessie-backports \
fonts-wine-development/jessie-backports
After this you can install playonlinux from software manager and have no "wine seems to have crashed" messages when trying to install a 32bit windows application/game.
_____________________________________________________________________________________________________________
If you are NOT looking to use 32bit applications / games on LMDE2 64 bit, through wine or not, you can skip the above and start using the tutorial to install your driver here
_____________________________________________________________________________________________________________
1) Now, download the driver from the nvidia website (remember downloaded file location (NVIDIA-Linux-86_64-340.93.run for example, put your version here))
(usually you should use repositories only though! Only do this if you really want / need the latest driver for your card)
2) Change the " blacklist" file to contain "blacklist nouveau"
Code: Select all
sudo nano /etc/modprobe.d/fbdev-blacklist.conf
Code: Select all
blacklist nouveau
Code: Select all
sudo update-initramfs -u
Now your system boots into LMDE 2 and might say it is running in software rendering mode. (In Cinnamon it does, in Mate it does not)
If you are using a later than 340.96 nvidia driver, chances are the vdpau-driver is not included in your installation package.
(the 340.96 installer package still has the vdpau-driver) In this case you must install this from current repositories, like so:
Code: Select all
sudo apt install nvidia-vdpau-driver nvidia-vdpau-driver:i386
Code: Select all
sudo /etc/init.d/mdm stop
Code: Select all
su root
sh NVIDIA-Linux-x86_64-340.93.run
7) Say "yes" to everything
If you did NOT set up your LMDE 64 bit system to be able to play 32 bit windows games or install 32 bit windows applications using playonlinux / wine or used multi-arch i386, you will get a warning that a expected 32 bit compatibility library could not be found. (you can just choose "install anyway" and it will work just fine)
People who DO want to use 32 bit windows applications and games through playonlinux/wine must have followed the first section of this tutorial before starting the driver installation or at least have set multi-arch i386 on their LMDE2-64bit system. The driver will find the expected library path and will not come up with a warning.
The end of the installer will ask to change the xorg.conf for you. Now you can choose "Yes".
9) Reboot system.
If for some reason X won't start, log in and remove the xorg.conf file, like this:
Code: Select all
sudo rm /etc/X11/xorg.conf
Code: Select all
sudo mkdir /etc/X11/xorg.conf.d
su root
echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf
Reboot and enjoy
Hope this helps someone out!
Jennifer