Latest / Talk Python To Me / #546: Self hosting apps for Python people
Transcript
- 0:00The cloud is convenient, until it isn't.
- 0:02You upload your photos, you sync your contacts, you click through the cookie banners, then prices go up, or you read about the family that lost their entire Google account over a medical photo sent to their doctor.
- 0:12At some point, the question shifts from, why would I run this myself, to why aren't I?
- 0:18My guest this week is Alex Kretzmar.
- 0:20He's the head of DevRel at Tailscale, the longtime host of the Self-Hosted Podcast, and co-founder of LinuxServer.io.
- 0:27We cover what self-hosting really means in 2026, the apps worth running yourself, like Immich and Home Assistant, why Docker Compose ties it all together, and how Tailscale lets you reach any of it from anywhere without opening a single port.
- 0:41If you've been thinking about pulling your digital life back behind your own walls, this is your roadmap.
- 0:46This is Talk Python To Me, episode 546, recorded April 27th, 2026.
- 0:53Talk Python To Me, yeah, we ready to roll, upgrading the code, no fear of getting old, async in the air, new frameworks in sight, geeky rap on deck, Quart crew, it's time to unite, we started in pyramid, cruising old school lanes,
- 1:08had that stable base, yeah, sir.
- 1:09Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 1:14This is your host, Michael Kennedy.
- 1:16I'm a PSF fellow who's been coding for over 25 years.
- 1:20Let's connect on social media.
- 1:21You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:25The social links are all in your show notes.
- 1:28You can find over 10 years of past episodes at talkpython.fm, and if you want to be part of the show, you can join our recording live streams.
- 1:35That's right, we live stream the raw, uncut version of each episode on YouTube.
- 1:40Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:44Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:48Temporal is hosting their yearly conference, Temporal Replay.
- 1:52Join your peers at Replay, the conference on orchestrating durable workflows and agents.
- 1:57May 5 to 7 in San Francisco.
- 1:59Visit talkpython.fm/temporal dash replay and use the code TALKPYTHON75, all one word, all caps, to save up to $449 on your ticket.
- 2:10Alex, welcome to Talk Python To Me.
- 2:12Well, thanks for having me.
- 2:13This is Comfy Surroundings. Hello.
- 2:15I'm really excited to be talking about self-hosting, something I have talked around on the podcast a little bit, and I had the Home Assistant guys on for a while long ago when Home Assistant was this little boutique thing that people might find interesting.
- 2:29Now it's kind of blown up, but I'm really looking forward to talking about digital sovereignty, running your own apps, not being dependent on huge tech companies for every little thing, and just the joy of finding something in open source
- 2:44or just out there and going, hey, what if I just run that myself?
- 2:48And so I thought of Alex, thought of you, and I said, hey, we got to talk about this.
- 2:52Great, yeah.
- 2:52Well, thanks for having me.
- 2:54Yeah, you bet.
- 2:54So before we dive into all those things, give people a bit of a background about yourself.
- 2:58Yeah, well, I'm Alex.
- 2:59I, as you perhaps can tell from the accent, originally hail from the UK.
- 3:03I live in North Carolina these days, though, for my sins.
- 3:06And I work for Tailscale.
- 3:08I head up their DevRel department and primarily make YouTube videos for them.
- 3:13You know, it's an interesting company to work for because it's all product-led growth.
- 3:18So my job is to really get people enthused and excited about the product and all the interesting ways in which they can access their stuff remotely.
- 3:26And then, I don't know, people bring it to work and that's how the company makes money.
- 3:31So I get paid essentially to make YouTube videos about hacking on self-hosted applications.
- 3:36And I still don't quite know how that happened.
- 3:39I think you guys over at Tailscale are doing a great job.
- 3:42We're going to go into it later when we get into sort of the security and accessing stuff of all the self-hosting things.
- 3:48But I started using Tailscale a couple of years ago and yeah, it's fabulous.
- 3:52So very nicely done.
- 3:55So some other stuff I've done, I used to do a podcast called Self-Hosted, wrapped that up last year.
- 4:00But I do a new one now called Bitflip with a few of my buddies.
- 4:03And again, from the self-hosting universe, you can find out more about that at bitflip.show.
- 4:07I hope some self-promotion's okay.
- 4:09But please, yes.
- 4:10No, that sounds great.
- 4:11Because I was a little disappointed to hear that you shut down Self-Hosted, the podcast, because I was just getting into it.
- 4:16And then, so you're back.
- 4:18Yeah, we did it.
- 4:18How does it differ?
- 4:19Well, not much really.
- 4:21So the weird thing was about Self-Hosted, and I don't know if you felt this with a show with Python in the name, but I kind of felt a little bit limited by the title because I tend to approach things from a very pragmatic angle.
- 4:34We were just talking before we pressed record about how important Linux and open source and all this kind of stuff is.
- 4:41And yet I'm using a MacBook to record, not Linux, because it's just bulletproof reliable for media applications.
- 4:47And there are all these little compromises we make all throughout our digital lives.
- 4:50And so Self-Hosted as a movement, particularly in the subreddit actually, is very opinionated.
- 4:59And unless you're doing absolutely everything, lock, stock, 100% yourself, there are some people who say, well, you're holding it wrong.
- 5:06You're not doing it properly.
- 5:08My approach has always been, it's okay to have DigitalOcean run a VPS for me, but I've still got root to that VPS and I am hosting my own website.
- 5:17I'm self-hosting my own websites.
- 5:18But to some people that definition doesn't sit right.
- 5:21And so- You got to be running on a Raspberry Pi in your basement.
- 5:25If that's not the way it is, it's not true.
- 5:27Right.
- 5:27And we all know that there are just limitations to doing things, like maybe you're moving house and so your website would be offline for two weeks whilst you move house.
- 5:36That's probably not okay.
- 5:38Or there's a storm in your area or a water pipe bursts or like any number of fates can befall things in your house.
- 5:45And I'm not saying these things can't happen to a data center, but there are just mitigations in place between, you know, even just things like ISP pairing and like the data center is probably in the middle of an internet exchange building, whereas my house definitely is not.
- 5:58So I kind of wrapped up the self-hosted podcast just a little bit because I felt like, I don't think I feel this way anymore, but sort of 18 months ago when we wrapped it up, that self-hosting had, we kind of said all we needed to say and that as a movement,
- 6:12it was just kind of bubbling away in the background and those that had found it were going to find it and it was just sort of ticking over.
- 6:18But I don't know, self-hosting is all the line trendy these days.
- 6:22I think I heard Linus on the WAN show on Friday literally saying that building a NAS is trendy.
- 6:28And I'm like, what?
- 6:29Is it?
- 6:30Okay, cool.
- 6:32Well, I'm here for it.
- 6:32Yeah, I'm here for it as well.
- 6:34And I'm glad to hear you're still carrying on with the podcast under a different banner.
- 6:37Well, the reality is that a lot of this stuff, like I said, like I do for Tailscale and for Bitflip now is this is stuff I'm doing anyway.
- 6:45Like my personal YouTube channel as well at KTZ Systems.
- 6:49Like I just, I'm just always like, just out of shot over here.
- 6:52There is a desk covered with like five of those little Lenovo mini PCs that I'm putting into a little Proxmox Ceph cluster because I woke up last week and my home assistant was down because my little Minisforum MS-01 had lit itself on fire in the middle of the night.
- 7:07And I found, ah, where's a single point of failure?
- 7:09I can fix that with some clustering and high availability and so the rabbit hole continues.
- 7:14Yes, I love that you have a high availability on your home network.
- 7:18I'm working on it, which is another story.
- 7:20But so it turns out these little Lenovo PCs, you can pick them up for about $150 or so.
- 7:27Even today, even in the hardware apocalypse that we're going through.
- 7:31These, you know the ones I mean, like the little one liter PCs, right?
- 7:34Usually bolted onto the back of a monitor in an office or something.
- 7:37And you can pick those up for about $150 and they will run every self-hosted app you could possibly throw at them.
- 7:43In reality, certainly just for individual use, they are absolutely all the average person needs as a home server.
- 7:50And so one of the things I like to do with them is put what's called Proxmox on it, which is a hypervisor that lets you run virtual machines, something called LXCs, Linux containers, as well as Docker.
- 8:01We love us some Docker, I understand.
- 8:04Basically, if it doesn't run in Docker, I don't run it.
- 8:07I'm just going to trigger some people in the audience, I'm sure.
- 8:10You know what?
- 8:10I'm with you.
- 8:11When I go and look at one of these things that is potentially self-hosted, I'm like, well, where's the Docker Compose file?
- 8:16Otherwise, I'm not sure we're going to be continuing down this path.
- 8:19I mean, you Python people know all about standardized packaging formats and stuff like that.
- 8:23Like the prevalence of pip and then these days, uv, of course.
- 8:27Like, you know, these things matter.
- 8:29They're like, how users round off those rough edges of how it gets from my keyboard in my lab to your computer and wherever you are.
- 8:38Docker kind of closed that last 10%.
- 8:40I mean, a lot of the primitives of Docker existed well before, like C groups and namespaces in the Linux kernel.
- 8:46All that stuff existed for years before Docker came along.
- 8:50All they did really was provide a standardized packaging format, which is really just a tarball, and a standard way of building those tarballs with a Docker file, like a recipe.
- 8:59That was all they did, and provided a little bit of plumbing and networking.
- 9:02Like, we just ignore all the technical details they did.
- 9:05But essentially, they just closed that last 10% of usability, and suddenly, me, as a computer science student, could run any application in the world without having to dive into Systemd and init scripts and database migrations
- 9:20and blah, blah, blah, blah.
- 9:21It was just...
- 9:22Yeah, complex networking, attached volumes.
- 9:24Like, there's a lot of stuff going on there, yeah.
- 9:26Yeah.
- 9:26Docker is life in this house.
- 9:28A long time ago now, I co-founded a website called Linuxserver.io.
- 9:32I don't know if anybody in the audience has heard that, but it's the largest, I believe, sort of open-source containerization movement project on the internet, and that was born out of the fact that sort of 10, gosh, yeah, maybe 12 years ago
- 9:45that Docker was pre-1.0, so it was very sort of nascent at that point, and it was...
- 9:52There was just...
- 9:53There were no standards.
- 9:54Like, the readmes were all over the place, or if there even was one.
- 9:58There were no sort of standardized base images.
- 10:00People hadn't cottoned on to, like, supply chains, and, you know, today it's a hot topic, but sort of back then, it was, oh, if it runs, I'm happy, you know?
- 10:09So Linux Server was sort of my attempt, our attempt, I should say, at fixing some of those issues, and, you know, we packaged up media server apps back in the day, like Plex, and some of the other slightly less salubrious
- 10:23applications you might find on the internet, as well as a bunch of other self-hosting stuff, which we should probably get into talking about some of the apps.
- 10:32Yeah, absolutely.
- 10:32Well, to kind of put a bookend on your introduction, I do just want to quickly ask you about your racing and VIR and stuff like that.
- 10:43You know, and I was looking to contact you, I was going through your About page, and I saw a car racing around a racetrack, and I thought, well, can't not talk about that.
- 10:51I've had folks from Formula One and from NASCAR on the show before, and I'm a big fan of these kinds of things.
- 10:57Yeah, I do too.
- 10:58So, that's one of your hobbies?
- 11:00That's pretty awesome.
- 11:01Yeah, I've followed Formula One since, well, I remember sitting on my dad's knee as a kid watching Damon Hill, Nigel Mansell, go around Silverstone, so it's been a while.
- 11:12There's obviously a new crop of F1 fans, which is amazing, thanks to the Drive to Survive stuff, but I've followed it for years.
- 11:19I just enjoy watching, I just enjoy watching the sport.
- 11:22It's like a nerd soap opera in a way.
- 11:26Not a fan, honestly, of these new regs, though, with the sort of the super clipping and all this kind of stuff.
- 11:32It'd be interesting to see what happens when we get to, where's the next one?
- 11:36Miami, I think.
- 11:37Yeah, I believe it is Miami and then Canada.
- 11:39So, for people who don't know out there, Formula One is called Formula One because there's one formula on how to build the cars, but then all the teams generally, almost from scratch, build their cars.
- 11:49And every couple, every four or five years, they're like, okay, we're completely doing it differently.
- 11:54And so, this year, they've completely done it differently and there's a lot of controversy.
- 11:58I don't know, it's interesting, but.
- 12:00Yeah, they've gone for like this 50-50 split between the combustion engine and the battery power, but the batteries can't harvest enough energy every lap.
- 12:09So, I don't know what genius thought of that, but, so they get halfway around the lap and they lose half of their horsepower, which can mean you've got closing speeds between cars of sort of, I don't know, 50 to 100 miles per hour.
- 12:22And we saw in Japan in the last race, quite a bad accident as a consequence.
- 12:27Right there in Spoon, it wasn't pretty.
- 12:30I know all of the electric stuff and like the hybrid things and IndyCar and even way, way more so in Formula One is for environmental friendliness.
- 12:39And hey, I drive an electric car, I love electric cars and I'm all about caring about the environment and stuff, but the 20 cars driving around the track is nothing compared to the 300,000 people that took airplanes to get there.
- 12:51And then when they ship the cars on planes halfway around the world, like the fuel spent when they're racing, it has nothing to do with, you know, it doesn't even register on the number of the environmental impact of that.
- 13:02So I don't know, I kind of long for the Damon Hill days with like, Oh, me too.
- 13:06Fast engines, you know.
- 13:07On our honeymoon, actually, my wife and I, we ended up in Milan on race weekend, totally by accident, genuinely by accident.
- 13:15We were booking this like interrail trip around Europe and my itinerary landed us in Milan on race weekend.
- 13:21I didn't actually know at the time and all hotels for that weekend spiked.
- 13:25They're like two or three exiting costs and I'm like, what's going on?
- 13:28So I just typed Milan events, September, whatever.
- 13:31Anyway, turns out, so we went to Monza and I'll never forget we were stood at, it was the Iscari chicane so it's on the opposite side from the start, finish straight and the noise, I think there were V8s, I don't think there were V10s, I think there were V8s then but just the noise of them sitting on the grid
- 13:45waiting to go, it was like a bunch of angry wasps and you could hear it and it's half a mile away.
- 13:52Amazing, amazing.
- 13:53We lost something when they went to the V6 turbo hybrid stuff.
- 13:56100%.
- 13:57All right, last bit, I mean a lot of people are fans of F1 and racing, not many of them end up on a race track.
- 14:03Oh yeah, that's a whole different kind of fresh.
- 14:05Yeah, so I've been into, I've owned seven Volkswagen Golfs over the years, culminating in the Golf R a few years ago and I just had to take it on a track.
- 14:17Like in England I went on this run what, we call it a run what you brung track evening and I went to Brands Hatch and I literally turned up without even a helmet, without doing any prep or whatever and they just let me untrack.
- 14:29Just, I couldn't believe it.
- 14:30And then I had the best evening of my life and then we emigrated and came here and I was like, I've got to scratch that itch.
- 14:36So I went to the internet and found out to go to VIR you have to do all sorts of training and get like instructors and it all sounded a bit much.
- 14:44But anyway, VIR is a serious racetrack.
- 14:46Like you can end up I think on the back straight in my little golf I was doing 140 on the back straight and there are moments coming up through the uphill essays at VIR where you're just like, if this goes wrong she's going to hurt.
- 15:00And in the end I ended up scaring myself a bit silly but I had real fun but there was just a couple of moments where I was like, you know, I've got a kid at home.
- 15:08I should probably, this is a young man's game or an old man's game when you've got nothing left to lose, I guess.
- 15:14Yeah, that's true.
- 15:15There's a, it's a bimodal sort of experience.
- 15:18Yeah.
- 15:19But I learned a lot like I learned how to change brake pads, brake fluid.
- 15:23I fitted a new intercooler to my car.
- 15:25I upgraded the turbo.
- 15:26I did tuning.
- 15:27Like technical stuff.
- 15:28I like learning how things work.
- 15:30Same with software, same with cars.
- 15:31It's basically just one is slightly more visceral and arguably the stakes are a bit higher if you screw up installing a turbo it can be very expensive.
- 15:40It's worse than, oh, I got to reinstall that.
- 15:43Yeah.
- 15:43Yeah.
- 15:43Good fun though.
- 15:44No, I'm sure it's amazing.
- 15:45That sounds very, very cool.
- 15:47So what a great experience.
- 15:48Let's talk the main, main topic.
- 15:51Like, I guess we've been using the word without really defining it.
- 15:54Like what is self-hosting for people who are just like, you know, they, they haven't done these sorts of things.
- 15:59I think as I, as I alluded to earlier, there's a broad spectrum of definitions to what self-hosting means to different people, depending on how tightly you hold certain beliefs around definitions.
- 16:12But for me, it means the business model that exists is feeding the open source developer or small team that built it.
- 16:21Like it's, it's not, are you familiar with Corey Doctorow and his idea of enshittification?
- 16:27Yeah.
- 16:27The idea that a company will give some, we, we've been accused of this at Tailscale and I don't think it's actually going to happen.
- 16:34the CEO at Tailscale, I have great faith in Avery's leadership, honestly.
- 16:39I know I sound like a corporate shill saying that, but I genuinely believe it.
- 16:42So, the idea of enshittification is that a company takes a bunch of money from venture capital or some other source and gives the product away.
- 16:51We saw it with Uber, for example.
- 16:53Like they give the product away at a loss leading price point to gain market share.
- 16:58We've seen it in multiple industries over the years.
- 17:00Walmart is a great example.
- 17:01They'll put mom and pop short stores out of business in the local town and then slowly raise the prices.
- 17:06Right, right.
- 17:06Once everyone's gone, it's, it's, they have no choice but to go there.
- 17:09Exactly.
- 17:10And so the idea of enshittification in software is, is very prevalent.
- 17:15We've, we're seeing it with streaming services right now where they're just gradually turning the screw, lifting the prices, pulling out shows without your control.
- 17:23All of these things have, are really boiled around one central point.
- 17:28I mentioned the business model.
- 17:29That's one thing, but really it's control.
- 17:31And do you have control over the services that are running your life?
- 17:36If you have Google in your life, you probably don't.
- 17:38If you have Apple in your life, you probably don't.
- 17:40You feel like you do, but there are countless examples.
- 17:44For example, there was one a couple of years ago where, I think this was in the New York Times.
- 17:49We definitely covered this on Self-Hosted a while ago where a mother took pictures of their kids, a medical issue of their kids, private areas, and sent it to their doctors through telehealth.
- 18:03They also sent the picture to their husband through a messaging app, which then meant that that picture got backed up to, I think it was Google Photos.
- 18:11It might have been Amazon.
- 18:12Please don't quote me on this.
- 18:13I'm just speaking from two-year-ago memory.
- 18:15And they got flagged as a CSAM issue, like a child pornography issue.
- 18:20And they had most of their digital life cancelled.
- 18:24They were locked out of their accounts.
- 18:25They were basically banned from that company.
- 18:28Might have been Google.
- 18:29Let's go with Google.
- 18:31And just the idea of being locked out of my Gmail.
- 18:34I mean, just stop and think about how much of your life is in your Gmail inbox.
- 18:37How long have you had yours?
- 18:3915 years.
- 18:39I think there's over a quarter million emails in my Gmail account.
- 18:42It's ridiculous.
- 18:43I mean, it is ridiculous.
- 18:45And extrapolate that from email to photos.
- 18:49Extrapolate that to music, to videos, to, I don't know, taxis and invoices, all this stuff.
- 18:56There are just so many different facets of our lives that we've given up to third parties that are either being used to train the next round of industrial revolution, oligarchy revolution, like AI models, or they're being used to feed an advertiser's
- 19:11bottom line and create a profile about you and who you are and what you do and who you associate with.
- 19:16Because make no mistake, when your photo gets uploaded to Google Photos, they are making a map of all the faces in that photo.
- 19:24Whether you know the person in the background or not, Google will know them because they probably have Google Photos too.
- 19:29And they can scan that Alex was stood next to Fred Smith on June the 21st, 1983.
- 19:36And like, they can create such incredibly detailed profiles about people.
- 19:41And if that doesn't bother you, self-hosting is probably not for you.
- 19:43But I don't know about, I don't know about you, but it makes me deeply uncomfortable that I'm giving up these freedoms and this privacy without really appreciating that I'm doing so.
- 19:53Like a lot of the transaction is very, what's the word I'm looking for?
- 19:58Like it's just not a fair, it's not a fair exchange of value for value.
- 20:01It's asymmetric.
- 20:02Yeah.
- 20:03Asymmetric.
- 20:03Very asymmetric.
- 20:04Yeah, absolutely.
- 20:05Totally.
- 20:05And I want to just, while we're sort of setting the stage, I just want to put an idea out there that this kind of stuff is super valuable and a good thing to keep in mind, not just for individuals, which 100% that it is, but also for developers running their software.
- 20:20Do you necessarily need to take all of your data and put it into an AWS managed service or an Azure managed service or send all of your users information through, say, Google Analytics to Google to then turn around
- 20:35a mine or to other places?
- 20:37You don't have, I feel like people think they have to.
- 20:39You don't have to.
- 20:40It almost feels inevitable, doesn't it, these days?
- 20:43That, oh, well, everyone else is doing it.
- 20:45I may as well.
- 20:46Yeah.
- 20:47We'll get the cookie banner.
- 20:48We'll put it up.
- 20:48People are used to, everywhere they go, they click the cookie banner.
- 20:52True.
- 20:52But there are entirely serviceable alternatives to almost every single proprietary service that you have.
- 20:59Google Analytics, let's start with that one.
- 21:01There's an open source app called Plausible.
- 21:03It does almost everything that Google Analytics does.
- 21:07It just, the analytics stay within your world and they're not, they're not kind of fed into the Google machine.
- 21:14And whether that's a, like, on feature parity, there's an argument to be made there about, like, well, Google's more invasive so they have more data.
- 21:22I don't see that as a plus point, personally.
- 21:25This portion of Talk Python is brought to you by Temporal and the Temporal Replay Conference.
- 21:31Previously, I've told you about Temporal's open source framework and I've had Mason Egger on the podcast.
- 21:36If you've built background jobs or multi-step workflows, you know how messy things get with retries, timeouts, partial failures, and keeping state consistent.
- 21:45This is where Temporal's got your back with their open source framework.
- 21:49And if that kind of workload is what you're building, you should definitely consider attending the Temporal Replay Conference.
- 21:53It's hosted May 5-7 in Moscone Center in San Francisco.
- 21:58Join your peers at Replay.
- 22:00Temporal's conference on orchestrating durable workflows and agents.
- 22:03You'll learn real-world patterns for reliability, failure handling, and scale from developers building themselves, including speakers from OpenAI, Replit, and Abridge.
- 22:13Check out Replay 2026 at talkpython.fm/temporal dash replay and use the code talkpython75 all one word to save up to $449 on your ticket.
- 22:25That's talkpython.fm/temporal dash replay and code talkpython75 all one word.
- 22:32The link is in your podcast player's show notes.
- 22:35Thanks to Temporal for supporting the show.
- 22:38I don't either.
- 22:39And I think this is an interesting segue to finding some of the interesting apps here.
- 22:43So I went to pull up plausible.io and I think you're right.
- 22:46I think plausible is really great.
- 22:48The one that I'm using is umami.is which is sort of a peer to plausible.
- 22:55I believe, I think you can pay for both of them.
- 22:58I'm not 100% sure about umami right now.
- 23:00Yeah.
- 23:01I don't know your ad book must be doing some hard lifting over there because plausible works just fine for me.
- 23:05You're using umami, are you?
- 23:06Yeah, I'm using umami and I looked at plausible as well and umami seemed a little more oriented towards self-hosting whereas plausible self-hosting seemed like oh, you could do it but we're kind of this like thing that we run in the cloud and you can pay for but you technically could
- 23:21and I felt like umami was like self-hosting first with, I don't even, like I said, I'm pretty sure there is a you now can pay for it as well.
- 23:28But I wanted to bring up this you, the site can't be reached because I think another interesting thing is like hosting DNS.
- 23:37So like Pi-holes, I have nextdns.io which is why I can't go to plausible right now unless I log in and tell it plausible is okay.
- 23:45Same thing for umami by the way.
- 23:48I think, what about, let's talk, let's, you're at Tailscale, let's talk networking.
- 23:52We'll get back to the use of Tailscale when we kind of wrap things up but like, do you use Pi-hole or do you use any of these sort of managed things outside just your browser?
- 24:00Well, the modern internet basically requires using an ad blocker.
- 24:03I mean, when you, I'm fortunate to work from home so I'm almost always with inside these four walls where I have an AdGuard Home instance running and my DHCP server when, whenever a device requests an IP address from the router,
- 24:18it will hand out the DNS server in my local network as the AdGuard Home instance.
- 24:23And AdGuard Home's job is to run a list of websites that it thinks are serving ads and it will block those at the DNS level.
- 24:31So simply what will happen is you will go to try and load a website and it can't load certain components of the webpage and those components happen to be adverts in this case.
- 24:40It's not 100% coverage but I'd say it's sort of in the 80 to 90% range which is still a heck of a lot better than having no ad blocking whatsoever.
- 24:49And the idea here is that a lot of these, well, first of all, adverts use a lot of bandwidth.
- 24:54They also are probably shoving down a ton of JavaScript into your browser so the performance of loading a webpage is worse.
- 25:02It's using more bandwidth, it's using more processing power and on mobile, of course, that matters.
- 25:07When I leave the house, I'm not under the umbrella of my AdGuard home instance anymore because it's running on, I don't know, a Raspberry Pi in my basement.
- 25:15And so I've got a couple of options.
- 25:16One is I can use a hosted DNS service like you do called NextDNS which basically does the same thing as a Pi hole except you pay for it.
- 25:26I don't think it's a huge amount of money if I recall.
- 25:28It's a couple of bucks.
- 25:29It's either $1 or $1.99 a month.
- 25:32It's really small, yeah.
- 25:34It seems fair.
- 25:35And the idea behind NextDNS, like I say, is that it does the same thing as a Pi hole or an AdGuard home.
- 25:41It's just a hosted service that you pay for a managed service.
- 25:44Or you can use something like Tailscale and tunnel back through your firewall remotely and set your AdGuard home as your Tailnet DNS server and then use your AdGuard home or your Pi hole from your basement that you're already running already configured
- 25:59with all of your ad lists and blah, blah, blah.
- 26:01You can configure that to be your DNS server.
- 26:03And my wife loves these sort of like mobile games like the Candy Crushes of the world.
- 26:08And they are just chocked full of ads.
- 26:10And we only really talk about it when we're like traveling because she's, oh God, I wish we were at home because then I wouldn't get adverts.
- 26:17Yeah, we'll just turn on Tailscale and lo and behold, no ads.
- 26:20You're back to good.
- 26:21I think one final little note about like running your, either your AdGuard at home or your Next DNS if you register at your router level that's really interesting is you block ads in mobile apps as well like you're mentioning or on my TV all the tracking
- 26:36the TV does is short-circuited because everything on the network is subjected to it.
- 26:42And I'm, you know, as long as these ad networks are serving up malicious ads, I don't feel bad about blocking them.
- 26:49That's another angle of course, yeah.
- 26:50Yeah, I mean, if we go to Talk Python, you know, the website, there's, ads are still there.
- 26:57Why?
- 26:57Because I'm not using some shady network to deliver it.
- 27:00I'm just sharing content and someone who happens to talk about what we're doing, you know, and so I think that that's a, I think that's certainly something worth considering, right?
- 27:10I feel like this DNS stuff is part of self-hosting at least the personal level a bit.
- 27:14It's the, it's one of the fundamentals, yeah.
- 27:18Networking is one of those things that you have to have it if you want to do anything in your house, like even, and I use my mother, who I love dearly, as the example of the non-technical person in my life.
- 27:29Even if my mum, like she orders a router from her ISP or something like that to get Wi-Fi in her house, well, she's doing networking, she doesn't realise it.
- 27:39She's getting a Wi-Fi SSID broadcast, she's getting an IP address from the router every time she connects.
- 27:45The DHCP server provides a DNS server, which is probably your ISP's DNS server by default, and they are recording all of your DNS queries and selling them to the highest bidder also, I might add.
- 27:56And so there are just so many layers to this onion, and DNS is the, just what, we have a five-year-old in the house, we just watched Shrek this weekend, hence the onion reference.
- 28:05There are just so many layers to this onion that you just, you can keep peeling it forever, and this is one of the things that I genuinely love most about Linux, open source, self-hosting, that whole universe is that this conversation, I could literally sit here for eight hours and talk to you about different,
- 28:20you know, different things, like DNS is one thing, document management is another, media streaming is another, like each of these things, they're all, they're entire industries in their own right in the real world, but in self-hosting, you can play CIS admin, you can play, you know,
- 28:35the person who's running these mega corps offline, fully just in your basement, you know, and there's no, there's no business model to feed, it's literally just open source software, the true spirit of it, running in your house under your control.
- 28:49Yeah, we're definitely in danger of going for eight hours, so, I hope not, but we could, right, we definitely could, and by way of, I think that's a perfect transition to talk about this place called Awesome Self-Hosted here, which is a Git repository and a website,
- 29:04you know, I do, Alex, I think this is going to be a bit of a fad, it's not really catching on, there's only 288,000 GitHub stars in this.
- 29:12And if you look at it, you're familiar with the Awesome Lists, of course, there are dozens of these things, but Awesome Self-Hosted, I mean, it's updated daily, like, I look at the recent Git commits and it was last updated yesterday, and there are,
- 29:27how many categories?
- 29:28There must be.
- 29:29I don't know, but let me scroll, like, there's a couple of pages of just categories of things like e-commerce, DNS, for example, analytics.
- 29:38Right.
- 29:39You want to replace Jira?
- 29:40It's in here.
- 29:41You want to replace, I don't know, a wiki?
- 29:44It's in here.
- 29:45You know, it's honestly kind of overwhelming.
- 29:49And so this speaks a little bit to one of my overall philosophies when it comes to self-hosting of find a problem in your life and solve it, like a real problem.
- 29:59Don't just contrive one just for the sake of it.
- 30:01Photos is always the universal example I go to because everybody takes photos.
- 30:05And so you want to look at something like Immich, I-M-M-I-C-H.
- 30:09And that is a self-hosted Google Photos clone, and it lives entirely on your hardware that you control.
- 30:14It has machine learning, so it can learn your face.
- 30:18It can do, you know, object detection.
- 30:21It can do basically anything that Google Photos can do, except it lives on your hardware using your files and your compute until the end of time.
- 30:30And that's an end of it.
- 30:31Like, that's as deep as the rabbit hole goes.
- 30:34I love it.
- 30:34But it also makes me nervous.
- 30:36Good, it should.
- 30:37Because the thing with self-hosting is you get to place this admin, but it also means you own the data, which means when there's an outage or a hardware failure, you're on the hook for that too.
- 30:48Yeah, I'm not super concerned about an outage for my self-hosting thing, but I am certainly concerned about an outage of a self-hosted something for my production apps.
- 30:58And when I said it makes me nervous, yeah, yeah, but the things that make me nervous are twofold.
- 31:04The first thing that made me nervous would be just backup, backup and restore, or kind of losing access to it.
- 31:11Like something that I think it takes a while, at least for me, it took a while to learn the lessons through some paper cuts, was, oh, there's a new version of this thing that I'm self-hosting.
- 31:19How cool.
- 31:19Let's see what it is.
- 31:20Docker compose pull, Docker compose up, and then it won't start because there's some incompatible migration or something that I didn't run and I got to go read the docs and it says, oh, did you upgrade from version 1.6 to 1.8?
- 31:33You can't do that.
- 31:33You got to go to 1.7 and then 1.8.
- 31:35I'm like, now I'm an admin.
- 31:37But more concerned, like I had all this data, what if I can't get it to work on 1.8, but it's like a half database transition and then neither will run and now what do I do?
- 31:45Well, the best answer to that are some of the primitives around things like ZFS and snapshots.
- 31:52So there is this concept with, so ZFS, by the way, if you're not familiar, is the Zettabyte file system and it was born out of Sun Microsystems in the early 2000s, I believe.
- 32:04It's now unfortunately owned by Oracle, but there is a project called OpenZFS which is dedicated to bringing it to the masses, to normal people.
- 32:13There are still some weirdnesses around the licensing with ZFS, so it's not included by default in every single Linux distro, but it is included in things like Proxmox and Ubuntu and you can install it on Arch and NixOS and even Unraid, I think,
- 32:27has ZFS these days.
- 32:29And so the idea here is you're using what's called a copy-on-write file system.
- 32:34Now some of these terms, I will admit, sound a little nerdy and they kind of are, but the idea behind copy-on-write is you take a snapshot at a moment in time and instead of the file system recording everything, you know,
- 32:48transactionally forever, it will only record the delta from the previous snapshot.
- 32:52And so what that means is that you can fork, you can basically fork file systems on disk and then you can mount the snapshot from three days ago as an actual file system and then restore the files that way.
- 33:05So let's say your upgrade scenario, you could restore the database from just before you did the upgrade because as a good sysadmin, you are doing the hygiene of taking a snapshot before you do the risky thing, right?
- 33:18You can automate all this stuff with scripts, right?
- 33:21And I think there's a pragmatic angle here of how much time do you spend automating versus administering versus just going outside and touching grass.
- 33:30But in the age of AI, there's really not, like it's, I installed Arch Linux last night downstairs on my gaming rig.
- 33:38I was done, I decided I'm done with Windows for gaming.
- 33:41And I thought, right, how far can Codex get me?
- 33:43You know, the OpenAI version of Claude Code.
- 33:46And I installed Arch myself and then I said, right, I want this desktop to look like this.
- 33:50I want this kind of vibe.
- 33:52I want like an Ubuntu kind of orange vibe.
- 33:55I want Wayland compositor for my display and I want it to all log in seamlessly and blah, blah, blah, blah, blah.
- 34:03I want these fonts.
- 34:04I want my fan curves to be this.
- 34:05And I just let it cook and maybe half an hour later I came back and my system was just configured.
- 34:10Wow.
- 34:10And it's amazing.
- 34:11And you can do the same thing with a lot of like, like backup script.
- 34:15You can literally say to Codex, these are my requirements.
- 34:19I want you to take a snapshot before you do any kind of Docker compose operation.
- 34:25And it will do it, whether it's via an alias or whatever.
- 34:28I don't, the mechanics don't matter.
- 34:31But the point is a lot of this stuff you can protect yourself from yourself now with so much less cognitive load than you used to have.
- 34:37You can then configure it to backup offsite to all sorts of different places.
- 34:41There's a, there's a wonderful service called ZFS.rent, which if you're not familiar is a way of, you basically send them a hard drive and they will put it into a server somewhere and you pay, I think it's $10 a month for that hard drive slot.
- 34:54And then you can replicate all of your photos encrypted over the internet to ZFS.rent.
- 34:59And it's, it's 10 bucks a month.
- 35:01And then you've got that peace of mind.
- 35:03That's wild.
- 35:04I had no idea about this.
- 35:05This is a really interesting way.
- 35:06It's a great service.
- 35:08I have several friends that use it.
- 35:09Okay.
- 35:10Yeah, that's really cool because backup is certainly one of them.
- 35:13And that, that's not just export the data.
- 35:14That's like making sure the app runs so that you can actually get to the data that's in the, you know, Postgres DB that's running in the little Docker composed network that it created when you ran it and so on, right?
- 35:24There's plenty of other options with backups too.
- 35:26Like Backblaze is a decent one, although they were in the news fairly recently for some, I don't know, they stopped backing up OneDrive folders and just did it silently.
- 35:35And I don't know, you know how Reddit likes to go, go, go in on people.
- 35:40So I don't know, Backblaze, they've been there for a long time.
- 35:42They're a pretty reliable option.
- 35:44You could also, if you want to do it fully self-hosted, Hetzner, you know, VPS provider, they have what's called a storage box, which you can usually bid on, which I think they cost somewhere typically between 30 to 50 euros a month.
- 35:56So it's not the cheapest option, but if you want that level, that amount of storage offsite, it gets expensive.
- 36:03That's just the reality of it.
- 36:04When the business model is just storage and not farming your data and mining you for advertising stuff, it turns out storage is expensive.
- 36:14Yeah, that's what you got to pay for it if you're not the product.
- 36:16Yeah, but these things have enough storage that between you and a few mates, you could probably split it up into different ZFS datasets and replicate that way and, you know, split the bill a little bit as it were.
- 36:27Are there self-hosting things that really stand out for you that you're a big fan of?
- 36:31Like apps?
- 36:32The real problem aspect is one for me, I think, that's critical to it, to the success.
- 36:37You know, I talked about photos as being one example.
- 36:40Home automation is another.
- 36:41As you said, you'd have the home assistant guys on this podcast before.
- 36:45We actually had Paulus on self-hosted a while ago and, you know, those guys, what they're doing with the Open Home Foundation is amazing.
- 36:53Again, they're eschewing the status quo of five different apps for five different ecosystems and making everything talk to everything else and it's amazing.
- 37:01And, you know, for me in this studio, for example, I've got one, two, three different ecosystems just for my studio lights and it's all brought under Home Assistant in one place.
- 37:11And so for me, that solves a real problem.
- 37:13So when Home Assistant is down, okay, it's not the biggest deal.
- 37:16I have to walk around and turn three sets of lights off.
- 37:18Okay, fine.
- 37:19But when you start to add all of the different ecosystems in your house together, like your thermostats, you know, I have a mini split up there that I control through an ESP32 with like a serial connection.
- 37:31I then have an Ecobee thermostat downstairs and so that's two ecosystems just for the climate in the house and then my garage doors are another ecosystem and so it continues.
- 37:41And so solving real problems and bringing them back behind the firewall really is the idea for me.
- 37:47Just, I don't know, it helps me sleep better at night but it's also in many cases just more convenient and less hassle.
- 37:55The unification really that Home Assistant brings is really one of the biggest because everybody's got their janky little app that they think is so special, you know what I mean?
- 38:02Yeah.
- 38:04And I don't blame manufacturers necessarily for going that route because the way the internet was designed is it's, you know, I have something on this desk, right?
- 38:14How would the manufacturer talk to it to control it through a smartphone app?
- 38:19The only guarantee you've got is that a cloud server exists.
- 38:23You can't control whether the user is necessarily on the same Wi-Fi and in fact, we've seen over the last 20 years as technology's evolved that I remember unboxing products 20 years ago that just the usability was just horrid.
- 38:35You know, there are so many assumptions the manufacturers have to make about the environment it's going to land in, the Wi-Fi situation, the smartphone it's going to run on, blah, blah, blah.
- 38:43And the only way you can really guarantee compatibility is to take control of that link and host the cloud component yourself and then have your users talk to your cloud and then have the cloud talk to the device.
- 38:55Even though I can reach out and touch the light that's up here, it has to go to the cloud first to talk to it just because it guarantees that user experience.
- 39:03I know.
- 39:03My lights that I have for my streaming setup, they don't even have on, you can't physically turn them on.
- 39:08The only way you can turn them on is over the network.
- 39:10It's weird.
- 39:11Yeah.
- 39:11Welcome to 2026.
- 39:14Exactly.
- 39:15How did we accept that that is normal?
- 39:18When did that become normal?
- 39:20I don't know.
- 39:21Now that I think about it, it should at least have an on button.
- 39:25Oh, well.
- 39:25Right.
- 39:26I know.
- 39:26So let's talk for a little while.
- 39:28Now we've sort of set the stage, talked about some awesome apps and motivation and so on, but let's talk a bit about actually how to do it because I'm sure there's, I don't know, let me throw out, I'll just speculate.
- 39:39I bet there's 30 to 40% of the people are like, oh yeah, I'll just SSH into my setup as well and then I know what to do from there.
- 39:47And there's like maybe 20% of the people are like, I know what, I know I should SSH in there and the others are like, what is SSH?
- 39:54Yeah.
- 39:54So there's a lot of hesitation, I think, because you are kind of becoming a DevOps person.
- 40:01Like you're running probably in Docker, maybe on Linux.
- 40:03It's not on your main machine, most likely.
- 40:06And then this whole backup sort of story that we talked about and restore.
- 40:09Like talk to people about some of the tech.
- 40:12It's inherently still a technical occupation and there isn't still really a great way around some of that.
- 40:19Now we're on a Python show.
- 40:21We understand that abstractions exist, right?
- 40:24Python, of course, itself is an abstraction above something else.
- 40:27There are lots of companies that will tell you and will try and sell you abstractions on top of this self-hosting layer that I'm talking about.
- 40:35Well, Docker is an abstraction.
- 40:36Linux is technically an abstraction, although let's just not talk machine code.
- 40:42Let's just deal in, let's just treat Linux as the base.
- 40:45Yeah.
- 40:45Assume you have an OS.
- 40:46Okay.
- 40:47Yeah.
- 40:47I think that's fair.
- 40:49I agree.
- 40:50You know, there are, I have a couple of, I don't know if you can see it in camera, probably not.
- 40:55I've got a couple of Zima Board 2s on test, which they sent me for review for YouTube.
- 40:59And they have a, they have something called Zima OS.
- 41:02Z-I-M-A-OS.
- 41:03Z-I-M-A-OS.
- 41:04And, you know, it's pretty good.
- 41:07Like it's a, it's a one click.
- 41:09You can, it's got a little app store in it, like you have on your phone and you can install a lot of these apps in one click onto Zima OS.
- 41:16You can connect to USB hard drive and within maybe 20 minutes, half an hour, you've got a fairly functional setup.
- 41:23Now, is it the most buttoned up, most secure bulletproof thing in the world?
- 41:28No, almost certainly not.
- 41:30But it gets you started.
- 41:31And I think that is the real key is the best way to learn this stuff is to not think about it too much.
- 41:37It's just to do it in a fairly low stakes way.
- 41:41Don't try and switch from Spotify, for example, and convert your wife and your kids and everyone in your life to your self-hosted music streaming service overnight.
- 41:52Softly, softly, slowly, slowly, catchy monkey.
- 41:54You know, it's one of those things that you're probably going to need these things running in parallel for a little while until you feel comfortable enough that when you wake up at 7am and the streaming service that you've built in your basement doesn't work and the kid can't
- 42:09watch their episode of cartoons before school or whatever, do you want to have to log in at 7am via SSH to your server and fix it?
- 42:17No, I never do.
- 42:18It turns out that's not something I want to do, but it's something I've had to do a few times because I've made mistakes either in not rotating logs properly or a disk filled up or there was a hardware failure or the list goes on and it's just, you know, you're trading some convenience
- 42:32for ownership and the transaction is different and some of the cost there is in you and your time, but I will always advocate for people to learn these skills because I think in the modern world
- 42:47they are such basic fundamental skills.
- 42:49I wouldn't put them quite in the same bracket as learning how to do plumbing or electrical work or something like that, but this stuff, you know, everybody takes photos everybody listens to music and why should we continue to enrich the pockets
- 43:03of Megacorps when we have the tools and the capabilities to do this stuff ourselves if we're just willing to put a few weekends aside and learn it?
- 43:12It's a great point.
- 43:13I guess start small.
- 43:15These little...
- 43:16Start small, yeah.
- 43:17These home or these self-hosting OSes, I guess they sort of call it, it tries to bring kind of an app store experience to the self-hosting.
- 43:26Another one that I would say is Coolify.
- 43:29I don't know if you're familiar with Coolify.
- 43:30Coolify's great.
- 43:31Yeah, I'm sure.
- 43:32Yeah, cool.
- 43:32I did some stuff with Coolify for a while.
- 43:35It's a little similar.
- 43:35And you don't even need anything in your house with Coolify.
- 43:38They will do hosted versions of these self-hosted apps if that even makes sense.
- 43:42But essentially, you're still running the service, you're paying to run the service on their infrastructure.
- 43:49And so all of the stuff we talked about around digital sovereignty and privacy and business models all remains true except for the fact the compute doesn't live behind your firewall.
- 43:58It lives somewhere else.
- 43:59Yeah, and you can even do things with Coolify such as get a server at Hetzner or DigitalOcean, create an account at Coolify, and then basically install their Daemon thing on your app.
- 44:11And then through there, a little management.
- 44:12You're managing multiple servers running.
- 44:14I wanted to love Coolify and I think the idea is great.
- 44:18I found that I ended up juggling so much more UI settings where I'm like, you know, if I just had a Docker Compose file, I could just define and replace or something.
- 44:29Yeah.
- 44:29Such is the life of an abstraction, right?
- 44:31You trade certain complexities for certain decisions that the main, I mean, look at Apple, right?
- 44:39We're always looking at macOS going, oh, I wish it, why are they doing it that way?
- 44:44Well, you outsource that decision and the same is true with Coolify.
- 44:48And any other abstraction that you choose as part of this stack, like even Docker, for example, is an abstraction, as I said, and you are making a certain set of, you're outsourcing a certain set of decisions to Docker in how things work.
- 45:01It's just a reality of the world.
- 45:02Yeah, that's a really good point.
- 45:03That's, you know, you choose your abstraction.
- 45:05So I bring it up because I do feel like people who are hesitant to do this kind of stuff, this is a really good option to get you started and get you comfortable and like, ah, what if I, maybe I could just run it myself after you're comfortable, you know, you work your way down until you, you know,
- 45:19gain some of these skills.
- 45:21What about Linux?
- 45:22You know, one of the things that I think is both a hesitation for doing this at all, but also a hesitation to use Docker.
- 45:28It's like, well, I could just do it on Linux.
- 45:30At first you're like, well, I can't do Linux or Linux is intimidating to me.
- 45:34Eventually you get that skill.
- 45:35You're like, well, I could just put it on my machine.
- 45:36Why do I need to actually use all this Docker complexity?
- 45:39It is the repeatability for me, at least.
- 45:44So what Docker brings to the table is a unified interface to running headless applications.
- 45:50I can define using a Docker compose file, which is just a short YAML file in maybe 15 lines.
- 45:57I can say, right, this is the name this container is going to get.
- 46:00These are the exact directories this application is allowed to access on my system.
- 46:04My photos app, for example, doesn't need access to my music library.
- 46:08And so you reduce the blast radius of anything going wrong.
- 46:11These are the ports it's allowed to access.
- 46:13These are the kernel capabilities it's allowed to have if you want to get that deep.
- 46:18You can turn off from a security perspective, you know, the photos app, for example, probably doesn't need a huge amount of kernel permissions to operate effectively.
- 46:26Turn off the stuff it doesn't need.
- 46:27And then that way, if there is a supply chain attack or a vulnerability exposed, the application itself becomes so much less of an attack vector because it literally physically has no access to certain bits of the kernel.
- 46:42You know, when you keep going down the list of what Docker Compose can provide for you, within 15 lines you can define an entire application's deployment and then store it in GitHub completely securely, safely.
- 46:55Obviously don't put secrets in GitHub, people.
- 46:57Please do not do that.
- 46:58But there are plenty of ways to sort of store secrets locally.
- 47:03I think there's something called OpenBao, which is a local fork of HashiCorp Vault as a secret management.
- 47:10You can use Bitwarden CLI, you can use 1Password.
- 47:13There's many ways to store secrets.
- 47:15Again, for me, it's like, why do we need things like Docker to exist?
- 47:19It's because it's a universal language.
- 47:21I can ship you a Docker Compose YAML or any developer assistant can ship a Compose file alongside their applications and I don't need to know anything about you or your application.
- 47:32I just run Docker Compose pull up and suddenly all of it's like in the Kubernetes where it's like an operator, in the Windows where it's like an installer.
- 47:41You're capturing all of the knowledge that you have about how to run your application successfully into this artifact which I then just pull down and deploy and run and it removes all of that complexity.
- 47:52Beyond Docker, you mentioned a lot of the Docker Compose stuff.
- 47:56You're right.
- 47:57I'm going to define the networking, what things can talk to what.
- 48:00I'm going to define the storage.
- 48:01I'm going to define the visibility over the firewall sort of levels of things and it's great.
- 48:08I just looked on my server.
- 48:10I have three different versions of Postgres running from different apps that are like, oh no, we use Postgres 16.
- 48:16Oh, we use 18 or whatever it is.
- 48:18It's like, how are you going to manage that if you install more than just a handful of things?
- 48:22They all want these different servers and what a hassle, right?
- 48:26But because it's all contained within their own little network that they see, it's fine to run through because they all use the same port but they're not conflicting.
- 48:33Yeah, that version of Postgres has no idea.
- 48:36You could spin up 20 different Postgres 16s on the same server because all a container is really just process isolation in memory.
- 48:43You want to think of it like that as a mental explanation?
- 48:46All you're doing is taking your RAM and slicing it up into tiny little boxes and then placing that process inside that box.
- 48:54It can't, that process then can't see anything outside of that box unless you give it specific and explicit permissions to do so.
- 49:01And that's why containers have taken over the world if you ask me.
- 49:03I agree.
- 49:04I always thought that they were another level of complexity until I realized all the stuff you put in the Docker file is basically what you would have had to ad hoc type into your Linux machine anyway.
- 49:13So you've got to know it anyway.
- 49:14Yeah, you do.
- 49:15Yeah.
- 49:15I mean, the Docker file is basically just a bash script just with bells on.
- 49:19Yeah, yeah.
- 49:20You just put run or env or something in front of all the commands.
- 49:24Let's come back to your comment on codex and AI because for as intimidating as these things are now, they're way less intimidating if you just have Claude Code or codex and you say, hey, explain this line to me or I need this to happen.
- 49:40Here's the file.
- 49:40Why is it not happening or how do I make it happen?
- 49:42That is an absolutely achievable thing.
- 49:45even stuff like last week, my server was running slowly.
- 49:50I didn't know why.
- 49:51The CPU wasn't busy.
- 49:53The RAM wasn't full.
- 49:55I looked at things like disk pressure.
- 49:57I looked at all the things I as a 15 year experience sysadmin knew where to look.
- 50:02Didn't see anything.
- 50:03And so then I had codex go and look at it via SSH.
- 50:06I was running it on my laptop and I said, right, you have permission via SSH.
- 50:09Go look at this server.
- 50:10Tell me what's wrong.
- 50:11And it turned out there was some spiking on certain NAND chips on the SSD when it was trying to write to certain sectors of the disk.
- 50:19It was causing massive IO weight.
- 50:22And I didn't catch that because it didn't make those writes during but codex ran overnight.
- 50:26And whilst I was sleeping it was still doing the checks and still finding finding out what was going on.
- 50:30And it turned out that the SSD, my boot SSD was on the verge of failing.
- 50:35It just hadn't marked itself as failing in smart yet.
- 50:38And it presented me this report, gave me all the diagnostics, it ran and yada yada.
- 50:41I would never have caught that.
- 50:43No.
- 50:44Not until it failed.
- 50:45And then I'd have caught it.
- 50:47But now I have time to go out and research the correct SSD to replace it and not pay rush shipping and all of this stuff because the robots went out and basically did my job for me.
- 51:01I mean, it's like, on the one hand, AI is one of these things of like, we're ushering in the very thing that's going to replace us as humanity.
- 51:08But I don't see it that way.
- 51:10Like, burying your head in the sand and saying, you know, vibe coded, slop this, that and the other.
- 51:14Like, it's not, it's not really a mature take on it, in my opinion.
- 51:17Yes, there's a lot of, there's a lot of slop out there.
- 51:19Yes, there's a lot of, like, but we shouldn't be replacing art with AI.
- 51:23Like, art fundamentally is a human endeavor and the reason it is valuable is because of the human effort that went into it.
- 51:29You'll never replace that with a robot.
- 51:31And, not even including the fact that everything that an AI does by its very nature is derivative of something that's actually being done before.
- 51:38So, you're never getting anything truly new and truly revolutionary.
- 51:42When it comes to, like, boring, menial tasks, like figuring out why my server's slow, have at it.
- 51:48I don't want to, I don't really want to be debugging that all night.
- 51:52Yeah.
- 51:53The recent thing I did with DevOps, Docker, and AI was I wanted to do a new self-hosting app and I want to serve it out of the same server as some other ones, but I don't want them to interact with each other.
- 52:05I don't even want them on the same network, but the NGINX front end has to be able to get to both of them.
- 52:11So, I'm like, all right, Claude Code, how do I create a second network that still the one container can see both of the networks, but this one can't see, you know what I mean?
- 52:20Like, I'm like, how do I actually make that happen without breaking anything?
- 52:23It just knows.
- 52:24Yeah, it's like, this is what you do.
- 52:26This is the commands you run to, like, create the external network and then here's the settings and all the compose files.
- 52:30You restart them in this order so stuff doesn't break.
- 52:32I'm like, wow, okay.
- 52:33If you know just enough to be dangerous on a topic and you can guide it through the hallucinations that it does, it makes you incredibly powerful and so, for that reason, at least for the foreseeable future, I don't think it's going to replace, you know,
- 52:48everybody.
- 52:49There are for sure certain tasks and certain things that humans will be less required for and I think, you know, we're on the cusp of either the greatest change in humanity's labor since the Industrial Revolution or,
- 53:04and the economics will bear this out one way or the other, you know, forces at play here much bigger than either of us, or it will just turn out to be inordinately too expensive to do that for a very long time and then the progress and investment will stop
- 53:18and either a lot of very smart people are betting an awful lot of money and they're all wrong or there is actually something to this and we will see, I guess.
- 53:28Yeah, I think it's being misused for a lot of stuff but I also think that there's areas where it's incredibly helpful and this computer stuff in general, programming, DevOps, amazing.
- 53:39So we're getting short on time, Alex.
- 53:41I feel like we've only scratched the surface like for real but let's talk about Tailscale.
- 53:46I want to talk, I want to take one step back before we jump into Tailscale and just put out a warning.
- 53:51This is something that really blew my mind when I saw it.
- 53:54So when we're running our self-hosted apps, obviously we want to have security, limited access potentially.
- 54:01You might be running them at home and so how do you access them?
- 54:03There might be a bunch of funky networking things that people do but just as a quick PSA, I want to point out that, from here, other window, if you're using something like uncomplicated firewall in your Docker Compose file, you say,
- 54:18listen on 00, just default, like this port maps to that port, that's effectively 0000, that port, like listen on all the things and you're using something like uncomplicated firewall or one of these other things that manipulates the IP tables.
- 54:32Docker says, you know, Docker and UFW use firewall rules in ways that make them incompatible.
- 54:38That is like, things like UFW don't block access to your Docker stuff so something else, something stronger like a cloud firewall or things like that, right?
- 54:49Like on my servers, I have a at the cloud hosting level don't let anything access stuff but 80 and 443 or whatever and, you know, limited access to SSH.
- 54:59But if I didn't have that and I just used UFW, that would be not ideal.
- 55:04so let's talk about firewalls for a minute.
- 55:06I think there's a couple of things at play.
- 55:08One is you're hosting a public facing service like a website, right?
- 55:13That clearly has to be on the public internet.
- 55:15There's no way around that.
- 55:16The whole purpose of a website or an API probably is to be hit remotely and provide a response.
- 55:24But when we're talking about self-hosted infrastructure, the only customer is you, maybe your family, maybe a few friends.
- 55:32And so the idea behind Tailscale is to bring that connectivity back to be a more personal level.
- 55:40You know, our free tier, for example, at Tailscale has a six user limit.
- 55:45It has unlimited devices.
- 55:46And so the idea there is that you and your family all live in the same tail net.
- 55:51You make sure that Tailscale is installed on your server in your basement or wherever it happens to be.
- 55:58And it's installed on your phone.
- 55:59It creates a wire guard tunnel underneath, encrypted, end-to-end.
- 56:04And Tailscale makes a direct connection between those two devices with no middleman.
- 56:08And so the way that Tailscale remains free is because we ask people, we give it away for free for a lot of it, but then we ask those people to champion us at work.
- 56:18And we just crossed 30,000 paying customers just last week, I believe.
- 56:22And so each of those paying customers, well, not all of them, but a large number came through that funnel of, well, this is awesome.
- 56:29Why are we not using this at work?
- 56:31Yeah.
- 56:31So let me just sort of give the elevator pitch for people, I think, how cool this is.
- 56:36One way to self-host is I've got this running on a spare computer of whatever sort, Mac Mini, small, NUC, whatever, on your home network.
- 56:44You want access to it while it's traveling.
- 56:47The not great way is just, well, let's just put that on the internet.
- 56:50I'm going to open up a port on my router.
- 56:53I mean, just think back to the LastPass thing, right?
- 56:55How did LastPass get this huge takeover a few years ago?
- 56:59The one of the devs was running a Plex server on the open internet and didn't patch it.
- 57:04That got taken over.
- 57:05They got lateral movement inside the network, gotten the access keys to LastPass, and down it goes, right?
- 57:11So that's a bad example of self-hosting.
- 57:14Better would be use something like Tailscale, never open any ports at all, but when you're on the Tailscale network, you see into the networks where it's running.
- 57:23You see into your home network even when you're away, or you see into your server infrastructure even though zero ports are open.
- 57:31And that to me is just kind of magical.
- 57:33Yeah, if you want to learn more about it, I won't get into the specifics here, but there is a blog post called How Tailscale Works at tailscale.com.
- 57:42I'll send Michael a link to put in the show notes.
- 57:44And essentially, the magic there is we abused like stateful firewalls and how they work a little bit to do something called NAT traversal.
- 57:51So the idea is that there weren't enough IPv4 addresses for every device in the world to get its own address and sit on the public internet.
- 57:58And so we created this abstraction called Network Address Translation.
- 58:01Each device sits behind a firewall and gets a local IP address.
- 58:06You've probably seen the 192.168.whatever numbers.
- 58:10That's a local IP address versus what you get like what'smyip.com or whatever.
- 58:15And that'll give you a totally different IP address than what your laptop has with inside the Wi-Fi.
- 58:20And so you've got to have something that's doing that translation between those two things and that's called NAT.
- 58:24Then Tailscale punches through that NAT and makes a direct connection from your phone at the coffee shop over 5G through your residential firewall with no ports open to your server running under the stairs.
- 58:35It's super seamless.
- 58:36Yeah, it's super seamless.
- 58:37So I use it for things like I have a local LLM running on my Mac.
- 58:42Oh, yeah.
- 58:43And then if I'm at the coffee shop, then I just make sure I'm on the Tailscale network and I can still run apps that talk to my OpenAI API over my self-hosted LLM as if it was running on my laptop, but it's not, right?
- 58:56Yeah.
- 58:56Remember what we said at the beginning of the show?
- 58:58Like the rabbit hole goes deep and if you can think of a proprietary service, there's almost certainly a self-hosted alternative to it.
- 59:05AI is another one that you can self-host.
- 59:08So if you have a Mac Mini, we all heard about OpenClaw a few weeks ago, right?
- 59:12You can put it on your gaming rig.
- 59:15If you have an NVIDIA GPU in your gaming rig, you can use that for local AI.
- 59:20I mean, the rabbit hole is, if you're a curious person, I apologize in advance if you've not looked into self-hosting because it will consume you for a little bit.
- 59:28It's just how it goes.
- 59:29It is definitely how it goes and it's very satisfying as you start to make progress in it.
- 59:34Alex, I think that's it for our time.
- 59:36Final thoughts for people who want to get started.
- 59:38How would they get started?
- 59:39Oh, how would they get, oh gosh, that's a broad question.
- 59:42Hmm.
- 59:43Well, if you want to learn more about building a server in and of itself, I run a website at perfectmediaserver.com where you can learn how to build basically a Linux server with some storage in it to replace Netflix or something.
- 59:56I mean, I don't know.
- 59:57Awesome self-hosting is a good place to get started.
- 1:00:00There are dozens of YouTube guides.
- 1:00:03Just type self-hosting in and just watch a couple of hours worth of YouTube and you'll get a pretty good idea.
- 1:00:09And then from there, like I say, it's all about figuring out what problems you're trying to solve and then what shape that problem takes versus what your budget is, what your personal risk tolerances are and all that kind of stuff too.
- 1:00:21There's a lot that goes into it, but if you want to reach out to me, alex.ktz.me, you can come find me.
- 1:00:28I'm on Discord all over the place and I'll say hi.
- 1:00:30I'd love to chat.
- 1:00:31Yeah, awesome.
- 1:00:32I'll certainly link to your connections on the website, on the show notes and I do want to give a shout out to Tailscale.
- 1:00:39I think people should certainly consider it as part of the connectivity of all this stuff because it makes it so much simpler and so much safer.
- 1:00:45Not a sponsored episode.
- 1:00:47Hashtag not sponsored.
- 1:00:49Yeah.
- 1:00:50I'm just a corporate shill for free today.
- 1:00:52For me, I found out about it a couple years ago and I'm like, this solves all the problems and I was just such a fan and so I just want to make, you know, I think it's really a way that things get quite simplified for it.
- 1:01:05It was the same for me and I enjoyed it so much and I've been trying to solve this remote access problem as a self-hoster for, I didn't know it, but for 20 years I opened firewall ports to do remote desktop from school to my house when I was a teenager.
- 1:01:18You know, like, I've been trying to solve this problem for a very long time and I installed Tailscale one weekend three years ago and was like, holy cow, this is amazing and I got a job here because I liked it so much.
- 1:01:29Beautiful.
- 1:01:30Well, I really appreciated you coming on the show.
- 1:01:33Learned a lot.
- 1:01:34Thanks for being here.
- 1:01:34It was fun.
- 1:01:34Yeah, thanks for having me.
- 1:01:35Yeah, see you later.
- 1:01:37This has been another episode of Talk Python To Me.
- 1:01:39Thank you to our sponsors.
- 1:01:40Be sure to check out what they're offering.
- 1:01:42It really helps support the show.
- 1:01:44Temporal is hosting their yearly conference, Temporal Replay.
- 1:01:47Join your peers at Replay, the conference on orchestrating durable workflows and agents.
- 1:01:52May 5 to 7 in San Francisco.
- 1:01:54Visit talkpython.fm/temporal dash replay and use the code talkpython75, all one word, all caps, to save up to $449 on your ticket.
- 1:02:04If you or your team needs to learn Python, we have over 270 hours of beginner and advanced courses on topics ranging from complete beginners to async code, Flask, Django, HTML, and even LLMs.
- 1:02:17Best of all, there's no subscription in sight.
- 1:02:20Browse the catalog at talkpython.fm.
- 1:02:22And if you're not already subscribed to the show on your favorite podcast player, what are you waiting for?
- 1:02:27Just search for Python in your podcast player.
- 1:02:29We should be right at the top.
- 1:02:30If you enjoy that geeky rap song, you can download the full track.
- 1:02:33The link is actually in your podcast blur show notes.
- 1:02:36This is your host, Michael Kennedy.
- 1:02:38Thank you so much for listening.
- 1:02:39I really appreciate it.
- 1:02:40I'll see you next time.
- 1:02:41Talk Python and me.
- 1:02:52Talk Python and me.
- 1:02:53Can we be ready to roll?
- 1:02:57Upgrading the code.
- 1:02:59No fear of getting whole.
- 1:03:02We tapped into that modern vibe overcame each storm.
- 1:03:06Talk Python and me.
- 1:03:07I think is the norm.