Depending on how your system is set up, DRI_PRIME might use a different number. Generally, you check with glxinfo.
data1701d
This is a relatively new CPU. You might struggle on Ubuntu as well. As much as I love Debian, something like Fedora might be better.
It may be possible to get Debian running, though - either run Debian Testing or install a Backports kernel and Mesa. Were you failing to boot Debian, or did you just struggle after getting it installed?
Either way, I just don't recommend Ubuntu.
A suggestion: if you can't find anything else for them, keep them around as parts machines.
There should still be useful components in them. For instance, a lot of the Wi-Fi modems may still be perfectly good for other things as long as they're mini-PCIE (I don't know if they use those in desktops). They may not be the absolute newest standard, but should still do the trick; it certainly came in handy when my sister's laptop's Wi-Fi modem decided to be a brat - I just swapped in an Intel modem from a laptop from 2016.
I might not fully trust the SSDs or the HDDs, but they can still have their uses. There's one SSD from an old desktop that I currently have hooked up to my Wii U.
From what I can tell, people have supposedly run LLMs on it with not great, but not necessarily horrible results; Certainly has to be better than those clickbait posts about people running llama on Windows 98.
A lot of budget desktops from the past decade can at least match, if not significantly outclass a Raspberry Pi 5. Heck, that barely beats my i5 from 2009, and the performance of CPUs has increased significantly since then.
Then again, I'm not particular interested in gen ML, self-hosted or not, so I don't really care.
Although seem to have solved your main issue, I have a few comments on your Steam Run command.
For one, I think VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.x86_64.json and your prime-run command are redundant - both of those will do the same thing. Personally, I use neither of those and instead do something like DRI_PRIME=1 %command% (obviously not this exactly always, as there might be other flags, but roughly the idea).
In general, I’d just recommend seeing which of these command flags you really need, because I see people in ProtonDB getting away with much simpler launch commands.
Every package manager you mention is shit.
Every package manager ~~you mention~~ is s***.
How old are these machines, from oldest CPU model to newest CPU model?
I mean, depending on the budget desktop, it might be much better than a Raspberry Pi 5, which I hear is already occasionally used for such things.
Assuming this is an ATX or ITX PC, there's likely a way to reset UEFI so you can disable fastboot and change your settings, or at least boot from a recovery USB.
There's usually something like a button or 2 pins you can short on your motherboard to reset the settings. If your machine has dual BIOS, there will be a switch you can flip, though you'll probably need to update the UEFI again once you do that.
In the worst case (and this should work on almost any device), remove the CMOS battery, let the device sit for a few minutes, then put that battery in. That should clear all settings, including fastboot, and allow you to do recovery stuff - just make sure you fix the time before going on the internet.
Just to make sure - it’s not some cable hitting a fan in a case, right?
I’ve seen systems before where a cable is too close to a fan, and you don’t hear a noise until the fan speeds up.
Usually, you don't need to bother much with drivers at all outside of Nvidia GPUs and Broadcom modems since the kernel is monolithic and contains most drivers.
On an ATX motherboard, I think it's extremely rare for the ethernet chipset to require an out-of-kernel driver.
I'm agreeing with other people; there's probably a drive issue that the shop didn't catch.
On my machine, those two services that take 30 seconds for you do not take nearly that long for me.
dev-mapper-DebianVolume\x2dDebianMain.device(which is equivalent todev-mapper-data\x2droot.device; our drives are just called different things) only takes 1.074 seconds for me, whilelvm2-monitor.serviceonly takes 357 milliseconds.I've only ever seen Linux boots take this long when either a drive failed or I accidentally formatted a drive that's in my fstab, causing it to fail to mount and eventually landing me in a recovery shell. At that point, I'd either use the recovery shell or a USB to edit the fstab.
Next time you boot in, check to see if all your drives are showing up, check disk health, etcetera. Also, although this likely won't solve the problem, check that your drive connections are well-seated.