Install drivers suse linux

SDB:NVIDIA drivers

Warning: If you plan to replace your card with a more recent one, it’s recommended that you uninstall the NVidia DDX driver (reverting back to modesetting DDX driver (newer; default) or nouveau DDX driver (older; optional)) before upgrading your hardware.

Open GPU kernel modules versus Proprietary drivers

The following article is about installing NVIDIA’s Proprietary drivers. For more information about the Open GPU kernel modules, that NVIDIA released in May 2022, read this openSUSE Blog article.

Situation

Installing the official NVIDIA drivers using ZYpp (YaST or Zypper) is desired.

For information regarding NVIDIA’s official linux .run file see «the hard way» page.

Procedure

Installing with YaST or Zypper requires root privileges.

Note that YaST is not available in OpenSUSE Aeon or Kalpa. You must use the command line with transactional-update and Zypper.

Special Requirements

You need to have multiversion feature for kernel packages enabled, it is normally the case by default.
You can verify that you have the following entry in /etc/zypp/zypp.conf:

multiversion = provides:multiversion(kernel)

Add the Nvidia Repository

The NVIDIA drivers can not be included with openSUSE because of their license. Conveniently, NVIDIA has an openSUSE repository that can be added and downloaded from.

YaST (for Leap and Tumbleweed)

  1. Open YaST, then click Software Repositories.
  2. Click Add (in the bottom left), then select Community Repositories.
  3. Select NVIDIA Graphics Drivers, then click OK.

Zypper

As root, enter the following in a terminal :

Leap
Tumbleweed
Aeon and Kalpa (previously MicroOS Desktop)

Get the hardware information

# lspci | grep VGA # lscpu | grep Arch
# hwinfo --gfxcard | grep Model # hwinfo --arch

This information is also available in the Display subsection at YaST Hardware Information.

Install

One way to determine the appropriate driver is to input your hardware information into Nvidia’s driver search engine. Beware: Nvidia’s site may declare shorter support period with the same chip for mobile graphics compared to desktop video cards. This is not true for Linux drivers (more info here). openSUSE provides unified Linux driver for all flavours: GeForce and Quadro, desktop and mobile. The driver decides during startup whether it supports this GPU or not.

Note: Specific video cards are mapped to the following naming convention listed below. You will need this information when you are ready to install via commandline/zypper.

  • G03 = driver v340 = legacy driver for GT8xxx/9xxx devices (via a community user, see below)
  • G04 = driver v390 = legacy driver for GTX4xx/5xx Fermi devices
  • G05 = driver v470 = driver for GeForce 600 series
  • G06 = driver for GeForce 700 series (Kepler) and up (Maxwell, Pascal. )
Читайте также:  Space engineers dedicated server linux

Alternatively, YaST Software or the following commands can be used to check the available packages:

# zypper se x11-video-nvidiaG0* nvidia-video-G06* S | Name | Summary | Type --+---------------------+---------------------------------------------------------+-------- | nvidia-video-G06 | NVIDIA graphics driver for GeForce 700 series and newer | package | x11-video-nvidiaG04 | NVIDIA graphics driver for GeForce 400 series and newer | package | x11-video-nvidiaG05 | NVIDIA graphics driver for GeForce 600 series and newer | package
# zypper se -s x11-video-nvidiaG0* nvidia-video-G06* S | Name | Type | Version | Arch | Repository --+---------------------+---------+-----------------+--------+------------------------ | nvidia-video-G06 | package | 525.89.02-5.2 | x86_64 | nVidia Graphics Drivers | x11-video-nvidiaG04 | package | 390.157-19.1 | x86_64 | nVidia Graphics Drivers | x11-video-nvidiaG05 | package | 470.161.03-59.2 | x86_64 | nVidia Graphics Drivers

If you are going to install CUDA later, then you must use nvidiaG05 version for compatibility (as of Jan 18, 2022).

To take advantage of OpenGL acceleration you must install an additional package, choosing the one that corresponds to the driver:

# zypper se nvidia-gl*G0* S | Name | Summary | Type --+---------------+-------------------------------------------------+-------- | nvidia-gl-G06 | NVIDIA OpenGL libraries for OpenGL acceleration | package | nvidia-glG04 | NVIDIA OpenGL libraries for OpenGL acceleration | package | nvidia-glG05 | NVIDIA OpenGL libraries for OpenGL acceleration | package

