this post was submitted on 20 Feb 2024
143 points (94.4% liked)

Selfhosted

40219 readers
1129 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

It looks like !buildapc community isn't super active so I apologize for posting here. Mods, let me know if I should post there instead.

I built my first PC when I was I think 10-11 years old. Built my next PC after that and then sort of moved toward pre-made HP/Dell/etc. My last PC's mobo just gave out and I'm looking to replace the whole thing. I've read over the last few years that prefabs from HP/Dell/etc. have gone to shit and don't really work like they used to. Since I'm looking to expand comfortably, I've been thinking of giving building my own again.

I remember when I was a young lad, that there were two big pain points when putting the rig together: motherboard alignment with the case (I shorted two mobos by having it touch the bare metal of the grounded case; not sure how that happened but it did) and CPU pin alignment so you don't bend any pins when inserting into the socket.

Since it's been several decades since my last build, what are some things I should be aware of? Things I should avoid?

For example, I only recently learned what M.2 SSD are. My desktop has (had) SATA 3.5" drives, only one of which is an SSD.

I'll admit I am a bit overwhelmed by some of my choices. I've spent some time on pcpartpicker and feel very overwhelmed by some of the options. Most of my time is spent in code development (primarily containers and node). I am planning on installing Linux (Ubuntu, most likely) and I am hoping to tinker with some AI models, something I haven't been able to do with my now broken desktop due to it's age. For ML/AI, I know I'll need some sort of GPU, knowing only that NVIDIA cards require closed-source drivers. While I fully support FOSS, I'm not a OSS purist and fully accept that using a closed source drivers for linux may not be avoidable. Happy to take recommendations on GPUs!

Since I also host a myriad of self hosted apps on my desktop, I know I'll need to beef up my RAM (I usually go the max or at least plan for the max).

My main requirements:

  • Intel i7 processor (I've tried i5s and they can't keep up with what I code; I know i9s are the latest hotness but don't think the price is worth it; I've also tried AMD processors before and had terrible luck. I'm willing to try them again but I'd need a GOOD recommendation)
  • At least 3 SATA ports so that I can carry my drives over
  • At least one M.2 port (I cannibalized a laptop I recycled recently and grabbed the 1TB M.2 card)
  • On-board Ethernet/NIC (on-board wifi/bluetooth not required, but won't complain if they have them)
  • Support at least 32 GB of RAM
  • GPU that can support some sort of ML/AI with DisplayPort (preferred)

Nice to haves:

  • MoBo with front USB 3 ports but will accept USB 2 (C vs A doesn't matter)
  • On-board sound (I typically use headphones or bluetooth headset so I don't need anything fancy. I mostly listen to music when I code and occasionally do video calls.)

I threw together this list: https://pcpartpicker.com/list/n6wVRK

It didn't matter to me if it was in stock; just wanted a place to start. Advice is very much appreciated!

EDIT: WOW!! I am shocked and humbled by the great advice I've gotten here. And you've given me a boost in confidence in doing this myself. Thank you all and I'll keep replying as I can.

you are viewing a single comment's thread
view the rest of the comments
[–] possiblylinux127@lemmy.zip 3 points 9 months ago (1 children)

Could you buy both an AMD GPU and a Nvidia GPU? You could pass the Nvidia GPU into a VM with vfio for AI and then you could daily drive AMD with Foss drivers. (AMD is in a little less demand) There is also the option of Intel GPUs as they should work pretty well under Linux.

I personally would avoid Ubuntu do to snaps as there are many other options. Do what you feel comfortable with but you also could go with Linux mint or Fedora both of which don't have snap.

For AI I'm less experienced but I would use containers as that will make the setup much nicer.

[–] CosmicTurtle@lemmy.world 2 points 9 months ago (6 children)

Two GPUs? Is that a thing? How does that work on a desktop? Honestly, if it wasn't for my curiosity into AI, I'd just go with the onboard video though given my need for specific resolutions, I find comfort in having a dedicated card.

I've been using ubuntu exclusively for 10 some years and don't use snap at all. tbh, not even sure what snap is.

If it's not apt, then I don't use it.

[–] possiblylinux127@lemmy.zip 2 points 9 months ago

You do use it as a bunch of snap packages automatically install the snap instead.

For Nvidia I still think passthough is the best option as it isolates the Nvidia issues to a VM instead of the host. If you aren't going to spend a bunch of time on AI then you can just use a CPU as long as you have enough ram.

[–] fuckwit_mcbumcrumble@lemmy.world 1 points 9 months ago

If you don't need a lot of GPU horsepower besides the AI stuff then you could just use the integrated graphics and have a dedicated GPU for the AI stuff.

Having multiple GPUs in your system isn't really that special. Plug HDMI into GPU1 to make GPU1 drive your display/play games. Plug HDMI into GPU2 to have GPU2 do stuff. If you're doing AI work then you don't need anything connected to the GPU, the program just needs to know it's there and to use it.

The only thing to look out for when using the iGPU and a dGPU is that the bios doesn't turn off the iGPU if it detects the dGPU. If you have 2 dGPUs then it shouldn't matter outside of maybe the bios wanting to use the first one.

[–] jjlinux@lemmy.ml 1 points 9 months ago

SNAP is just a proprietary packaging by Canonical. Basically the same as a flatpak, but fully controlled by Canonical, store and all. Integrated graphics will give you as much resolution as most GPUs, albeit they won't be able to render at dedicated GPU speeds. But unless you're actually rendering very heavy videos, integrated, matched together with 1 or more CUDA TPUs, and YOU set the limits.

[–] CeeBee@lemmy.world 1 points 9 months ago

Two* GPUs? Is that a thing? How does that work on a desktop?

I've been using two GPUs in a desktop since 15 years ago. One AMD and one Nvidia (although not lately).

It really works just the same as a single GPU. The system doesn't really care how many you have plugged in.

The only difference you have to care about is specifying which GPU you want a program to use.

For example, if you had multiple Nvidia GPUs you could specify which one to use from the command line with:

CUDA_VISIBLE_DEVICES=0

or the first two with:

CUDA_VISIBLE_DEVICES=0,1

Anyways, you get the idea. It's a thing that people do and it's fairly simple.

[–] grue@lemmy.world 1 points 9 months ago

Two GPUs? Is that a thing? How does that work on a desktop?

GPUs these days aren't like your old Voodoo, with its daisy-chained VGA port and one-way, fixed-function graphics pipeline. They can actually send the results of their calculations back to the CPU over the PCIe bus instead of only out to the monitor!

(In all seriousness though, you don't actually need two GPUs.)