{"id":19856,"date":"2023-07-19T06:15:37","date_gmt":"2023-07-19T06:15:37","guid":{"rendered":"https:\/\/linuxways.net\/?p=19856"},"modified":"2023-07-19T06:15:37","modified_gmt":"2023-07-19T06:15:37","slug":"how-to-install-nvidia-drivers-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-nvidia-drivers-on-debian-12\/","title":{"rendered":"How to Install Nvidia Drivers on Debian 12"},"content":{"rendered":"<p>GPUs with Nvidia have a huge ability to work for us on a huge number of things. We can do gaming, rendering, graphic designing, Crypto mining, and many other resource-intensive tasks.<\/p>\n<p>In case you have a system with an Nvidia graphic card, you should install its drivers as well. In this article, we will discuss how we can install Nvidia Drivers in Debian 12.<\/p>\n<h2><strong>Step 1: Update the system<\/strong><\/h2>\n<p>We need to make sure that all the packages are updated in our system.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> upgrade<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"951\" height=\"617\" class=\"wp-image-19857\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-1.png 951w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-1-300x195.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-1-768x498.png 768w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/p>\n<h2><strong>Step 2: Install non-free repositories<\/strong><\/h2>\n<p>Sometimes Nvidia drivers will not be available in the free repositories. For that, we have to install non-free repositories.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt-add-repository non-free<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"569\" class=\"wp-image-19858\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-2.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-2-300x222.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/strong><\/p>\n<h2><strong>Step 3: Installing Nvidia Drivers<\/strong><\/h2>\n<p>Now let\u2019s install the Nvidia drivers with the command as follow.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> nvidia-driver<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"568\" class=\"wp-image-19859\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-3.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-3-300x218.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-3-768x559.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<h2><strong>Step 4: Reboot Debian 12<\/strong><\/h2>\n<p>After we are done with the installation of Nvidia, we need to reboot our Debian 12.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> reboot<\/div><\/div>\n<h2><strong>Launch Nvidia 12<\/strong><\/h2>\n<p>Search for Nvidia in your Debian 12 and we will be able to see it installed in our system. We will enter and launch it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1287\" height=\"793\" class=\"wp-image-19860\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-4.png 1287w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-4-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-4-1024x631.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-4-768x473.png 768w\" sizes=\"auto, (max-width: 1287px) 100vw, 1287px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"485\" class=\"wp-image-19861\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-5.png 835w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-5-300x174.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-5-768x446.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>We are ready to use it.<\/p>\n<h3><strong>Tips and Tricks<\/strong><\/h3>\n<p>There are chances that the default drivers of your system might interfere with the Nvidia drivers. So let&#8217;s disable them.<\/p>\n<p>The Nouveau drivers come by default in Debian 12. So let\u2019s disable them as well. We can do that by the command as follow:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">$ <span class=\"kw3\">echo<\/span> <span class=\"st0\">&quot;blacklist nouveau&quot;<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>modprobe.d<span class=\"sy0\">\/<\/span>blacklist-nouveau.conf<br \/>\n<span class=\"kw3\">echo<\/span> <span class=\"st0\">&quot;options nouveau modeset=0&quot;<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"re5\">-a<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>modprobe.d<span class=\"sy0\">\/<\/span>blacklist-nouveau.conf<br \/>\n<span class=\"kw2\">sudo<\/span> update-initramfs <span class=\"re5\">-u<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"562\" class=\"wp-image-19862\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-6.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19856-6-300x219.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<p>Now, we need to reboot the system and then try to install the Nvidia drivers by the above-mentioned command.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Nvidia is one powerful graphic device that can help you perform high-resource needed tasks. Bu the help of the guide given in this article, you will be able to install it in your Debian 12 easily. It is always recommended to update the Nvidia drivers for better performance and results.<\/p>","protected":false},"excerpt":{"rendered":"<p>Nvidia graphic cards are devices that allow users to perform intensive task easily. Nowadays people use it for gaming and entertainment<\/p>","protected":false},"author":110,"featured_media":19863,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-19856","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=19856"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19856\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/19863"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=19856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=19856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=19856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}