Patched G03 drivers were provided by community user: https://software.opensuse.org/search?baseproject=ALL&q=g03. You may install them after adding required repository.

YaST (for Leap and Tumbleweed)

  1. Go to the YaST Control Center and click Software Management.
  2. View > Repositories > NVIDIA
  3. Choose the appropriate driver, e.g. x11-video-nvidiaG04 or x11-video-nvidiaG05 or nvidia-video-G06
  4. Optionally choose the corresponding OpenGL acceleration libraries; nvidia-glG04 or nvidia-glG05 or nvidia-gl-G06.
  5. Press Accept.
  6. Restart your computer.

Command line

It’s for the moment the only way to install the drivers in OpenSUSE Aeon and Kalpa.

Once you know which product is mapped to the appropriate driver command mapping (e.g. G04 or G05 or G06), you can use :

Leap and Tumbleweed
Aeon and Kalpa
# transactional-update -i pkg in nvidia-driver-G06-kmp-default nvidia-video-G06 nvidia-gl-G06 nvidia-compute-G06
# transactional-update -i pkg in nvidia-gfxG05-kmp-default x11-video-nvidiaG05 nvidia-glG05 nvidia-computeG05
# transactional-update -i pkg in nvidia-gfxG04-kmp-default x11-video-nvidiaG04 nvidia-glG04 nvidia-computeG04

Secureboot

Kernels in Leap 15.2 or higher (and Tumbleweed since Kernel 6.2.1) will, by default, refuse to load any unsigned kernel modules on machines with secure boot enabled.

During the NVIDIA driver installation on a secureboot system a MOK keypair is being created and the kernel modules been signed with the created private key. The created certificate (public key) remains on the storage below /var/lib/nvidia-pubkeys, but it also needs to be imported to the list of to be enrolled MOK pubkeys.

After the first reboot this certificate can easily be enrolled to the MOK database. The EFI tool for this (mokutil) is automatically started: inside the tool select «Enroll MOK», then «Continue», then «Yes». Use your root password (US keyboard layout!) when prompted for a password. The certificate is now added to the MOK database and is considered trusted, which will allow kernel modules with matching signatures to load. To finish, select «Reboot».

Читайте также:  Linux создание пользователя centos

Nvidia-secureboot-enrollKey.jpg

In case you miss the timeout for certificate enrollment after first reboot, you can easily import again the certificate by running the following command:

# mokutil --import /var/lib/nvidia-pubkeys/MOK-nvidia-driver-G0--.der --root-pw
# mokutil --import /var/lib/nvidia-pubkeys/MOK-nvidia-gfxG0--.der --root-pw

Then reboot the machine and enroll the certificate as described before.

As the last resource, in case you are having problems with secure boot, you can, at your own risk, disable validation for kernel modules:

# mokutil --disable-validation
Driver Update

During a driver update the old and no longer being used public key is being registered to be deleted from the MOK data base. So in addition to the «Enroll MOK» menu entry a «Delete MOK» entry will appear in the EFI tool once you reboot the machine. In order to finally remove it from the MOK data base, select «Delete MOK», then «Continue», then «Yes». Again use your root password (US keyboard layout!) when prompted for a password. You can show the certificate/description of the public key when selecting «View Key X» in order not to delete the wrong key. Press any key to continue from there.

Nvidia-secureboot-deleteKey.jpg

Uninstalling the NVIDIA drivers

YaST

  1. Start YaST, go to: Software -> Software Management
  2. Change the ‘Filter’ to filter by software repositories
  3. Select the respective NVIDIA repository
  4. Mark any installed package from this repository for deletion and press ‘Accept’. You may be prompted for conflicts, please ignore any conflicts and chose to break dependencies.
  5. Now in YaST select: Software -> Software Repositories
  6. Chose the respective NVIDIA repository and mark it ‘disabled’ — don’t delete it as it will return enabled the next time the repositories are synced with the server.

Uninstalling the proprietary drivers will restore the previous X configuration file /etc/X11/xorg.conf if one existed. If the hardware has changed in the mean time it may be necessary to manually edit this file.

