cross-posted from: https://lemmy.ml/post/24823173

Hi folks, looking for a bit of steer to get off the ground with self hosting. My goals to start with are pretty straight forward:

  • I want to set up Home Assistant to move my smart devices off the cloud and fully contained within the walls of my home.
  • I want to set up my own little Pixelfed server for my family’s use, along with some other federated socials.

From what I was looking at, I think my easiest route to doing both of these things is with a Home Assistant Yellow (built-in Zigbee and Thread system) with a Raspberry Pi 4.

I’ve never done anything like this before but I’m interested in learning. If anyone more experienced has any insight or direction, I’d really appreciate it! Cheers!

  • K3CAN@lemmy.radio
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 day ago

    No reason to bother with a Pi unless you need the GPIO for something. You can do more with a Lenovo Tiny or SFF Dell.

    • Korhaka@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      4 hours ago

      Can you get those as cheaply though? Can understand getting something other than a pi as you don’t need the GPIO but are there any good alternatives that are cheaper? If not may as well go for the pi

      • K3CAN@lemmy.radio
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        It’s been a long time since Pi’s were competitive on price.

        You can get a used Lenovo Thinkcentre for $50 on eBay. A modern pi is going to cost you that much for just the board, then you still need to buy a case, power supply, SD card, and then figure out some solution for storage…

        • Korhaka@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 hours ago

          Is it fair to compare new to used though? Also how about power consumption, if it’s on for 5 years each watt costs £13, so for something that will be on a long time power is actually quite an important consideration

          • Blisterexe@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 hours ago

            as i see it you can get an n100 mini pc with a 6w tdp for as much as a 8-16gb rasberry pi 5 kit

            • Korhaka@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 hour ago

              Typically how close is the TDP of the CPU to the full system power draw? Can see a few refurbished on ebay that don’t look too bad

              • Blisterexe@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                15 minutes ago

                looks like the total power draw of an n100 mini pc is 8-27 watts total, while the pi is 4-9 watts but it has a faster cpu, better video decode, vastly better gpu and better compatibility, being x86.

                Ultimately the decision is up to you, but i think that outwheighs the higher power costs.

          • K3CAN@lemmy.radio
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 hours ago

            The slightly lower power draw pi5 vs a Tiny will eventually make up for the higher initial cost, but you can save more by turning off lights when you leave a room or skipping a round at the bar.

            In my opinion, the wider software compatibility, better processing power, and expansible RAM and storage options far outweigh the eventual theoretical savings.

            That said, if you need the super small SBC form factor or GPIO pins, definitely go for a pi. They absolutely have their use cases. I have 4 or 5 of the 3B and 3B+, and have used them on-and-off for a variety of tasks over the years.

  • SK@hub.utsukta.org
    link
    fedilink
    arrow-up
    16
    ·
    2 days ago

    If not a Pi, try to go for those (used)mini PCs, they will allow you a bit more power than a Pi and cost just about the same. Then get docker on it and you’re all set for easy deployments.

    And look up homelab youtubers, they have some good tutorials for beginners. thats where i started. Jim’s garage would be my recommendation, especially his older videos about hardware, security and networking basics. You will need to learn these to keep things secure.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 days ago

      The Pi needs to stop being used and recommended for everything under the sun. Even its power consumption isn’t competitive.

      • mesamune@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        It was :(

        My pi 4 is right on the cusp. 3 B+ was the best when it came to no dongles and power. Now its taking about the same power as a mini PC and you have to by the enclosure, fans/heatsink/dongles/etc…etc… I suppose you can still buy the old pis but man I miss when that was the form factor they were going for.

        I bring over my 3/4 for hacking projects all the time. But I cant justify the 5 without looking at getting a mini pc for 10$ more and it comes with a hard drive ment to last longer than an SD.

    • Shadow@lemmy.ca
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      This. Go pick up something like a used Lenovo Tiny. You’ll get way more power and flexibility

      • Sai@lemmy.mlOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Thank you both, got similar advice on the original post on going more mini pc route! Can’t say I’ve done much research on them, but will certainly take a look using the Lenovo Tiny as a bench!

  • tofuwabohu@slrpnk.net
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    You got quite good answers already, here and in the other thread.

    My suggestion is to not start with pixelfed but something else (simple stuff like dokuwiki, you can use it to document your stuff while you’re at it) to get an understanding of the whole process (running the service itself, making it available to the internet after hardening your infrastructure a bit etc).

    Also, if you’re not settled for how to do it exactly, give Docker a try. There’s a reason it’s popular among selfhosters!

    • Sai@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Yeah I’ve been doing some reading and have seen Docker mentioned a good bit. I think I just needed some goals to start with, I’m sure I’ll take a roundabout route to get there and all some new goals once I have those two done!

      When you say “hardening my infrastructure” you mean suring up the security, yeah? Also something I need to add to the list to learn about!

      • tofuwabohu@slrpnk.net
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        Yes! Mostly having a plan on how to make your service reachable in the internet while keeping the rest of your local stuff shutdown.

        Many people recommend cloudflare, but I don’t think it’s necessary. If you get a public IP from your ISP, it’s relatively easy with dyndns. Personally, I have a virtual machine running nginx as a reverse proxy and configured the router to forward port 80 and 443 to that machine.

        • Sai@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          Cool! Good to know! Will definitely be back to this post to follow up once I make some prog!

          • ikidd@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            20 hours ago

            Try to stay away from exposing applications via proxy or port forwarding. Learn how to use Tailscale and use applications via VPN instead. It installs on any pretty much any device, so it’s not difficult to keep everyone behind the walls and not leave any backdoors for the barbarians.

            • Sai@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              18 hours ago

              Thanks! Any trusted resource you’d recommend (text or vid) to learn more on the topic?

              • ikidd@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                18 hours ago

                Awesome Open Source youtube channel isn’t bad. He’s fairly good at explaining a lot of the concepts. I wouldn’t say I’d use everything he recommends but he gives you enough info to make some judgement calls.

                I’d also highly recommend the Selfhosted podcast from Jupiter Broadcasting. Alex, the main host is with Tailscale these days, but don’t let that put you off, he’s been doing the podcast (and recommending Tailscale) since long before he started working with them. I imagine there’s a YT channel for the show, but I’ve only ever listened to the podcast.

                Also, 2.5 Admins from Late Night Linux group of podcasts has Jim Salter and Alan Jude, both long time sysadmins and developers that have a lot to talk about that’s of interest to self-hosters and professionals alike.

                I’d also highly recommend getting boned up on basic Docker usage, and would point you towards starting right from the beginning to use docker compose with local bind mounts, and ignore these one-line docker commands to start containers. There are helper apps like Lazydocker to assist using Docker from the command line. While you can use GUI apps like Portainer, honestly you’ll just end up more confused than pasting stuff into a compose file and watching it with Lazydocker.

                And feel free to ping me if you get confused, I’ve helped a few people sort out what they want to accomplish and point them the least-effort direction, or at least what I consider such.

                • Sai@lemmy.mlOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 hours ago

                  Holy moley!! Seriously, really appreciate all those resources and the time it must have taken to write that!! Super excited to get stuck into this so will absolutely be making my way through all of these!!