10
submitted 1 year ago* (last edited 1 year ago) by backhdlp@lemmy.blahaj.zone to c/selfhosted@lemmy.world

Not something that would have to be on all the time, but more something that can be off overnight. This question feels like it has an obvious yes/no answer that I'm missing.

Edit: pihole was a bad example

top 21 comments
sorted by: hot top controversial new old
[-] scrubbles@poptalk.scrubbles.tech 10 points 1 year ago* (last edited 1 year ago)

Simple answer, no.

Long answer, you're going to get annoyed with it on your main machine, things like pihole will have all of your network traffic routed through it, they'll need to be constantly on. Plus with self hosting it's just better to have the server/client setup, you'll thank yourself later.

If cost is a factor, look into an old/used PC, I have old PCs from 10 years ago with linux servers running on them.

If power is a factor, look into a simple raspberry pi, or I like the potatos as well (found on Amazon)

[-] EncryptKeeper@lemmy.world 1 points 1 year ago

Pihole will have all your DNS requests routed through it at least, not all your traffic. But of course without DNS not much traffic is going anywhere anyway.

[-] rcv@lemmy.world 7 points 1 year ago

I really like having separation of duties between my main laptop and my home servers. I’m constantly screwing around with my laptop and I really don’t want eg a laptop reboot to screw up my phones ability to resolve DNS.

My home servers sit in the garage and rarely get touched unless I’m doing some serious maintenance.

[-] porksandwich9113@lemmy.world 5 points 1 year ago

From experience I would say avoid this. I started my homelab this way. First it was a plex server just so 1 family member could locally stream movies without me having to copy it to a flash drive. Then another family member saw it, so it was 2, then 3. Less than a year later I have ~10-15 regular regular streamers and I can't play video games on my computer from the hours of 4PM to 1AM because my CPU was being hit so hard.

Eventually I built a new gaming rig, pulled out my GPU. Turned the old machine into a full time server and gamed on the new machine.

[-] jws_shadotak@lemmy.world 1 points 1 year ago

Exactly the same thing I did. Now I'm looking to upgrade my server PC cus it's still running an i5-4690K and struggles if anyone needs transcoding.

[-] porksandwich9113@lemmy.world 1 points 1 year ago

Haha that sounds familiar. My plex server is on a 4770k and my unRAID server is on a 4790k. Finally getting parts to decommission the 4770k.

[-] SamSpudd@lemmy.lukeog.com 4 points 1 year ago

For something such as PiHole, your main machine may be overkill honestly. It can run on literally potatoes (or raspberries). That being said, if the price of keeping your machine on is not an issue, it's perfectly reasonable to run something on it whenever it'll be needed. If possible, potentially a smaller computer like a Raspberry Pi may work for this, or even a small online VPS (cloud server).

[-] TCB13@lemmy.world 4 points 1 year ago

No. It will become a pain. For 100$ you can get an SBC or, better yet, a second hand HP Mini computer with 6-8th gen i3/i5 CPU that is most likely enough for your needs.

[-] EncryptKeeper@lemmy.world 2 points 1 year ago

It would make sense to host something on your main machine if your main machine will be the only machine that needs to access it.

If you have any other devices that will use that hosted service, imagine how annoying it will be to try and use it, forget that you didn’t turn your main machine on yet today and you have to get up and go turn it on. And for what? What positive benefit would you get to counteract that inconvenience?

[-] DataDreadnought@lemmy.one 2 points 1 year ago

I assume you will be using docker and this is a nice security tool to have that cleans PDFs https://github.com/freedomofpress/dangerzone

[-] backhdlp@lemmy.blahaj.zone 3 points 1 year ago

Wait how do PDFs relate to this?

[-] 0xD@infosec.pub 0 points 1 year ago

I think they replied to the wrong post - there was another question somewhere about a safe PDF reader.

[-] BigVault@kbin.social 1 points 1 year ago

I’ve got 2 pihole instances in my home, one on my Unraid server in a Debian VM as a backup in case the main one goes down.

The main one is running from a cheap Igel M340c thin client I bought off eBay for around £20 ($25) running Ubuntu Server.

Cheaper than a Raspberry Pi at the moment and perfect for running a Pihole on.

If you want something cheap, consider a used thin client machine.

[-] GustavoM@lemmy.world 1 points 1 year ago

If your "main machine" is a Orange Pi 5 plus... then why not.

[-] tarjeezy@lemmy.ca 1 points 1 year ago

If any other device on your network, such as your phone, exclusively uses pihole for DNS, they won't be able to resolve web addresses when your computer is off - effectively cutting off internet access. Pihole should really be running 24/7 to avoid complications.

[-] tinwhiskers@kbin.social 1 points 1 year ago

For the love of God, no! It ain't a host if it ain't up. This will just end up being very annoying.

[-] Froyn@kbin.social 1 points 1 year ago

It would make sense if you're using your main machine to test the waters with to see if it's worth getting invested.
So your pihole as an example would work as follows:

  1. Install Docker.
  2. Follow the docs to install the container/image/etc. for pihole
  3. Change your home router's DNS entries to now START with your main machine.
    --Your main machine goes offline for the night, your home router uses the secondary as does everything else that's now been taught by DHCP to use your main machine for primary DNS.
  4. Make your call and break it all back to where it started.

With the primary DNS being a "local", I can't imagine it taking that long to realize it's offline and change to the secondary DNS on most devices. Make sure you set your "main machine" to a Static/DHCP Reserved IP on the home router, as a good general practice.

Other things I self-host are media related. I like to watch media from bed instead of in front of the computer. I turn my computer off when I'm not at it.
I could see if you were like hosting a local repository maybe. Like you want that whole "self-hosted" GitHub experience. That would be a decent use case for main machine hosting. Or VMs for testing different environments.

[-] boothin@kbin.social 1 points 1 year ago

Just fyi how a client handles multiple DNS servers might not always be you expect and just depends on how it was implemented. Some clients can just send a DNS request to all DNS servers at once and take whatever responds first, essentially randomizing which DNS server gets used

[-] Froyn@kbin.social 1 points 1 year ago

And a local will always respond faster than non-local, unless that local is turned off.

[-] immibis@social.immibis.com 1 points 1 year ago

@backhdlp @selfhosted What is going to depend on the thing you're hosting? If you are browsing the web on your main computer, through an ad-blocking proxy on your main computer, obviously it is fine for the proxy to go away when your main computer is off. But if you want to browse the web on your phone through that proxy when your computer is off, it won't work. If you want your phone to stop using the proxy when your computer is off, that's going to end up being a pile of duct tape.

as the name implies pihole is often installed on a Raspberry Pi which is left runnign 24/7. You may consider getting one, even an older model. It's a perfectly cromulent computer. Note: There are also non-Raspberry Pi's which might be cheaper - the generic term is "single-board computer" or SBC.

this post was submitted on 05 Jul 2023
10 points (81.2% liked)

Selfhosted

38688 readers
158 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