Right, so method 1, rpmfusion:
Freshly installed qubes 41(20200214):
dom0: sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing -y && sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing kernel-latest kernel-latest-devel gedit -y && sudo reboot
(gedit package to edit rpmfusion repos easily)
The system is up to date and has kernel-lates-5.5.7-1.qubes.x86_64 and kernel-latest-devel-5.5.7-1.qubes.x86_64.
In sys-firewall's browser I'm getting the rpm fusion keys for fedora 31 and the repos:
Keys:
Repos:
in sys-firewall opened file manger and made an archive with all files(the keys and rpm's)(to simplify the transfer to dom0 process)
select all => compressed and named 1.zip
moved the zip to dom0:
dom0: qvm-run --pass-io sys-firewall "cat /home/user/Downloads/1.zip" > /home/test/Downloads/1.zip
unzipping the files:
dom0: unzip /Donwloads/1.zip
installing GPG keys:
dom0: cd Downloads
dom0: sudo rpmkeys --import RPM-GPG-KEY-rpmfusion-free-fedora-31 RPM-GPG-KEY-rpmfusion-nonfree-fedora-31
verifying the packages:
dom0: rpm -K *.rpm
all good:
rpmfusion-free-release-31.noarch.rpm: digests signatures OK
rpmfusion-nonfree-release-31.noarch.rpm: digests signatures OK
installing the repos:
dom0: sudo rpm -i *.rpm --nodeps
so far , so good. Now I'm going to /etc/yum.repo.d/ to replace "$releasever" with 31 and "$basearch" with x86_64
in all rpmfusion's repos(for some reasons, if I'm trying to install akmod-nvidia via dom0, the rpmfusion takes fedora 4.1 version).
dom0: sudo thunar
/etc/yum.repo.d/
and opening all rpmfusion repos using gedit, replacing and save.
now:
dom0: sudo qubes-dom0-update akmod-nvidia -y
with the output:
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
akmod-nvidia x86_64 3:440.64-1.fc31 qubes-dom0-cached 27 k
Installing dependencies:
akmods noarch 0.5.6-24.fc31 qubes-dom0-cached 23 k
egl-wayland x86_64 1.1.4-1.fc31 qubes-dom0-cached 32 k
fakeroot x86_64 1.24-2.fc31 qubes-dom0-cached 92 k
fakeroot-libs x86_64 1.24-2.fc31 qubes-dom0-cached 37 k
grubby x86_64 8.40-36.fc31 qubes-dom0-cached 38 k
kmodtool noarch 1-37.fc31 qubes-dom0-cached 13 k
libglvnd-opengl x86_64 1:1.1.1-5.fc31 qubes-dom0-cached 49 k
libvdpau x86_64 1.3-1.fc31 qubes-dom0-cached 17 k
mesa-libGLES x86_64 19.2.8-1.fc31 qubes-dom0-cached 15 k
mesa-vulkan-drivers x86_64 19.2.8-1.fc31 qubes-dom0-cached 2.5 M
nvidia-settings x86_64 3:440.64-1.fc31 qubes-dom0-cached 1.8 M
rpmdevtools noarch 8.10-9.fc31 qubes-dom0-cached 90 k
vulkan-loader x86_64 1.2.131.1-1.fc31 qubes-dom0-cached 122 k
xorg-x11-drv-nvidia x86_64 3:440.64-1.fc31 qubes-dom0-cached 2.5 M
xorg-x11-drv-nvidia-cuda-libs x86_64 3:440.64-1.fc31 qubes-dom0-cached 23 M
xorg-x11-drv-nvidia-kmodsrc x86_64 3:440.64-1.fc31 qubes-dom0-cached 13 M
xorg-x11-drv-nvidia-libs x86_64 3:440.64-1.fc31 qubes-dom0-cached 64 M
Transaction Summary
================================================================================
Install 18 Packages
Total size: 107 M
Installed size: 346 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : kmodtool-1-37.fc31.noarch 1/18
Installing : vulkan-loader-1.2.131.1-1.fc31.x86_64 2/18
Installing : mesa-vulkan-drivers-19.2.8-1.fc31.x86_64 3/18
Installing : xorg-x11-drv-nvidia-kmodsrc-3:440.64-1.fc31.x86_64 4/18
Installing : xorg-x11-drv-nvidia-cuda-libs-3:440.64-1.fc31.x86_ 5/18
Installing : nvidia-settings-3:440.64-1.fc31.x86_64 6/18
Installing : mesa-libGLES-19.2.8-1.fc31.x86_64 7/18
Installing : libvdpau-1.3-1.fc31.x86_64 8/18
Installing : libglvnd-opengl-1:1.1.1-5.fc31.x86_64 9/18
Installing : grubby-8.40-36.fc31.x86_64 10/18
Running scriptlet: grubby-8.40-36.fc31.x86_64 10/18
Installing : fakeroot-libs-1.24-2.fc31.x86_64 11/18
Installing : fakeroot-1.24-2.fc31.x86_64 12/18
Running scriptlet: fakeroot-1.24-2.fc31.x86_64 12/18
Installing : rpmdevtools-8.10-9.fc31.noarch 13/18
Running scriptlet: akmods-0.5.6-24.fc31.noarch 14/18
Installing : akmods-0.5.6-24.fc31.noarch 14/18
Running scriptlet: akmods-0.5.6-24.fc31.noarch 14/18
Installing : egl-wayland-1.1.4-1.fc31.x86_64 15/18
Installing : xorg-x11-drv-nvidia-libs-3:440.64-1.fc31.x86_64 16/18
Running scriptlet: xorg-x11-drv-nvidia-3:440.64-1.fc31.x86_64 17/18
Installing : xorg-x11-drv-nvidia-3:440.64-1.fc31.x86_64 17/18
Running scriptlet: xorg-x11-drv-nvidia-3:440.64-1.fc31.x86_64 17/18
Installing : akmod-nvidia-3:440.64-1.fc31.x86_64 18/18
Running scriptlet: akmod-nvidia-3:440.64-1.fc31.x86_64 18/18
Verifying : akmod-nvidia-3:440.64-1.fc31.x86_64 1/18
Verifying : akmods-0.5.6-24.fc31.noarch 2/18
Verifying : egl-wayland-1.1.4-1.fc31.x86_64 3/18
Verifying : fakeroot-1.24-2.fc31.x86_64 4/18
Verifying : fakeroot-libs-1.24-2.fc31.x86_64 5/18
Verifying : grubby-8.40-36.fc31.x86_64 6/18
Verifying : kmodtool-1-37.fc31.noarch 7/18
Verifying : libglvnd-opengl-1:1.1.1-5.fc31.x86_64 8/18
Verifying : libvdpau-1.3-1.fc31.x86_64 9/18
Verifying : mesa-libGLES-19.2.8-1.fc31.x86_64 10/18
Verifying : mesa-vulkan-drivers-19.2.8-1.fc31.x86_64 11/18
Verifying : nvidia-settings-3:440.64-1.fc31.x86_64 12/18
Verifying : rpmdevtools-8.10-9.fc31.noarch 13/18
Verifying : vulkan-loader-1.2.131.1-1.fc31.x86_64 14/18
Verifying : xorg-x11-drv-nvidia-3:440.64-1.fc31.x86_64 15/18
Verifying : xorg-x11-drv-nvidia-cuda-libs-3:440.64-1.fc31.x86_ 16/18
Verifying : xorg-x11-drv-nvidia-kmodsrc-3:440.64-1.fc31.x86_64 17/18
Verifying : xorg-x11-drv-nvidia-libs-3:440.64-1.fc31.x86_64 18/18
Installed:
akmod-nvidia-3:440.64-1.fc31.x86_64
akmods-0.5.6-24.fc31.noarch
egl-wayland-1.1.4-1.fc31.x86_64
fakeroot-1.24-2.fc31.x86_64
fakeroot-libs-1.24-2.fc31.x86_64
grubby-8.40-36.fc31.x86_64
kmodtool-1-37.fc31.noarch
libglvnd-opengl-1:1.1.1-5.fc31.x86_64
libvdpau-1.3-1.fc31.x86_64
mesa-libGLES-19.2.8-1.fc31.x86_64
mesa-vulkan-drivers-19.2.8-1.fc31.x86_64
nvidia-settings-3:440.64-1.fc31.x86_64
rpmdevtools-8.10-9.fc31.noarch
vulkan-loader-1.2.131.1-1.fc31.x86_64
xorg-x11-drv-nvidia-3:440.64-1.fc31.x86_64
xorg-x11-drv-nvidia-cuda-libs-3:440.64-1.fc31.x86_64
xorg-x11-drv-nvidia-kmodsrc-3:440.64-1.fc31.x86_64
xorg-x11-drv-nvidia-libs-3:440.64-1.fc31.x86_64
Complete!
[test@dom0 Downloads]$
so theoretically nvidia driver is installed.
The /etc/default/grub file looks like:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_CMDLINE_LINUX="rd.luks.uuid=luks-7c53187e-64b2-44bb-bc09-78839d93a7c2
rd.lvm.lv=qubes_dom0/root
rd.lvm.lv=qubes_dom0/swap plymouth.ignore-serial-consoles rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1"
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub2/themes/qubes/theme.txt"
GRUB_CMDLINE_XEN_DEFAULT="console=none dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx ucode=scan smt=off"
GRUB_DISABLE_OS_PROBER="true"
GRUB_ENABLE_BLSCFG=true
generating the grub:
dom0: sudo grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg with output:
Generating grub configuration file ...
Found theme: /boot/grub2/themes/qubes/theme.txt
Found linux image: /boot/vmlinuz-5.4.5-1.qubes.x86_64
Found initrd image: /boot/initramfs-5.4.5-1.qubes.x86_64.img
Found linux image: /boot/vmlinuz-5.4.5-1.qubes.x86_64
Found initrd image: /boot/initramfs-5.4.5-1.qubes.x86_64.img
done