Zypper

If that doesn’t delete all the packages you can find the other names with

Also, the installer for the NVIDIA driver might have added nouveau to the blocklist; to be able to run the modesetting DDX driver or nouveau DDX driver again make sure there are no files containing the words blacklist nouveau at /etc/modprobe.d/, as the installer might fail to remove these.

After uninstalling the packages, you might need to recreate the initrd by running:

Troubleshooting

  • https://en.opensuse.org/SDB:NVIDIA_troubleshooting
  • If your computer freezes before the login screen after installing the propietary drivers and you are using GDM (usually the case if you are using GNOME), try adding WaylandEnable=false in /etc/gdm/custom.conf. This will disable the GNOME Wayland session as an option during login. If you want Wayland to still be enabled, run the command below and reboot.
# sudo ln -sfv /dev/null /etc/udev/rules.d/61-gdm.rules
  • KDE may not work with Wayland protocol.
  • You can verify the driver was actually loaded by running lsmod | grep nvidia in the terminal. The output should be like:
nvidia_drm 57344 2 nvidia_modeset 1187840 3 nvidia_drm nvidia_uvm 1110016 0 nvidia 19771392 81 nvidia_uvm,nvidia_modeset drm_kms_helper 229376 2 nvidia_drm,i915 drm 544768 13 drm_kms_helper,nvidia_drm,i915

The numbers in the middle column do not need to be the same. If the driver is loaded the problem relies elsewhere, since that means it was installed successfully.

  • As stated before in this guide, if you are using secure boot make sure you accept the MOK, else the module won’t load. One way to know see if secure boot could be blocking the module is looking at the output of dmesg and search for warnings like the following:
Lockdown: modprobe: unsigned module loading is restricted; see man kernel_lockdown.7 modprobe: ERROR: could not insert 'nvidia': Required key not available

See also

Optimus

Users on hardware configurations with NVIDIA Optimus (usually the case on laptops) are advised to read SDB: NVIDIA SUSE Prime. Offloading to the dedicated GPU is possible using the instructions at PRIME Render Offload

Читайте также:  Linux mint xfce тачпад

CUDA

Developers and users involved in High Performance Computing applications may want to install CUDA libraries. Additional instructions are provided at the CUDA Toolkit Documentation and download links at NVIDIA Developer

Источник

unixforum.org

Установка драйверов в Novell SUSE Linux (Чтото универсальное)

Установка драйверов в Novell SUSE Linux

Сообщение x-Nomad » 17.11.2007 03:04

Научите пожалуста шаг за шагом как установить драйвер. У меня на материнской плате сетевая и звуковая. К ней есть диск с драйверами в том числе архивы для Linux. Но как их поставить.

SLEDopit Модератор Сообщения: 4814 Статус: фанат консоли (= ОС: GNU/Debian, RHEL

Re: Установка драйверов в Novell SUSE Linux

Сообщение SLEDopit » 17.11.2007 03:42

Научите пожалуста шаг за шагом как установить драйвер. У меня на материнской плате сетевая и звуковая. К ней есть диск с драйверами в том числе архивы для Linux. Но как их поставить.

а вы уверены, что линукс сам все не определил?
и какие архивы, если tar.gz, то для их установки из консоли выполните

Совет #2
Установка софта из исходных кодов.
tar -xvzf ./[имя программы].tar.gz
cd ./[имя программы]
less ./README
less ./INSTALL
./configure
make
su -c «make install»
Примечание 1: Если это tar.bz2 архив используйте tar -xvjf ./[имя программы].tar.bz2
Примечание 2: Возьмите за правило между less INSTALL и ./configure обязательно выполнить ./configure —help и очень внимательно прочитать вывод
Примечание 3: В rpm-based дистрах предпочтительней использовать бинарные файлы для установки програм. Или же при сботке из исходников пользутесь checkintall.
#./configure
#make && checkinstall (с опцией для данного дитсьра)
После этого полученый файл устанавливается как обычный бинарник, и не требует для удаления програмы иметь сорцы.

UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. © Dennis Ritchie
The more you believe you don’t do mistakes, the more bugs are in your code.

Источник

Оцените статью
Adblock
detector