this post was submitted on 11 Oct 2024
12 points (100.0% liked)

Linux Questions

18 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

Good day people!

(This paragraph is fluff, feel free to skip) First I'd like to thanks everyone who has answered my questions thus far. A of now I'm daily driving CachyOS on my "laptop" and Bazzite on my gaming PC. I've settled on Hyprland after running with sway for a few days and have been forcing myself to solve problems and do file management using the CLI exclusively (excluding firefox for duckduckgoosing help). I've gotten semi-comfortable manipulating files, but haven't had to do anything too skill intensive yet.

On to the question! I am currently looking to set up a home server. My use case is for storing media, specifically videos (for watching) and game Roms (for playing older games on emulator). With this use case in mind, what's a good resource to learn how to get started? For those who have home servers set up with similar purposes, how did you arrive at your current set-up? What considerations should i take before, during, and after set-up?

Any feedback is greatly appreciated!

Thank in advance! Hope to hear from you all soon!

top 4 comments
sorted by: hot top controversial new old
[–] Zagorath@aussie.zone 3 points 1 month ago

For a long time, I used a Raspberry Pi running stock standard Raspbian with an external USB drive connected. I just Googled around how to set up a Samba file share, and that's all I used. Didn't really see the value in any media-specific software, myself. For me that was secondary to the LAMP stack web server, anyway.

Biggest thing I would recommend is making sure you have, from day one, a full backup of your data and any configuration necessary to read the data.

If you're thinking about wanting access away from your home network, my recommendation would be to do it by also setting up a VPN and connecting to your local network, rather than something that is directly exposed to the Internet. That is, unless you want to be able to share files with other people at ease.

[–] NaibofTabr@infosec.pub 2 points 1 month ago

I am currently looking to set up a home server. My use case is for storing media, specifically videos (for watching) and game Roms (for playing older games on emulator).

Ok, a lot of open questions still:

  • Are you looking for hardware recommendations, or software, or both?
  • What is your budget range? Tens, hundreds, thousands of dollars?
  • Do you want a straightforward solution that will just do what you want right now, or do you want a long-term platform that can grow and adapt with you?
  • How much space do you have - does the server need to be compact?
  • Will it be in your bedroom - does it need to be quiet?
  • Are you just looking to store the files, or also stream them from the server to endpoints?

If all you need is a place off of your computer to act as a file server, you can get there very easily by plugging a USB drive into a capable consumer-grade router and configuring it to provide NAS service. This cheapass WAVLINK can do that.

For those who have home servers set up with similar purposes, how did you arrive at your current set-up?

It started with networking. When you start trying to expand your home computing capabilities, at some point you will find that a basic consumer wifi router is too limiting. When that happens, I recommend looking at Ubiquiti Edge networking devices.

What considerations should i take before, during, and after set-up?

If you're ready to build a proper server, then first start with a change of perspective. Stop thinking of your personal computer as your main computer, and start thinking of it as a peripheral end-user device on your home network. Treat its local data storage as unreliable, temporary, disposable. Its computing power is important for usability, but its storage drives are expected to fail.

The server is your data's true home now. It's not just a place that you save files, it's a data tank. Anything important on your end-user systems should be automatically synced to it. The server should be up all the time, reliable, stable, and built for redundancy. The drives in the server are consumables. Every drive must have at least one backup. The power supply should have a backup too.

To accomplish this you get used enterprise hardware, something like this Dell PowerEdge T410. This has 6 3.5" HDD bays on a backplane with a hardware RAID controller. It has two CPU sockets, so you can add a second processor when your workload increases or if you get into running VMs. It has lots of space to expand the RAM as needed (up to 128GB). It has redundant PSUs. It has a dual NIC (trust me this will be useful later).

Install either TrueNAS Scale or Proxmox VE - either is a good base for home server applications, either can be used for NAS and VM host purposes. Some people like Proxmox as the primary OS with TrueNAS as a hosted VM to manage the data storage.

This platform will be long-term stable, and expandable. There are a lot more considerations, but you won't really know what you want or need until you start building something. It's best to buy something that can grow with you.

Also consider getting a basic UPS - this particular one can be connected to TrueNAS so that if the UPS detects a power outage, it will tell the server to gracefully shutdown.

Backups, and backups for the backups. Redundancy is reliability. Build for reliability before you think you need it.

Resources for learning & support:

[–] CaptObvious@literature.cafe 2 points 1 month ago

I have a Raspberry Pi 3b (I think) that handles Nextcloud just fine. It currently has an old 500 GB hard drive, but I’m about to upgrade to a 3TB. It isn’t configured for external access, but as I recall setting up the ports and domain seemed relatively trivial.

[–] tatterdemalion@programming.dev 2 points 1 month ago* (last edited 1 month ago)

Retro ROMs are usually small. Videos can get quite large though, on the order of ~100GB per movie if you are storing 4K Blurays.

I personally bought a couple > 20TB HDDs off of serverpartdeals.com and installed them in my gaming PC so now it also functions as a small NAS. Because it's only on when I'm using the PC, the electric bill is not too bad. But it's worth doing the math to see what your average kW/hour usage is. Wattage monitors are pretty cheap.

If you specifically want a lower-power NAS in a separate machine, this will require a bit more research, and they can get pricey. I highly recommend using ZFS though.

If you're OK using a cheap, low-power mini PC as a home server and/or gateway, I can recommend the BeeLink EQ12. Mine is currently running 24/7 attached to a Hasivo 2.5Gb switch with PoE powering my WiFi AP.

There are also options for connecting large external HDDs to a mini PC, but you would be compromising throughout via some SATA adapter.