WYGIWYG

  • 1 Post
  • 426 Comments
Joined 1 year ago
cake
Cake day: September 24th, 2024

help-circle
  • Everything you expose is fine until somebody finds a zero day.

    Everything these days is being built from a ton of publically maintained packages. All it takes is for one of those packages to fall into the wrong hands and get updated which happens all the time.

    If you’re going to expose web yourself, use anubus and fail2ban

    Put everything that doesn’t absolutely need to be public open behind a VPN.

    Keep all of your software updated, constant vigilance.


  • When I started with it, I looked through references all over and just felt f’ing lost, and I do this kind of stuff all the time. I am intimately familiar with AWS and Azure, but setting K8S up is just very different than the normal stuff we’re used to. I’m big on installing a package and screwing with it until it works, but this doesn’t work like that.

    At the risk of being criticized here, and I’m very sorry if you’re strongly opposed to AI, consider asking ChatGPT or Copilot to guide you through setting up Kubernetes step by step. Out of desperation, I figured I’d give AI a shot, and for the most part, it was really great at teaching it to me.

    Ask it to give you the different options for setting up Kubernetes on your home lab (there are numerous ways to do this). You can save a lot of steps by using something like Rancher (k3s), which is a simplified version, but I prefer starting with the official kubeadm first. It’s harder, but it gives you a better feel for what’s happening, and it’s more capable and closer to what you’d experience when crafting a production deployment.

    Indicate your level of experience in the next prompt and specify which systems you’re familiar with so it can tailor training to your existing knowledge and play to your strengths. Ask it to make a lesson plan first, and then pick what items you want it to walk you through. If anything feels weird or you have questions, stop it and ask away. You’re working on something from scratch, so there’s little to lose if it gets something wrong, but honestly, teaching technical things with tons of documentation available is probably the best use of LLMs that has ever existed.

    If you decide against AI, focus your research on Docker cli, Kubeadm installation (the control plane/controller) and creating/joining nodes, persistent storeage and networking, K8S Namespace, then pod deployment. Complicated parts that might hang you up are getting logs from PODS that die on startup, and getting interactive prompts in a cluster are a little different than Docker (have to specify namespace)

    For persistent storage, you then have numerous options. For a homelab, I like Longhorn; it’s a RAID-like system that stores data blocks across the nodes, and it easily backs up to S3 if you want it to.

    For homelab learning and testing, I just crapped out a Proxmox and started 3 VMs, setup kubeadm on the control plane and then joined two nodes, then spent I an hour getting NTFY to run in it for the first time, I really should have done a python hello world, NTFY is fiddly. But, it’s super fun to stop a VM and watch the app come back up like nothing happened.

    Once you get a base system up, whatever you choose, do check out https://www.ansibleforkubernetes.com/

    Jeff Geerling did a bang-up job on the book, and it supports his cause. It just doesn’t go into the detail you need to get started with k8s.





  • the explicit design goal

    IMO, it’s a bad goal. Not that decentralized is a bad goal, but dictating the amount of decentralization will decimate wide adoption.

    A server for every community is also a Mastodon goal that never really happened. Sure there are some out there, but the general public doesn’t want that. It’s a waste of compute resources to run a 24x7 server for every community. It’s a problem of scale. I get the decentralized point, but I think it’s going to utterly fail at widespread adotion if it needs a technical caretaker and a $20 a month bill evey time a zipcode wants to sell things. It migth work well in Germany, it’s not going to work well in most places.


  • I’m just going by what’s said here because i’m not about to go through installing it to find out.

    So every town that wants to sell things needs to host their own instance? And make sure that their instance doesn’t federate with other towns that are ‘too far away’?

    edit:

    OK I read the readme.

    Why not just setup communities on the server as locations? Why is there a need to install another server for every location that wants to sell things? Certainly one server could handle thousands of locations.





  • Ive been using Unraid for years.

    I am fully capable of running a Docker solution and setting up drives in a raid configuration. It’s more or less one of my job duties so when I get home I’m not in a hurry to do a lot more of that.

    But Unraid is not zero maintenance, and when something goes wrong, it’s a bit of a pain in the ass to fix even with significant institutional knowledge.

    Running disks in JBOD with parity is wonderful for fault tolerance. But throughput for copying files is very slow.

    You could run it with zfs and get much more performance, but then all your discs need to be the same size, and there’s regular disk maintenance that needs to happen.

    They have this weird dedication to running everything is root. They’re not inherently insecure, but it’s one of those obvious no-nos that you shouldn’t do that they’re holding on to.

    If you want to make it a jellyfin/arr server and just store some docs on the side, it’s reasonable and fairly low maintenance.

    I’m happy enough with them not to change away. And if you wait till a black Friday they usually have a pretty good sale.

    I’ll probably eventually move to a ProxMox and a Kubernetes cluster as I’ve picked up those skills at work. I kind of want to throw together a 10-inch rack with a cluster of RPI. But that’s pretty against what direction you’re looking to head :)





  • grade school Bible class:

    Teacher: I want you all to read this passage and this passage tonight and then be ready to talk about what you think it means tomorrow.

    Tomorrow: I read those two passages. And I think they mean this. But question, I read a bunch more and I saw this kind of stuff and that kind of stuff.

    Teacher: Oh, yeah, you should just read on ahead into things. There’s a lot of stuff in there that you’re not ready for.

    Me: There was stuff in there about hearding people for doing things that don’t seem that bad. That’s not what we teach here.

    Teacher: Um, yeah, they don’t actually mean what they’re saying.

    Me: So how do you tell when they mean what they’re saying versus when they don’t mean what they’re saying?

    Teacher: That’s why you’re not ready yet.

    Me: I don’t think a book should have those kind of things in it, if it doesn’t mean them. I really don’t think the people should decide what it means or what it doesn’t mean.

    Teacher: That’s why it’s really important to go to church to learn it.

    Me: That doesn’t make it any better.

    I didn’t stay in religious school for very much longer.

    about the time I started learning that it was a bunch of religious big wigs deciding what books were going to be included.





  • Did a little digging around. It looks like they manage to get discovery judgments all the time over partial downloads, but I don’t see them actually taking anyone to court for anything less than a full file.

    Once you have the entire file available, it’s hard to shimmy around the distribution claims. Wouldn’t it be super effing interesting if everyone’s torrent client specifically picked a random block and refused to give it to anyone?

    I’m not sure it would hold up in court, but it would be interesting.