add nvidia-open driver install option#15
add nvidia-open driver install option#15kykrueger wants to merge 2 commits intoHalfwalker:masterfrom
Conversation
|
Messed up some of the if statement syntax. I'll fix it later |
|
That's a good idea to have the becomes Then it's a matter of checking just the one If you would like to redo the PR along these lines I would definitely consider it. |
|
Sure, I can do it that way! |
|
I'd also be keen to have the video drivers install without requiring a desktop environment for headless servers that run GPU workloads. |
|
I've just noticed that some of the open firmware is available in ppa:graphics-drivers/ppa The latest drivers (590) are not yet available there, but personally I don't have a need for them. I would rather just simplify this PR by adding an example of using the 580-open driver by adding it to your list of options. |
|
That's a possibility. I go back and forth on whether to install "other stuff" via the main Personally I use ansible to provision the system after main install. Laptop with encryption, Workstation with multiple boot disks and Gnome etc., NAS server, Media server and so on. We would have to be sure that installing the video drivers doesn't bring a lot of extra stuff. But maybe that's OK for a GPU headless system ? For your last comment there about 580/590 - yeah, simple is good. Adding 580-open to the list is fine. |
fab9576 to
1241366
Compare
|
There are different packages for the headless version. I've added an example to the list. To support the install of the headless drivers when not installing a desktop environment, I could check if 'headless' is present in the NVIDIA variable, and then install the drivers when it is. |
|
I'd consider this PR complete though, if adding the logic for a headless install without a desktop environment, I'll make a new PR. |
| # Installing Nvidia PPA here just so we can search for versions | ||
| apt-add-repository --yes --update ppa:graphics-drivers/ppa | ||
| NVIDIA_LATEST=$(apt-cache search nvidia-driver- | cut -d ' ' -f1 | grep -e "nvidia-driver-...$" | cut -d'-' -f3 | sort | tail -1) | ||
| NVIDIA=$(whiptail --title "Nvidia Hardware detected - install latest driver ?" --radiolist "Gnome/KDE/NEON was selected, and Nvidia graphics HW was detected on this system. The ppa:graphics-drivers/ppa repo could be installed in order to get the binary Nvidia driver\n\nNOTE: Be sure to select the correct driver - the latest (${NVIDIA_LATEST}) may not support older legacy HW. See\n\nhttps://www.nvidia.com/en-us/drivers/unix/legacy-gpu/\n\nfor more information on legacy HW. It is safe to select NONE if you are unsure. You can always install the appropriate driver later via Additional Drivers" 22 70 4 \ |
There was a problem hiding this comment.
| NVIDIA=$(whiptail --title "Nvidia Hardware detected - install latest driver ?" --radiolist "Gnome/KDE/NEON was selected, and Nvidia graphics HW was detected on this system. The ppa:graphics-drivers/ppa repo could be installed in order to get the binary Nvidia driver\n\nNOTE: Be sure to select the correct driver - the latest (${NVIDIA_LATEST}) may not support older legacy HW. See\n\nhttps://www.nvidia.com/en-us/drivers/unix/legacy-gpu/\n\nfor more information on legacy HW. It is safe to select NONE if you are unsure. You can always install the appropriate driver later via Additional Drivers" 22 70 4 \ | |
| NVIDIA=$(whiptail --title "Nvidia Hardware detected - install latest driver ?" --radiolist "Gnome/KDE/NEON was selected, and Nvidia graphics HW was detected on this system. The ppa:graphics-drivers/ppa repo could be installed in order to get the binary Nvidia driver\n\nNOTE: Be sure to select the correct driver - the latest (${NVIDIA_LATEST}) may not support older legacy HW. See\n\nhttps://www.nvidia.com/en-us/drivers/unix/legacy-gpu/\n\nfor more information on legacy HW. It is safe to select NONE if you are unsure. You can always install the appropriate driver later via Additional Drivers" 26 70 8 \ |
Need to adjust the size of the menu. List height should match the total items in the list
Co-authored-by: Halfwalker <deano-github@areyes.com>
|
What is your preference on commits, squashed, or maybe just a better commit message on the suggestion commit that I just accepted? |
|
Usually just a good commit msg. Squashing sometimes has a tendency to lose details like rationale and how-we-arrived-here etc. I will absolutely squash lots of test-this and test-that type commits though hah |
I'd like to be able to install the Nvidia drivers from the Nvidia repo.
let me know what you think.