I’m curious, what’s an item, tool, or purchase you own that you feel has completely justified its cost over time? Could be anything from a gadget to a piece of furniture or even software. What made it worth it for you?

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    15 hours ago

    A local NAS for storing all my files, especially if you consider all the value I deprived from Google and Microsoft by not engaging with their cloud bullshit. Even if you don’t, I paid like $500 CAD one single time for a 16 TB server hard drive and $300 for a consumer hard drive I’m using as an offline emergency backup. Meanwhile just 2 TB of Google Drive costs $139.99 CAD per year. I wasn’t able to find pricing for 16 TB but assuming it scales linearly (like if I had 8 2TB accounts since Google seemingly doesn’t offer any higher capacity for individuals), that would be $1,119.92 per year. Even factoring in the hard drive enclosure and the server itself, they’ve paid for themselves in literally half a year. That’s saying nothing of the kind of internet connection I would need to match the read speed of a mechanical hard drive on the local network. I could literally upgrade my entire house to 10 gigabit with the money I saved.

    • atmorous@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      12 hours ago

      Do you have any guide suggestions I can use to get it setup. Seems like a great thing overall

      • HiddenLayer555@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        I mostly just cobbled my setup together, but the main parts are a mini PC to act as a server and a USB 3 multi-bay hard drive enclosure. I bought one brand new NAS grade hard drive to store the things I can’t afford to lose, and repurposed any decently sized old hard drives I had lying around for storing stuff that already exist on the internet and that I don’t really mind losing if the hard drive dies. I also have an M.2 SSD for fast storage of files I’m actively using.

        The specs of the server doesn’t matter that much for a NAS, but my server is pretty beefy by mini PC standards because it handles all my home server related needs, not just as a NAS. If you’re only using it as a NAS with maybe a PiHole (ad blocking DNS server) instance or similar in the future, you can can either get a lower end (or refurbished) mini PC or a higher end single board computer like a Raspberry Pi 5, depending on what’s cheaper at the moment.

        I’m running Fedora Server on it with LUKS encrypted Btrfs volumes on each drive. After each bootup I have to SSH into the server and run a bash script I wrote, where I’ll enter my password and let it unlock and mount each drive. It’s clunky but I trust it more than the TPM which is proprietary. If you don’t care about encryption, you can just put a regular filesystem on your choice on the drives, and configure Linux to mount each drive on bootup by adding them to /etc/fstab.

        For accessing the NAS, I can currently only do so from the local network which suits my needs, but in the future I could also set up a VPN server that I can tunnel into from the internet to access. I use Linux for all my personal computers so this probably won’t be applicable to most people, but I mount the NAS as an SSHFS volume and simlink folders I want to offload to the server. I chose SSHFS mainly because it’s an easy way to have an encrypted link to a network share that’s already supported by default. I wanted an encrypted protocol since it would defeat the purpose of encrypting the drives if the data just goes over the network with no encryption, but again, if you don’t care about encryption you can just use NFS or SMB (more likely SMB if you use Windows, since that’s what it supports natively). This also means that my work computer, which runs Windows, can’t even see the network share because it has no SSH access to my server and even if it did, Windows doesn’t support SSHFS anyway.

        Last but definitely not least, I have one consumer grade hard drive with enough space to backup my main server hard drive and some extra, in a basic USB C enclosure. Every month I plug it in and sync the server drives over to it. This means if the server’s main hard drive dies, I accidentally rm -rf the server, I get one of the super rare Linux ransomwares, or my dog knocks the drive enclosure down, I don’t lose all my data.

        This is probably way overkill in some ways and desperately deficient in others. For anyone else I’d definitely recommend picking a ready made open source NAS OS, which will usually have excellent and beginner friendly community made documentation, and support for Windows clients through SMB. I can’t recommend one myself because I don’t use them, but I’m sure others can.

      • 18107@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        I’m using an old thinkpad with Ubuntu Server as the OS. Almost any OS will do, but Ubuntu server has a single button to install docker during the OS install, so it’s easy.

        I’m using docker compose instead of docker so that I can look at and update any scripts, and don’t have to remember anything. For the file sharing, I’m currently upgrading from Samba to Copyparty - the best software I have seen in a long time.

        I’m also using WireGuard and Syncthing to duplicate the storage to an identical laptop in a family member’s house, rsync for weekly backups, and calendar reminders to do a monthly offline backup (automated with a script except for remembering to connect and disconnect the external drive).

        I doubt you need all of this, but an old laptop with docker has so many options that you might start adding more stuff just because you can. I’ve also added HomeAssistant, Immich, and even a Factorio server to the same laptop using docker.