{"id":304,"date":"2019-11-07T23:03:26","date_gmt":"2019-11-07T23:03:26","guid":{"rendered":"http:\/\/blog.davcloud.top\/?p=304"},"modified":"2020-01-30T15:37:57","modified_gmt":"2020-01-30T15:37:57","slug":"install-nvidia-driver-on-ubuntu-16-04-6","status":"publish","type":"post","link":"https:\/\/blog.davcloud.top\/?p=304","title":{"rendered":"Install Nvidia driver on Ubuntu 16.04"},"content":{"rendered":"\n<h2>Abstract<\/h2>\n\n\n\n<p>This article aims at introducing how to install Nvidia Graphics driver on Ubuntu 16.04.6. In this article, we will use the NVIDIA Graphics Card GeForce 2060 Super as example.<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-green-cyan-color\">Note: Though this is for Ubuntu 16.04.6, it may still adapt to the similar version like Ubuntu 18.04.<\/p>\n\n\n\n<h2>Requirement<\/h2>\n\n\n\n<ol><li>Ubuntu 16.04.6 x64<\/li><li>Nvidia drivers for the Graphics Card.<\/li><\/ol>\n\n\n\n<h2>Step 1. Disable default driver Nouveau<\/h2>\n\n\n\n<p>For Nvidia Graphics Card, ubuntu uses Nouveau driver as default. To use Nvidia offical driver instead, we need to disable Nouveau driver first.<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\">Attention: This step is very important, please make sure the Nouveau banned successfully, or it may fail to log in the graphics interface after installing Nvidia driver!!!<\/p>\n\n\n\n<h3>Edit profile<\/h3>\n\n\n\n<p>Create a new blacklist file for Nouveau driver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/modprobe.d\/blacklist-nouveau.conf<\/code><\/pre>\n\n\n\n<p>Add following contents:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>blacklist nouveau\noptions nouveau modeset=0<\/code><\/pre>\n\n\n\n<h3>Update kernal initramfs<\/h3>\n\n\n\n<p>Save the file, then regenerate the kernal initramfs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-initramfs -u<\/code><\/pre>\n\n\n\n<h3>Reboot device<\/h3>\n\n\n\n<h3>Check the disable<\/h3>\n\n\n\n<p>Run the command in terminal, if it return nothing, the Nouveau driver has been disabled successfully:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lsmod | grep nouveau<\/code><\/pre>\n\n\n\n<h2>Step 2. Download Nvidia offical driver<\/h2>\n\n\n\n<p>Download driver for the Nvidia card, in this example, we download from  <a href=\"https:\/\/www.nvidia.com\/Download\/index.aspx\">https:\/\/www.nvidia.com\/Download\/index.aspx<\/a> with following settings:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"891\" height=\"287\" src=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-4.png\" alt=\"\" class=\"wp-image-317\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-4.png 891w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-4-300x97.png 300w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-4-768x247.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure><\/div>\n\n\n\n<p>The driver is a runfile package, and we assume it has been put in the path ~\/downloads\/<\/p>\n\n\n\n<h2>Step 3. Start install the driver<\/h2>\n\n\n\n<p>Disable lightdm service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service lightdm stop<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-amber-color\">Note: If the graphics service is not lightdm but other instead(Ubuntu 18.04 use gdm is default), then use the match graphics instead of lightdm in the command.<\/p>\n\n\n\n<p>Press Ctrl+Alt+F1 to tty mode, and login to your account.<\/p>\n\n\n\n<p>Grant executable permissions for the install driver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x ~\/downloads\/NVIDIA-Linux-x86_64-440.31.run<\/code><\/pre>\n\n\n\n<p>Run the install pakage:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/downloads\/\nsudo .\/NVIDIA-Linux-x86_64-440.31.run<\/code><\/pre>\n\n\n\n<p>If  installed on x64 system, it will notice that 32-bit library cannot be installed. Just ignore it and press ok to continue.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"90\" src=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125922-1024x90.jpg\" alt=\"\" class=\"wp-image-325\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125922-1024x90.jpg 1024w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125922-300x26.jpg 300w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125922-768x67.jpg 768w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125922.jpg 1685w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>When it ask whether to run nvidia-xconfig utility, choose yes and continue.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"87\" src=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125933-1024x87.jpg\" alt=\"\" class=\"wp-image-326\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125933-1024x87.jpg 1024w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125933-300x26.jpg 300w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125933-768x66.jpg 768w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/IMG_20191107_125933.jpg 1709w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>When the installation finished, reboot device.<\/p>\n\n\n\n<p>If the nvidia-settings can run and model of nvidia card been displayed, the driver installed successfully.<\/p>\n\n\n\n<p>You can also run command below to check whether installed successfully or not:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nvidia-smi<\/code><\/pre>\n\n\n\n<p>If success, it will return the usage and model information of the Nvidia card.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract This article aims at introducing how to install Nvidia Graphics driver on Ubuntu 16.04.6. In this article, we will use the NVIDIA Graphics Card GeForce 2060 Super as example. Note: Though this is for Ubuntu 16.04.6, it may still adapt to the similar version like Ubuntu 18.04. Requirement Ubuntu 16.04.6 x64 Nvidia drivers for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[112,25],"_links":{"self":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/304"}],"collection":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":27,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}