Otu esi etinye ma ọ bụ kwalite Nvidia ọkwọ ụgbọ ala na AlmaLinux 8

Ọtụtụ sistemụ desktọpụ Linux ọgbara ọhụrụ na-eji otu Nvidia ọkwọ ụgbọala etinyegoro na mbụ Ọhụrụ Onye na-anya ngwaọrụ eserese mepere emepe maka kaadị vidiyo Nvidia. Maka ọtụtụ akụkụ, nke a bụ ihe a na-anabata; Agbanyeghị, ọ bụrụ na ị na-eji sistemụ Linux gị maka imepụta eserese ma ọ bụ egwuregwu, ị nwere ike nweta ndị ọkwọ ụgbọ ala ka mma.

Kemgbe ụwa, Ọhụrụ Ndị ọkwọ ụgbọ ala na-eji nwayọ karịa ndị ọkwọ ụgbọ ala nke Nvidia, yana enweghị njirimara kachasị ọhụrụ, teknụzụ ngwanrọ na nkwado maka ngwaike kaadị eserese kacha ọhụrụ. N'ọtụtụ ọnọdụ, ịkwalite ndị ọkwọ ụgbọ ala Nvidia gị site na iji ntuziaka na-esonụ bara uru karịa ịmeghị ya. N'ọnọdụ ụfọdụ, ị nwere ike ịhụ nkwalite ụfọdụ n'ozuzu ya.

N'ime ntuziaka na-esonụ, ị ga-ama Otu esi etinye ndị ọkwọ ụgbọ ala Nvidia na desktọpụ AlmaLinux 8 gị.

Prerequisites

  • OS akwadoro: AlmaLinux 8.
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ihe ùgwù or ohere mgbọrọgwụ (su Command).

Na-emelite Sistemụ Ọrụ

Melite gi AlmaLinux Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo dnf upgrade --refresh -y

Nkuzi a ga-eji ya sudo iwu na na-eche na ị nwere ọnọdụ sudo. Iji nyochaa ọkwa sudo na akaụntụ gị:

sudo whoami

Ihe atụ na-egosi ọkwa sudo:

[joshua@localhost ~]$ sudo whoami
root

Ọ bụrụ na ịtọbeghị akaụntụ onye ọrụ sudo ma ọ ga-amasị gị, gaa na nkuzi anyị Otu esi etinye onye ọrụ na Sudoers na AlmaLinux.

Iji mgbọrọgwụ akaụntụ, jiri iwu na-esonụ na paswọọdụ mgbọrọgwụ banye.

su

Advertisement


Wụnye Nvidia Drivers maka AlmaLinux

Tinyegharịa dabere

Emebere nrụnye ndị a maka kernel AlmaLinux ndabara; Nrụnye Linux Kernel ọ bụla gbanwetụrụ nwere ike ọ gaghị arụ ọrụ.

Nzọụkwụ mbụ bụ ibubata ebe nchekwa site na EPEL (Ngwugwu ndị ọzọ maka Linux Enterprise) dị ka ndị a:

sudo dnf install epel-release

Ihe atụ mmepụta:

Otu esi etinye ma ọ bụ kwalite Nvidia ọkwọ ụgbọ ala na AlmaLinux 8

Ụdị "Y", wee pịa "Tinye igodo" aga n'ihu.

Ọzọ, tinye ebe nchekwa Nvidia:

sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

Ihe atụ mmepụta:

Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

Nzọụkwụ nke abụọ bụ ịwụnye kernel-devel na nkụnye eji isi mee nke ndị ọkwọ ụgbọ ala Nvidia ga-eji:

sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

Ihe atụ mmepụta:

Otu esi etinye ma ọ bụ kwalite Nvidia ọkwọ ụgbọ ala na AlmaLinux 8

Ụdị "Y", pịa pịa "Tinye igodo" aga n'ihu.

Wụnye Nvidia Drivers

Ugbu a agbakwunyere ebe nchekwa ahụ, ị ​​nwere ike ịga n'ihu ịwụnye ọkwọ ụgbọ ala Nvidia kacha ọhụrụ dị ka ndị a:

sudo dnf install nvidia-driver nvidia-settings

Ihe atụ mmepụta:

Otu esi etinye ma ọ bụ kwalite Nvidia ọkwọ ụgbọ ala na AlmaLinux 8

Ụdị "Y", wee pịa "Tinye igodo" aga n'ihu.

Mara, n'oge echichi, a ga-akpali gị ibubata ihe igodo GPG dị ka ndị a:

--------------------------------------------------------------------------------
Total                                            18 MB/s | 230 MB     00:12     
warning: /var/cache/dnf/cuda-rhel8-x86_64-f1d7a46f058da57c/packages/dnf-plugin-nvidia-2.0-1.el8.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY
cuda-rhel8-x86_64                               8.7 kB/s | 1.6 kB     00:00    
Importing GPG key 0x7FA2AF80:
 Userid     : "cudatools <cudatools@nvidia.com>"
 Fingerprint: AE09 FE4B BD22 3A84 B2CC FCE3 F60F 4B3D 7FA2 AF80
 From       : https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/7fa2af80.pub
Is this ok [y/N]: 

Ụdị "Y", pịa pịa "Tinye igodo" aga n'ihu.

Nhọrọ ị nwekwara ike ịwụnye nke Ndị ọkwọ ụgbọ ala CUDA:

sudo dnf install cuda-driver

Ihe atụ mmepụta:

Otu esi etinye ma ọ bụ kwalite Nvidia ọkwọ ụgbọ ala na AlmaLinux 8

Ụdị "Y", wee pịa "Tinye igodo" aga n'ihu.

Ozugbo arụnyere, malitegharịa desktọpụ gị:

reboot now

Mgbe ịmalitegharịa, nyochaa nrụnye arụ ọrụ site na iji iwu a:

nvidia-smi

Ihe atụ mmepụta:

~$ nvidia-smi
 Fri Sep 3 13:01:34 2021       
 +-----------------------------------------------------------------------------+
 | NVIDIA-SMI 460.80       Driver Version: 460.80       CUDA Version: 11.2     |
 |-------------------------------+----------------------+----------------------+
 | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
 | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
 |                               |                      |               MIG M. |
 |===============================+======================+======================|
 |   0  GeForce GTX 1650    Off  | 00000000:03:00.0  On |                  N/A |
 | 56%   30C    P8    N/A /  75W |    403MiB /  3903MiB |      5%      Default |
 |                               |                      |                  N/A |
 +-------------------------------+----------------------+----------------------+
 +-----------------------------------------------------------------------------+
 | Processes:                                                                  |
 |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
 |        ID   ID                                                   Usage      |
 |=============================================================================|
 |    0   N/A  N/A      1627      G   /usr/lib/xorg/Xorg                182MiB |
 |    0   N/A  N/A      1772      G   /usr/bin/gnome-shell               35MiB |
 |    0   N/A  N/A      3782      G   …lib/vmware/bin/vmware-vmx        8MiB |
 |    0   N/A  N/A     35908      G   …lib/vmware/bin/vmware-vmx        8MiB |
 |    0   N/A  N/A     81318      G   /usr/lib/firefox/firefox          161MiB |
 +-----------------------------------------------------------------------------+

Dịka ị na-ahụ, ozi dị na kaadị eserese dị ugbu a. Ọ bụrụ na ịnweghị ike ịhụ ozi ọ bụla na kaadị Nvidia gị, ọ pụtara na nrụnye emeghị nke ọma. Ị ga-achọkwa ịmegharị usoro ahụ ma ọ bụ nyochaa ihe kpatara ya; na-adịkarị, ọtụtụ nsogbu na-abịa site na sistemu emegharịrị na-abụghị nke ndabara.

Melite ndị ọkwọ ụgbọ ala Nvidia

Ka ịlele maka mmelite na itinye, ihe niile ị ga-eme bụ ịgba ọsọ dnf update iwu dị ka ndị a:

sudo dnf update

Ọ bụrụ na mmelite dị maka ndị ọkwọ ụgbọ ala Nvidia, jiri ihe ndị a:

sudo dnf upgrade

Advertisement


Wepu Nvidia Drivers

Iji wepu ndị ọkwọ ụgbọ ala Nvidia na ihe niile dabere na mgbakwunye arụnyere, gbaa iwu a:

sudo dnf remove nvidia-driver nvidia-settings cuda-driver kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Transaction Summary
================================================================================
Remove  40 Packages

Freed space: 739 M
Is this ok [y/N]:

Ụdị "Y", pịa pịa "Tinye igodo" aga n'ihu.

Okwu na mmechi

N'ime nkuzi a, ị mụtala ka esi etinye Nvidia ọkwọ ụgbọala na desktọpụ AlmaLinux 8. Dị ka o kwesịrị, ọtụtụ ndị egwuregwu hardcore agaghị eji AlmaLinux dịka nkesa egwuregwu kachasị amasị ha; Otú ọ dị, maka sistemụ nwere Nvidia GPUs ma na-arụ ọrụ na eserese, nke a nwere ike ịcha mma ịwụnye maka nkwado ọkwọ ụgbọala ka mma.

Ahapụ a Comment