How do I install legacy nvidia drivers?

Basically, I wanna download the nvidia 390 drivers but have faced errors.

What I did:

1- Install the driver from the official website

2- Install kernel-5.18.18-100.fc35 from koji then installing all the rpms

3- Blacklist nouveau

4- Reboot into console mode

5- sudo dnf install dkms acpid libglvnd-opengl libglvnd-devel pkgconfig kernel-headers (and yet the kernel headers are only available for the kernel 6 and not kernel 5, also some of these packages were already installed)

6- run sudo ./(the .run file name) after cd Dowbloads

After that, I keep running into errors.

So, Is there a way to dowbload the package but not from the website (like using dnf from a trusted verified official repo) or do I have to install it from the website? If I must, I will send all the errors here

Also, would updating all packaged make the .run file install the drivers smoothly?

Yes, you can use the drivers from RPMFusion, which are packaged specifically to work with Fedora.

If you haven’t used RPMFusion before, first follow the configuration instructions to set up the repo.

Bear in mind the 390 drivers don’t support Wayland, so you will be restricted to X11-based desktop environments.

Ok so apparently when I enabled nouveau again it seems like all system apps (files, software, monitor, etc…) are crashing when I try to open them and I have no idea what to do and I have a broken nvidia x server settings app (yet the console mode is working fine when I do ctrl+alt+f3)

Can you outline all the steps you’ve done?

Did you try to install the RPMFusion drivers, or did you unblacklist nouveau immediately after doing steps 1-6 in your OP?

What kernel are you booting into?

I immediatly unblacklisted nouveau after finding that the .run driver failed but it seems like there is a broken version was on my device, but I found a solution that may help anyone who has my problem now. Basically: I pressed ctrl+alt+F3 , logged in, then did sudo nvidia-installer --uninstall and everything worked again.

Anyways, my plan is to enable rpm fusion from gnome software, then do the dnf command on the website you gave me, then try install the gnome xorg session

It is also necessary to revert an undocumented change to /etc/gdm/custom.conf made by the Nvidia installer to remove the # that goes at the start of the line WaylandEnable=false.

If your system has a removable graphics card you should look for a newer replacement. I have an old iMac so can’t change the GPU. As a test, I installed cinnamon, which gives me the option to choose cinnamon at login. With the Nvidia driver installed, many Gnome apps fail, but Firefox, emacs, and alacrity are working.

Unfortunately I am using a laptop and cannot replace the gpu, so I am currently installing kde and cinnamon to replace gnome (Even though I LOVE gnome).

Ok so I installed the drivers, rebooted, and all I see is a black screen

I do not think those old nvidia drivers will work with wayland.

Ok, I will delete the driver and restore evrything to its original form but one question: If the laptop get connected to a projector, will it work with just nouveau?

I don’t see why not. The projector is presumably just an HDMI device? And to my knowledge the proprietary drivers don’t do anything special that would make this work differently from nouveau.

Well, if that is the case then I have no problem with nouveau