Steevo Wiki

You are here: Home » linux » fedora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:fedora [2023/05/08 16:24]
admin created
linux:fedora [2024/11/13 07:19] (current)
admin
Line 1: Line 1:
-====== Fedora ======+===== Fedora ===== 
 + 
 +Nvidia drivers 
 +<code > 
 +dnf install akmod-nvidia 
 +dnf install kernel-devel-xxx 
 +akmods --force --kernels 6.xx 
 +</code> 
 + 
 +=== Post install nvidia driver ===
  
-Remove rhgb & quiet from kernel’s GRUB menu entry+<code> 
 +cat /etc/X11/xorg.conf.d/10-nvidia.conf 
 +Section "OutputClass" 
 + Identifier "nvidia" 
 + MatchDriver "nvidia-drm" 
 + Driver "nvidia" 
 + Option "AllowEmptyInitialConfiguration" 
 + Option "SLI" "Auto" 
 + Option "BaseMosaic" "on" 
 + Option "PrimaryGPU" "yes" 
 +EndSection 
 + 
 +Section "ServerLayout" 
 + Identifier "layout" 
 + Option "AllowNVIDIAGPUScreens" 
 +EndSection 
 +</code> 
 + 
 +Enable suspend:  
 + 
 +<code> 
 +systemctl enable nvidia-{suspend,resume,hibernate} 
 +echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/tmp" | sudo tee /etc/modprobe.d/nvidia-power-management.conf 
 +</code> 
 + 
 +==== Upgrade ==== 
 +Upgrade max to current version +2 (Ex from fc 38 to 40) 
 +<code> 
 +dnf system-upgrade download --releasever=40 
 +</code> 
 + 
 +Remove cached files after upgrade: 
 +<code> 
 +dnf system-upgrade clean 
 +</code> 
 + 
 +Check if any packages version were locked: 
 +<code> 
 +cat /etc/dnf/plugins/versionlock.list 
 +# if locked: 
 +dnf versionlock clear 
 +</code> 
 + 
 +=== Remove rhgb & quiet from kernel’s GRUB menu entry ===
 <code> <code>
 grubby --remove-args="rhgb quiet" --update-kernel=ALL grubby --remove-args="rhgb quiet" --update-kernel=ALL
 </code> </code>
  
 +
 +=== DNS servers ===
 +Check DNS:
 +<code>
 +systemd-resolve --status | grep "DNS Servers"
 +</code>
 +
 +Flush DNS:
 +<code>
 +systemd-resolve --flush-caches
 +</code>
 +
 +Chroot:
 +<code>
 +systemd-nspawn -D
 +</code>
 +
 +Restore from live disk:
 +https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/#_restoring_the_bootloader_using_the_live_disk
 +
 +File system check:
 +https://www.freedesktop.org/software/systemd/man/latest/systemd-fsck@.service.html#Kernel%20Command%20Line
 +
 +Verify packages:
 +http://ftp.rpm.org/max-rpm/s1-rpm-verify-what-to-verify.html#S2-RPM-VERIFY-A-OPTION