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
    5
    ·
    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
      ·
      12 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
        ·
        11 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
          ·
          11 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

          • K3CAN@lemmy.radio
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 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.

          • Blisterexe@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 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
              ·
              9 hours 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
                ·
                8 hours 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.

  • SK@hub.utsukta.org
    link
    fedilink
    arrow-up
    11
    ·
    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
      10
      ·
      2 days ago

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

    • Shadow@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      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
          2
          ·
          1 day ago

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