Установка драйвера nvidia centos 7

Установка драйвера nvidia centos 7

The CentOS 7’s support for Nvidia video graphic cards comes in a form of an open source nouveau driver. In case the nouveau driver is not a sufficient solution, users can install the official Nvidia driver as a proprietary alternative. This step by steps tutorial will guide you through the entire process on Nvidia driver installation.

To install Nvidia driver on other Linux distributions, follow our Nvidia Linux Driver guide.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions

Criteria Requirements
Operating System CentOS 7.5 or higher
Software Existing Desktop installation such as GNOME, KDE etc.
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # — requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ — requires given linux commands to be executed as a regular non-privileged user

How to install the official NVIDIA drivers on CentOS 7 Linux step by step instructions

The installation of Nvidia drivers consits of multile steps. First, we identify the model number of the Nvidia VGA card available, prepare the system by installation of all package prerequisites and download the official Nvidia driver.

The next step will be to disable the default nouveau driver and install the proprietary Nvidia driver. Let’s get started:

by Editor | Published: September 10, 2013 | Last Updated: September 12, 2013

During an interview, in Finland Linus Torvalds the man behind the exceptional idea of Linux and git source code management, gave his ‘Middle Finger Salute‘ to NVIDIA in frustration with the support provided by the company for the Linux platform.

Torvalds is depressed with the fact that NVIDIA is not supporting Linux, enough. It gets even more worse with the truth that NVIDIA is getting hot with every passing day in Android based mobile handset market which literally means that NVIDIA is not supporting Linux.

Install NVIDIA Drivers in Linux

The outburst of anger and frustration was the result of the question asked by a Linux user. The question was ‘Optimus‘ feature of NVIDIA which lets the user to switch On/Off Graphics Processing Unit (GPU) to save power came late for Linux, as compared to other Operating Systems. NVIDIA was very much clear when asked about this, and clearly stated that NVIDIA is not going to support Linux to the point, Windows and Mac would get.

Читайте также:  Стратеджик мьюзик fallout 4

This issue of NVIDIA is not new and the users have been complaining for years regarding this. The Advanced Micro Devices (AMD) has tried to fill this with its own open source driver. NVIDIA refused to release Open Source driver saying that it can not make critical informations publicly available.

On the other hand, the act of Linus Torvalds of showing middle finger on camera was criticized, some said that it does not suit an intellectual like him, other said it was not professional at all, while some said that even Torvalds is a human and it was just an outburst.

Most of the today’s distro comes with an open source NVIDIA alternative called ‘Nouveau‘. Nouveau render graphics perfectly, however it lacks 3D support. Hence to Install Proprietary NVIDIA driver. Nouveau must be stopped from starting automatically, which we will be calling as blacklisting throughout the article.

Installation of NVIDIA Drivers in RHEL/CentOS and Fedora

First, install needed “Development” packages using YUM command as shown.

Before installing NVIDIA drivers, you need to know your driver product type by using following command.

Sample Output

Once you know your driver name, then go to NVIDIA official website and download required drivers for your system. Download drivers using following link.

Disable Nouveau Driver

open “/etc/modprobe.d/blacklist.conf” in your favourite editor and add “blacklist nouveau”, ofcourse without double-quotes.

Next create a new “initramfs” file and taking backup of existing.

Reboot the machine. Login into command mode using Alt+F4 / ALT+F5 as root.

Once you in command line mode, next go to the folder where you’ve downloaded NVIDIA driver and run the script as show. If any dependency, you need to Yum the required packages.

Once installation is complete, generate xorg.conf file using following command.

Читайте также:  Как определить 32 или 64 битная система

Copy xorg.conf.new as /etc/X11/xorg.conf.

Now switch to X Window as root user by typing.

Launch NVIDIA configuration window and set the Resolution, manually, and at last click on ‘Save to X Configuration File‘ and quit. For reference, follow the screen shot added below.

Installation of NVIDIA Drivers Debian/Ubuntu/Linux Mint

First, check the information about your supported Graphics Card by issuing following command.

Sample Output

Next add a repository under “/etc/apt/sources.list” file at the bottom. Save and close it.

Disable Nouveau Driver

Open “/etc/modprobe.d/blacklist.conf” file and add the following line. Save and close the file.

Next, do a system update and then install NVIDIA drivers and required Kernel packages using “apt-get” command.

Stop the X service (gdm3).

Generate new xorg.conf file using following command.

Copy xorg.conf.new as /etc/X11/xorg.conf.

Now switch to X Window as root user by typing.

Open NVIDIA configuration wizard and set the Resolution, manually, and at last click on ‘Save to X Configuration File‘ and quit.

NVIDIA Driver Settings

Congrats! Your installation and configuration of NVIDIA Graphics Driver is complete.

That’s all for now, If you gets stuck at a place during installation and could not fix it yourself, you can always ask for guidance in comment section. Do a favor for us by sharing the article.

In this article, I will show you how to set up new Nvidia Optimus supported graphics card in hybrid graphics configuration on CentOS 7. All the new laptops/notebooks these days use these type of configuration. So it’s very common these days. I used ASUS UX303UB with 2GB Nvidia GeForce 940M and Intel HD Graphics 520 to test everything of this article. Let’s get started.

This article is only for Nvidia Optimus supported graphics card or hybrid graphics configuration. You can check whether your Nvidia graphics card supports Optimus technology or not with the following command:

If you have 2 graphics card listed, as it is in the screen shot, you can follow this article and expect everything to work.

Note: Before proceeding with the installation, turn off Secure Boot from BIOS settings.

Читайте также:  Как отключить boom вконтакте

First, we have to add some package repositories to our CentOS 7 operating system. Run the following commands to add the package repositories:

Add elrepo repository:

Add epel repository:

Add bumblebee repository:

Now we have to update the kernel of CentOS 7. Otherwise it will not work.

Install new kernel development package with the following command:

As you see, I’ve already done that and restarted my computer. From the ‘uname -r’ command, you can see that my kernel version is now ‘4.13.11’. You should restart your computer after installing a new kernel and kernel-ml-devel package.

Now we are ready to install bumblebee Nvidia Optimus drivers. To install bumblebee, run the following command:

Or the following command, if you want 32-bit compatibility:

I will go with the first command.

Once you run the command, press ‘y’ and then press to confirm the installation.

Your installation should start. It may take several minutes to finish.

Once installed, run the following command to add your user to the bumblebee group.

Now restart your computer. Once your computer restarts, you should be able to run “Nvidia Settings” control panel. It verifies that everything is working correctly.

You can check if everything is working correctly from the command line as well. Run the following command to check if Nvidia driver and bumblebee is working:

From the following output, you can see that everything is working correctly.

If you have any problem, you should try running the following command:

If you want to uninstall Nvidia Optimus drivers by Bumblebee, run the following command:

Press ‘y’ and press . Bumblebee Nvidia Optimus drivers should be removed.

You can also remove the updated kernel with the following commands:

Although, removing the kernel is not required. You can use them if you want.
So that’s how you install and uninstall the new Nvidia Optimus drivers on CentOS 7. Thanks for reading this article.

About the author

Admin

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.

Ссылка на основную публикацию
У вас сломался холодильник
Поломка холодильника всегда застает в врасплох. И определить причину моментально практически невозможно. Нужно как можно быстрее «спасти» продукты. Обычно надолго...
Телефон абонента занят что это значит
Телефон работает нормально. Но в последнее время почему-то часто не могут дозвониться до меня, номер занят. Хотя я ни с...
Телефон xiaomi или huawei
17 октября 2019 Ни для кого не секрет, что львиную долю прибыли Android-производителей обеспечивают продажи бюджетных и средне-бюджетных устройств. Своеобразными...
У каких марок телефонов хорошая камера
Производители будто бы соревнуются - кто сколько датчиков встроит в девайс. Есть уже с четырьмя и даже пятью камерами! Как...
Adblock detector