1
0
Fork 0

Syncthing weirdness

This commit is contained in:
will 2024-09-30 13:29:41 -06:00
parent 4395e111b9
commit 5d036e42da
106 changed files with 306 additions and 21 deletions

0
.gitignore vendored Normal file → Executable file
View file

0
.well-known/fursona Normal file → Executable file
View file

0
LICENSE Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
about/index.php Normal file → Executable file
View file

15
blog/blog.atom Normal file → Executable file
View file

@ -3,7 +3,7 @@
<title>isopod.cool blog</title> <title>isopod.cool blog</title>
<id>https://isopod.cool/blog/</id> <id>https://isopod.cool/blog/</id>
<link rel="alternate" href="https://isopod.cool/blog/"></link> <link rel="alternate" href="https://isopod.cool/blog/"></link>
<updated>2024-02-28T00:00:00+00:00</updated> <updated>2024-09-20T00:00:00+00:00</updated>
<author> <author>
<name>isopod.cool webmaster</name> <name>isopod.cool webmaster</name>
<uri>https://isopod.cool/</uri> <uri>https://isopod.cool/</uri>
@ -12,12 +12,23 @@
<category term="personal"/> <category term="personal"/>
<category term="blog"/> <category term="blog"/>
<category term="tech"/> <category term="tech"/>
<entry>
<title>How to Set Up Pi-Hole (On a Le Potato)</title>
<id>guide_pihole_lepotato</id>
<link rel="alternate" href="https://isopod.cool/blog/posts/guide_pihole_lepotato/" type="html" title="How to Set Up Pi-Hole (On A Le Potato)"></link>
<published>2024-09-20T00:00:00+00:00</published>
<updated>2024-09-20T00:00:00+00:00</updated>
<summary>How to set up Pi-hole, a network-wide DNS-level ad-blocker, on the particular discount Raspberry Pi I did it on.</summary>
<category term="self-hosting"/>
<category term="diy"/>
<category term="capitalism"/>
</entry>
<entry> <entry>
<title>You Should Learn To Make Cables</title> <title>You Should Learn To Make Cables</title>
<id>make_your_own_cables</id> <id>make_your_own_cables</id>
<link rel="alternate" href="https://isopod.cool/blog/posts/make_your_own_cables/" type="html" title="You Should Learn To Make Cables"></link> <link rel="alternate" href="https://isopod.cool/blog/posts/make_your_own_cables/" type="html" title="You Should Learn To Make Cables"></link>
<published>2024-09-09T00:00:00+00:00</published> <published>2024-09-09T00:00:00+00:00</published>
<updated>2024-09-09T00:00:00+00:00</updated> <updated>2024-09-14T00:00:00+00:00</updated>
<summary>I saved $140 by splicing together my own audio cables, and you can too!</summary> <summary>I saved $140 by splicing together my own audio cables, and you can too!</summary>
<category term="audio"/> <category term="audio"/>
<category term="diy"/> <category term="diy"/>

0
blog/comment/comments.css Normal file → Executable file
View file

0
blog/comment/feed.php Normal file → Executable file
View file

0
blog/comment/index.php Normal file → Executable file
View file

0
blog/comment/submit.php Normal file → Executable file
View file

0
blog/index.php Normal file → Executable file
View file

0
blog/posts/ai_art/index.md Normal file → Executable file
View file

0
blog/posts/ai_art/index.php Normal file → Executable file
View file

0
blog/posts/building_a_normal_server/index.md Normal file → Executable file
View file

0
blog/posts/building_a_normal_server/index.php Normal file → Executable file
View file

View file

@ -0,0 +1,121 @@
It has become clear to me that the [laptop NAS](../building_a_normal_server/) I built in December of last year, while a fun project and a good learning experience, is unfit for the purpose that I need it to fulfill and is best stripped for parts and replaced. Here I'll detail the main reasons why it sucks and my plan to build something just a little bit more sensible.
## What In God's Name Have I Done
To get you up to speed in case the limit of your attention span is somewhere between one blog post and two blog posts, as of late last year I had been using an old gaming laptop as a home server for Minecraft and such things to great effect for a while, and had decided that I also wanted a proper NAS. Rather than buy a whole new CPU, motherboard, and RAM for this purpose, I saw fit to attempt to upgrade, or rather modify, or rather pervert, bastardize, and generally corrupt my existing laptop to have the storage capacity I wanted.
The end result of this initiative was a gaming laptop with a hole cut in the bottom to accept connections to a 2-port SATA controller card occupying the space where the WiFi card used to be, perched atop a custom chassis hewn of hardware store aluminum rods and 3d-printed brackets, within which was contained four high-capacity 3.5" HDDs, a pair of dubious SATA "splitters" to connect them all to the laptop, an ATX PC power supply to power the drives, and the pared-down mainboard out of a Supermicro enterprise-grade drive shelf to interface the power supply with a power button.
It was beautiful, and for reasons that are entirely beyond my ability to grasp, it didn't end up working very well.
This is where we find our intrepid hero today.
## This Whole Enterprise Was Fundamentally Ill-Conceived
I was expecting this thing to have problems, but I was unable to anticipate the specific problems it ended up having. Performance is... fine, actually. Better than expected, even. That horrible little 2-port SATA expander, or, failing that, the SATA multiplexers, are almost certainly bottlenecking the bandwidth to the HDDs, but it's fast enough to saturate the gigabit network infrastructure in my <span class="house">house</span>, so it doesn't really matter.
In fact, this little fucker is absolutely perfect for hosting an SMB share. It's been great for backups and the extensive collection of Linux ISOs that I install to machines on my network using Jellyfin.
The real problem is stability. Crashing has been a constant problem, especially when I touch anything software-wise. I try to update an app and it crashes. I try to install Syncthing and it crashes. I *browse* for new apps to install in the TrueNAS web UI and it bloody crashes. It crashed while running a system update once. I briefly attempted to spin up a Minecraft server on this thing and it crashed when I went to turn Minecraft *off*. Sometimes I'll go to use Jellyfin and it just won't be there and I'll have to troubleshoot it, which usually involves a good couple reboots. This must be how people felt dealing with old versions of Windows. Put <span title="🦐">shrimp</span>ly, this is fucking unusable.
Like the Windows Vista users of old, I have no clue where to even begin diagnosing this. The one possibility I've got is that it could have something to do with the fact that my laptop keeps throwing "SMART errors" during boot, but like, I'd expect TrueNAS to complain if something was actually wrong and even then I've tried and failed to diagnose the SMART errors anyway!
Whatever this is, I feel pretty well hopeless to fix it, and even then, it's also been getting some worrying temperature readings as of late and when I tried to re-paste it I stripped one of the screws holding the cooler on. So I guess short of some surgical dremel-ing of some tiny screws that's never gonna improve. With all that to contend with, I'm about ready to give up on this thing and start from scratch, properly this time.
However, despite all the problems with the laptop itself, all the other hardware has been nothing short of totally rock-solid. All of it has worked as advertised and I'll be carrying the drives and, if possible, the PSU<sup id="n1r"><a href="#n1">1</a></sup> over into the new system.
## Something Just A Little Bit More Sensible
### Angle of Attack
Firstly, as previously mentioned, the PSU and storage are accounted for already. I have eight total drives I want to put in the system: two 256GB SSDs as mirrored boot devices, 2 1TB SSDs, also mirrored, for TrueNAS apps and such things, and four big boy hard disks for bulk storage. Most of that stuff was bought for the original build, but the mirrored SSDs proved infeasible in the end. I don't strictly *need* them, but it would be very nice to have. Anything in serious consideration will need some way to accommodate my preponderance of SATA devices.
This narrows down the possibilities considerably. Namely, a lot of the common advice for cheap or beginner home servers doesn't apply to me. A mini PC or almost any used consumer desktop wouldn't have enough space for drives, and anything new is right out for the same reasons plus cost &mdash; half the reason I did the laptop NAS project in the first place was to *save* money.
I briefly considered getting a used workstation PC of some description. A used Lenovo Thinkstation P520 would have mounting space for all my drives and plenty of performance, but the proprietary motherboard, PSU, and power delivery system in general gave me pause, both for [repairability reasons](https://isopod.zone/notes/9uwehufw3t) and because I wasn't confident I could actually run power to all the drives. And that's the *best* option I've found.
I could get a used rack-mount server, like a Dell PowerEdge or similar. This is also a decent option, and it would be *quite* cost-effective, but I've got a few good reasons not to. First, most of these servers have old Xeon datacenter chips in them that are still good for many home server tasks, but aren't particularly fast or efficient. Take this PowerEdge R730 for instance:
![An Ebay listing for a Dell PowerEdge R730, with two Xeon E5-2623 v4 CPUs and 128GB of RAM, for $187 CAD, plus $57 CAD in shipping.](ebaypoweredge.png)
This has two Xeon E5-2623 v4 datacenter CPUs. At 4 cores/8 threads and 85 watts apiece, this server would have the same core count as the Ryzen 5700G in my desktop for almost three times the power draw, and *half* the single-threaded performance. In many cases, especially for servers, lackluster single-core performance isn't a problem, but if I want to run game servers on this, which I do, these chips may struggle.
Plus, rack-mount servers kind of suck for home use. They're very unweildy if you don't have a rack, and I don't, nor do I have anywhere to put one. They also tend to be *loud*. If you think the gaming laptop you've been using in your bed for the past three years and never cleaned sounds like a jet engine, you ain't seen nothing yet. Having one of these in my room would be intolerable. Of course, the R730 is a 2U server with no provisions for my 3.5" drives anyway, but a unit that could accommodate them wouldn't be much better.
Logically, then, the only remaining option is to build a system from scratch, out of used parts, to my specifications. That, therefore, is what I shall do, and I think I can do it for a similar amount of money to the GPU upgrade I was *planning* to get before this whole thing really started becoming an issue. Here's my plan:
### My Grand Design
In spite of the machine it's in, I've found that the i7-9750H in the laptop performs admirably for my use case. I don't really need a CPU upgrade here &mdash; hence my efforts to repurpose the existing one &mdash; unfortunately, however, the BGA form factor of this particular chip is incompatible with 100% of consumer desktop motherboards, so I'll be needing a new CPU regardless. Though I don't want or need a major upgrade, I also don't want a *downgrade* if I can avoid it, so I'll primarily be looking at other high end gaming chips from the era.
I initially gravitated towards the 9750H's desktop counterpart, the i7-9700K, for these reasons, but the significantly lower price, improved energy efficiency, superior upgrade potential, support for unregistered ECC RAM, and *vastly* superior multicore performance<sup id="n2r"><a href="#n2">2</a></sup> of its contemporary, the Ryzen 7 3700X, made the latter a bit of a no-brainer. I found one on Ebay for a cool 100 Canadian Prize Tokens and a matching X370 motherboard with *eight* whole SATA ports, which astute readers will recall is the exact amount I need, for about a hundred of God's True Imperial Dollars. As for cooling, the 3700X is a 65-watt chip, so the box cooler I've got lying around from my 5700G should suffice.
The 3700X lacks an integrated GPU, so I'll need a dedicated one in some form. Since I'm installing a server OS that's gonna output plain text to a display exactly once per install, I won't need a ton of graphics horsepower. I considered something like a GT 730 for a token display out and nothing more, however I'd like some transcoding capability for Jellyfin as well. After some research into cheap, low power GPUs for this I settled on an Nvidia Quadro P400 for about 60 CanuckBucks&trade; after shipping.
I've seen some redditors complaining about the P400's performance doing two 4k HDR streams at once, but all that tells me is that it can handle at least four simultaneous 1080p SDR streams, which is what I intend to use it for, without breaking a sweat. If I *really* need more, I can always upgrade to an Arc A310 once driver support for those in TrueNAS is less sketchy.
TrueNAS likes a lot of RAM for various ZFS-related purposes. The laptop seems happy with 32 gigs, so I'll start there and upgrade down the road if need be. I'll grab something cheap from a reputable brand, and I'll probably get it new since used prices on DDR4 are currently not really better.
I'd also like to get a pair of 10Gb network cards at some point to attach this thing directly to my main computer for maximum transfer speeds between the two, but that's not really critical and I'll worry about it later.
Finally, I need a case. Fortunately, this time around I don't have to build one myself. After a cursory search on PCPartPicker for cases with four each of 2.5" and 3.5" drive mounts didn't turn up anything for particularly cheap, I went to look at used ones and didn't initially have much luck there either. I scrolled through about a dozen listings for off-brand gamer-spec swill that wasn't even priced better than the name brand stuff before filtering by used and finding a bunch of listings just labeled "PC case", none of which I could confirm met my exacting needs.
The first case I found that obviously fit my use case was this thing, the weathered old shell of a Pentium III tower from the dawn of the ATX standard:
<figure class="media">
<div>
<img src="servercase.jpg" alt="A beige PC tower with four 5.25&quot; bays and two external 3.5&quot; bays, populated with an optical drive and a floppy drive respectively. The only visible branding is a Pentium III sticker and a badge that reads &quot;TOUCH&quot;.">
<figcaption>I'm curious about the branding here. If anyone recognizes that "TOUCH" badge, get in the comments.</figcaption>
</div>
</figure>
Honestly, I kind of love it. I'll transfer the 5.25"-to-3.5" adapter cage I bought to mount the drives in my homebrew case to the bays in this thing wholesale, and I can 3D print some brackets to mount the SSDs in the 3.5" bays. And, somewhat counterintuitively, it might actually be *easier* to build in than those modern RGB glass side panel power supply basement having ass Gaming&trade; cases:
![The inside of the same old PC case. Its layout is extremely pragmatic: motherboard in the very bottom corner, PSU in the top corner above it, and all the drive bay mounts are in a cage lining the front side. In other words, it looks like an old PC case.](servercaseinside.jpg)
Just look at it. Everything's right there. I can take the side panel off and instantly get to every component with my hands without spinning the case around and I don't need to run any cables through any fucking gromets to get them where they're going. It looks supremely convenient. As the type of person who enjoys *building* computers and not just using them as decoration, this is beautiful to me.
The biggest issue with this case is the cooling. It's absolutely pitiful by modern standards. Based on these photos, it looks like there's a single 92mm, possibly 80mm, fan each for intake and exhaust, with a passive vent in the side. I'm already bringing some extra cooling to the table &mdash; my drive cage has a mount for a 120mm fan, and I can use the fan in my much better ventilated modern PSU for extra exhaust, and with a 65W CPU and no meaningfully powerful GPU that might just suffice. If not, I've got some ideas involving 3D printing and/or a hole saw to make this thing a little less stuffy.
### Actually Building The Sucker
Everything above that heading there was in large part written a few weeks ago, when I was ordering all this stuff and it was all fresh in my mind. We now rejoin our intrepid hero as she receives the last of her Ebay orders and prepares for initial testing.
When I got it, the case was pre-loaded with all the stuff in those photos up there: a CD-ROM, a floppy drive, a power supply, a single 80mm intake fan<sup id="n3r"><a href="#n3">3</a></sup>, and a generous helping of, to quote the PC repair technician from my Youtube shorts feed, Swamp Gooch&trade;. The first thing I did was take the case apart and remove all that stuff, because I certainly wasn't going to be using any of it, least of all the dubious PSU. The next thing I did was hose it down to get rid of the almost thirty years of Home/Office Residue that had accumulated inside.
Once it was clean, the case did, admittedly, need some updating. The set of motherboard standoffs in the case was incomplete &mdash; six of the usual nine were present &mdash; so I ordered new ones. I also had to design that 3D printed adapter bracket for my 2.5" SSDs myself, as well as a mount for another 80mm fan to eke some more airflow out of those unused front expansion bays<sup id="n4r"><a href="#n4">4</a></sup>.
After the case was prepared and the mounting brackets printed, there wasn't much to do until all the other parts arrived. I learned about some interesting limitations of the motherboard in my main computer while testing to make sure the GPU worked. I think I might be the sort of person who buys motherboards with the high-end chipset now.
The last major component to arrive was the motherboard, and it arrived missing some important hardware, namely the M.2 standoff and the stock mounting bracket for the CPU cooler, the latter of which was *in the photo on the Ebay listing*! Fortunately both parts are pretty cheap to order online.
Assembly went smoothly; not much to say here that you couldn't get from Linus Tech Tips. It turned out that *both* the original standoffs *and* the ones I ordered were the wrong height &mdash; the original ones were too long, and mine were too short. I ended up putting the original standoffs back in because neither were so far off as to render the rear I/O unusable and my standoffs made installing the GPU properly impossible.
I had to use a couple of breadboard wires to hook up the power LED, since the pins on my motherboard were right next to each other and the connector in the case was 3 pins wide with a blank one in the middle, for some reason. Also, unlike *some* cases I've worked in, accessing the modular PSU cables was an absolute joy<sup id="n5r"><a href="#n5">5</a></sup>.
What didn't go smoothly was actually booting the thing. On first power on, it failed to POST and got stuck on a code "8" on the little seven-segment diagnostic code display. I initially assumed it was training the memory, since this can take a while on first boot, but after about five minutes of no change I started getting worried. I read a lot of very worrying forum posts that suggested that either the CPU or motherboard were straight up dead, and I very nearly bought another CPU to see if that was the case. First, though, I decided to try updating the BIOS using the "BIOS Flashback" feature, and that fixed it immediately.
<!-- As an aside, having gotten my hands on this case, I love it even more. Everything is just as accessible as it looks, and there is well and truly *nothing* crammed behind the motherboard tray. The only reason you would even take the other side panel off is to take the motherboard tray *out*. The CD-ROM drive and 3.5" cage are both on rails for easy removal. Stripping this thing of all the pre-installed hardware was such a smooth process it almost makes me resent the modern Gaming case I built my main rig in. And coolest of all:
<figure class="media">
<div>
<img src="servercaseinsidefront.jpg" alt="The same old PC case from before with the plastic front panel taken off, exposing the front of the metal frame. The requisite front panel buttons and indicator lights are clipped into little specially-shaped holes, and the entire top and right-hand edges of this side of the frame are lined with identical holes for a panoply of different arrangement possibilities.">
<figcaption>Every one of those little rectangular holes is a place where the front panel buttons and LEDs could go!</figcaption>
</div>
</figure>
Look at all those mount points for front panel buttons and lights! My guess is this was done in order to better facilitate a variety of different plastic front panels, so different systems could be given different aesthetic character without making changes to anything structural. You can tell the people who designed this case really wanted to make the most of their hard work. I think design features like this should be required by law. But enough about Our Intrepid Hero's New Favourite Metal Box. -->
---
<p id="n1"><a href="#n1r">1</a>. I'm not referring to the Seasonic S12III from the last installment. That thing is honestly a little sketchy for me to be using it in a proper server if I don't have to, and I don't. When my PC's power supply, a Seasonic GX650, exploded, I RMA'd it and then bought a beefier one to replace it with, and the replacement unit Seasonic sent me went in my server, and will be going in the new one. The S12III is serving as an improvised benchtop PSU using one of <a href="https://m.media-amazon.com/images/I/71UqFQ9U1QL._AC_SL1500_.jpg">these bad boys</a> at the moment.</p>
<p id="n2"><a href="#n2r">2</a>. If cpubenchmark.net is to be believed, anyway.</p>
<p id="n3"><a href="#n3r">3</a>. I could, in theory, reuse this fan, but I don't want to. It's so nasty that attempting to run it seems like a good way to invent a new respiratory illness, and even if I cleaned it the bearing is geriatric and the performance probably isn't very good, plus my modern motherboard might not even have a header for it. Its replacement will suit me much better.</p>
<p id="n4"><a href="#n4r">4</a>. You can download the model for the fan mount and corresponding grill I designed <a href="https://www.printables.com/model/1014992-80mm-fan-mount-for-3x35-drive-bay-in-old-pc-case">here</a>. I'd publish the drive bracket but the one I printed needed some modification in order to work, and I don't want to spend the time and filament to refine it right now.</p>
<p id="n5"><a href="#n5r">5</a>. Mind you, this case is well north of 20 years old. This case shipped to me with a Pentium III sticker on it. This thing may well predate modular power supplies as a <em>concept</em>, and somehow it accommodates them infinitely better than the 2-year-old case on my personal machine, which barely has room to <em>insert</em> a modular PSU, let alone actually get at the cables afterwards. I don't understand how this is possible.</p>

View file

@ -0,0 +1 @@
<?php include("../post.php");

0
blog/posts/discord/index.md Normal file → Executable file
View file

0
blog/posts/discord/index.php Normal file → Executable file
View file

0
blog/posts/fediverse_dms/index.md Normal file → Executable file
View file

0
blog/posts/fediverse_dms/index.php Normal file → Executable file
View file

3
blog/posts/foodhero/index.md Executable file
View file

@ -0,0 +1,3 @@
I'm gonna promote a product or service today, but I promise it's with good reason - my employer has gone and done something actually positive for once and I want to spread awareness of it.
So, I work at a grocery store.

1
blog/posts/foodhero/index.php Executable file
View file

@ -0,0 +1 @@
<?php include("../post.php");

0
blog/posts/guide_blacklist_websites_searxng/index.md Normal file → Executable file
View file

0
blog/posts/guide_blacklist_websites_searxng/index.php Normal file → Executable file
View file

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
blog/posts/guide_blocking_user_agents_nginx/index.md Normal file → Executable file
View file

0
blog/posts/guide_blocking_user_agents_nginx/index.php Normal file → Executable file
View file

View file

View file

View file

View file

View file

@ -0,0 +1,77 @@
[Skip to relevant links](#links)
I set up [Pi-hole](https://pi-hole.net/) on my home network recently. If you're reading this, there's a good chance you've heard of it. It's a network-wide DNS-level ad and tracker blocker designed to run on a **s**ingle-**b**oard **c**omputer like a Raspberry Pi, hence the name. Instead of a Pi, I used a [Libre Computer Le Potato](https://libre.computer/products/aml-s905x-cc/), an alternative board that's almost as good as a Pi 4, and a lot cheaper. I'm gonna show you how to do that.
Before you do anything, and especially before you *buy* anything, make sure your router lets you both assign static IP addresses in some way and set your own DNS servers. This functionality is necessary to use Pi-hole. I can't help you do this, unfortunately &mdash; every router is different and many ISP Specials&trade; are missing these settings.
## Hardware
The Le Potato comes in two flavours: 1GB of RAM and 2GB of RAM. Either will suffice here, though I would go with the 2GB variant just because the 1GB version isn't really that much cheaper. Aside from the board itself, you'll also need a wired network connection<sup id="n1r"><a href="#n1">1</a></sup>, a micro SD card, and an HDMI monitor and keyboard for initial setup, though you can use SSH to access it over the network after that.
As for power, the Le Potato draws about 4 watts at most and as such can run off of any spec-compliant USB port, but the official guides on the Libre Computer forum make a big deal of ensuring the power supply and cable you're using are high-quality and of a generous rating &mdash; they recommend at least a 1.5A USB power source and a suitably **thick** cable to avoid any power issues. Pi-hole is a pretty low-demand application, though, even for this class of hardware, so you'll probably be fine regardless of what you use.
Like the Pi, the Le Potato lacks any built-in storage, so you'll need to supply a micro SD card<sup id="n2r"><a href="#n2">2</a></sup>. The docmentation for Armbian, the OS we'll be using, recommends an "A1" or "A2" class micro SD card, which you can more or less only get from Sandisk right now, for their *significantly* improved random access performance. Ideally you should use one of these, especially since they can be had quite cheaply nowadays, but it's not the end of the world if you have something else kicking around and use that instead. As for capacity, 16GB should be plenty, and you could probably get away with 8GB.
Finally, I'd recommend getting a case. Fortunately, the Le Potato has the same dimensions and layout as, and as such is compatible with cases for, the Raspberry Pi 3 Model B. I 3D printed [this one](https://www.printables.com/model/67681-raspberry-pi-3b-case/files) in PETG, and a wide array of cases are available for cheap online if you can't do the same. I especially like the one that looks like a little NES.
## Booting an OS
Since I'd heard the Le Potato was broadly compatible with the Pi, I initially tried booting a Raspbian image from the official Raspberry Pi flasher tool. Maybe predictably, this did not work. The next thing I tried, and what we'll be using, is Armbian, a lightweight port of Debian designed for tiny SBCs like this one that happens to have a page on its website specifically for the Le Potato.
[Go to that page](https://www.armbian.com/lepotato/) and get one of the **Server** images. I used the latest Debian one. Then write it to the SD card using your favourite flashing tool (I recommend [Balena Etcher](https://etcher.balena.io/)), and insert that into the slot on the Le Potato.
To boot just connect it to power to turn it on and the boot sequence will start automatically. You can have the ethernet connected as you do this, but it seems like the keyboard and possibly display may need to be connected afterwards, so try that if it doesn't boot for you. The Le Potato has a series of indicator LEDs on it next to the micro USB port: essentially, red means it has power; red and blue means it's on; and red, green, and flashing blue means it's running software. Once you get to that last state, you should get output to the monitor soon.
Now we set up Armbian. This process is detailed in the [official documentation](https://docs.armbian.com/User-Guide_Getting-Started/#how-to-boot) for Armbian, and it's fortunately pretty straightforward. It'll ask you to change the default root password, and then give you a choice of shell. Either is perfectly fine, but I like ZSH. Then it will prompt you to create a login for your user account (make sure you're writing these logins down, btw) and then ask for your timezone and other basic local information. If you're connected to the network, it should auto-detect this stuff. If you're left with a root prompt here (it should look like this: `lepotato:~:#`) log out and log back in with the credentials you just created.
This is a good time to assign a static IP address to the Le Potato, so you can access it with SSH going forward. Once you have, reboot it and you should be able to access it via SSH at the local IP you just gave it. On Linux that's just `ssh yourusername@yourlocalip` in the terminal, and on Windows [PuTTY](https://putty.org/) is allegedly good for this.
Now that you're logged in, run a quick software update:
```
sudo apt update
sudo apt upgrade
```
## Setting Up Pi-hole
Installing Pi-hole is pretty simple. Just download and run the install script:
```
wget -O basic-install.sh https://install.pi-hole.net
sudo bash basic-install.sh
```
The script will prompt you for some settings. Most of them are pretty straightforward. I selected "Yes" for everything and the first of the three entries for Quad9<sup id="n3r"><a href="#n3">3</a></sup> as my upstream DNS provider. Set a privacy level to your preference, but maybe check with anyone else you live with before selecting "show everything". Once the installation is done, you can change the web admin password with `pihole -a -p` if desired, and then log in by typing the Le Potato's static IP into your browser.
The last step to get Pi-hole working on your network is to set its static IP as your router's primary DNS server. The Pi-hole devs recommend setting your Pi-hole device as the only DNS server for the network to guarantee it always gets every request, but I set a couple of fallbacks in case my Pi-hole server ever goes down and it seems to still work fine.
## Post-setup Configuration
Pi-hole has a lot of powerful functionality, but here I'd like to focus on fine-tuning your blocklist. The default one is pretty good, but [The Firebog](https://firebog.net/) has a lot of good ones if you'd like to broaden your coverage &mdash; I use one or two of the green ones from each category.
I live with other people who aren't as tolerant of tech weirdness as I am, so for something that'll affect *everything* on the network, convenience often takes priority over maximum adblocking. In other words, I don't want to break anything. There's an [official list](https://discourse.pi-hole.net/t/commonly-whitelisted-domains/212) of commonly whitelisted domains that are important for certain functionality but get blocked by default, and I use [this script](https://github.com/anudeepND/whitelist) to import them and keep the list up to date automatically with a crontab entry.
Beyond that, [this article](https://avoidthehack.com/best-pihole-blocklists) has a lot of good information blocklist-wise.
---
<h2 id="links">Links</h2>
- [Le Potato official guides](https://hub.libre.computer/t/aml-s905x-cc-le-potato-overview-resources-and-guides/288)
- [Armbian image download page for Le Potato](https://www.armbian.com/lepotato/)
- [Armbian docs](https://docs.armbian.com/)
- [Balena Etcher](https://etcher.balena.io/)
- [Pi-hole docs](https://docs.pi-hole.net/)
- [The Firebog (blocklist list)](https://firebog.net/)
- [Commonly whitelisted domain list](https://discourse.pi-hole.net/t/commonly-whitelisted-domains/212)
- [Common whitelist importer script](https://github.com/anudeepND/whitelist)
- [Avoid The Hack blocklist article](https://avoidthehack.com/best-pihole-blocklists)
---
<p id="n1"><a href="#n1r">1</a>. You can, theoretically, use wi-fi for this, but I would <strong>strongly</strong> recommend against it.</p>
<p id="n2"><a href="#n2r">2</a>. The Le Potato also has a connector for an EMMC module, but that's a whole different can of worms.</p>
<p id="n3"><a href="#n3r">3</a>. Quad9's filtering is intended to block malware domains. I like having it as an extra layer of security on top of Pi-hole. Any of the DNS providers in the list should work fine, and you can always change it later.</p>

View file

@ -0,0 +1 @@
<?php include("../post.php");

View file

View file

20
blog/posts/make_your_own_cables/index.md Normal file → Executable file
View file

@ -10,9 +10,12 @@ So universally is this the case that there is seemingly essentially no market fo
Instead of shelling out Intel Core i3-13100F money for what functionally amounts to 3 meters of wire and a couple of audio jacks, I lopped the connectors off of the old, broken cable and soldered on some new wires and saved myself $140. Instead of shelling out Intel Core i3-13100F money for what functionally amounts to 3 meters of wire and a couple of audio jacks, I lopped the connectors off of the old, broken cable and soldered on some new wires and saved myself $140.
![A "cable" consisting of a 3.5mm TRS headphone connector, a mini XLR connector, and three loose wires joining them](https://isopod.zone/files/37e6c4ec-3834-4580-bfc8-648279fea9dd) <figure class="media">
<div>
It's not pretty<sup id="n0r"><a href="#n0">0</a></sup>, but it works. <img src="homebrewxlrcablefinished.jpg" alt="A 3.5mm jack to 4-pin mini XLR adapter cable with a shiny black braided exterior">
<figcaption>This braided sheathing can be had for cheap on Amazon by searching "braided cable sleeve". I used the 6mm variant here, and it comfortably fits the three 24AWG wires.</figcaption>
</div>
</figure>
This isn't the only time I've had to do this, either — I, through a bizarre series of events, happen to own a piece of musical equipment made in the 1960s, in the Netherlands, with weird output jacks to match: This isn't the only time I've had to do this, either — I, through a bizarre series of events, happen to own a piece of musical equipment made in the 1960s, in the Netherlands, with weird output jacks to match:
@ -22,12 +25,13 @@ These are 2-pin DIN connectors, from the same family as the 5-pin DIN connectors
In order to get this thing connected to my other equipment, I had to fashion my own adapter cable out of a stereo-to-dual-mono TRS splitter cable and two of those connectors purchased standalone from the internet. In order to get this thing connected to my other equipment, I had to fashion my own adapter cable out of a stereo-to-dual-mono TRS splitter cable and two of those connectors purchased standalone from the internet.
![A Stereo 1/4" TRS to dual mono 2-pin DIN adapter cable](homebrew2pindincable.jpg) <figure class="media">
<div>
<img src="homebrew2pindincable.jpg" alt="A Stereo 1/4 inch TRS to dual mono 2-pin DIN adapter cable">
<figcaption>I wonder how far away from me the nearest other cable of this type is.</figcaption>
</div>
</figure>
I'm not going to attempt to teach you how to do this here — there's plenty of people on Youtube who are much more qualified to do that than me — but I think if you're at all comfortable messing with electronics this is a good skill to have. It's proven surprisingly useful to me, not just as a hobbyist who builds weird electronic gizmos for fun but as a casual enjoyer and maker of music. I'm not going to attempt to teach you how to do this here — there's plenty of people on Youtube who are much more qualified to do that than me — but I think if you're at all comfortable messing with electronics this is a good skill to have. It's proven surprisingly useful to me, not just as a hobbyist who builds weird electronic gizmos for fun but as a casual enjoyer and maker of music.
If this ever happens to you, consider saving the money on some bullshit expensive cable and spending it on some [soldering gear](https://pine64.com/product-category/pinecil/) instead. It's easier than you probably think it is and it can save you, like, a lot of money. If this ever happens to you, consider saving the money on some bullshit expensive cable and spending it on some [soldering gear](https://pine64.com/product-category/pinecil/) instead. It's easier than you probably think it is and it can save you, like, a lot of money.
---
<a id="n0" href="#n0r">0</a>. As of writing, I've ordered some cable sleeve to put over this. I'm not a monster. Remind me to replace this photo after it gets here and the cable looks presentable.

0
blog/posts/make_your_own_cables/index.php Normal file → Executable file
View file

0
blog/posts/my_terrible_distro_hop/index.md Normal file → Executable file
View file

0
blog/posts/my_terrible_distro_hop/index.php Normal file → Executable file
View file

12
blog/posts/post.php Normal file → Executable file
View file

@ -20,15 +20,15 @@ foreach($feed->entry as $entry) {
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo($title); ?></title>
<?php echo("<meta name='description' content='$descr'>"); ?>
<link href="/style.css" rel="stylesheet" type="text/css" media="all"> <link href="/style.css" rel="stylesheet" type="text/css" media="all">
<link href="/blog/comment/comments.css" rel="stylesheet" type="text/css" media="all"> <link href="/blog/comment/comments.css" rel="stylesheet" type="text/css" media="all">
<style> <?php
h1 { echo("<title>$title</title><meta name='description' content='$descr'>");
background-image: url('bg.svg'), url('bg.png'), url('bg.jpg'), url('bg.webp'); $bgfile = glob('bg.*')[0];
if(!is_null($bgfile)) {
echo("<style> h1 { background-image: url('$bgfile') } </style>");
} }
</style> ?>
</head> </head>
<body> <body>
<?php <?php

View file

View file

0
chromealert.php Normal file → Executable file
View file

0
etc/index.php Normal file → Executable file
View file

0
etc/quotes/index.php Normal file → Executable file
View file

0
favicon.ico Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
greenhouse/index.php Normal file → Executable file
View file

0
guestbook/feed.php Normal file → Executable file
View file

0
guestbook/index.php Normal file → Executable file
View file

0
guestbook/submit.php Normal file → Executable file
View file

0
images/isopod.php Normal file → Executable file
View file

0
index.php Normal file → Executable file
View file

3
links/index.php Normal file → Executable file
View file

@ -327,6 +327,9 @@
<tr> <tr>
<td colspan="2"><a href="https://seirdy.one/posts/2021/03/10/search-engines-with-own-indexes/">Seirdy - A look at search engines with their own indexes</a></td> <td colspan="2"><a href="https://seirdy.one/posts/2021/03/10/search-engines-with-own-indexes/">Seirdy - A look at search engines with their own indexes</a></td>
</tr> </tr>
<tr>
<td colspan="2"><a href="https://modem.io/blog/blog-monetization/">modem.io - How to Monetize a Blog</a></td>
</tr>
</table> </table>
<h2>More Stuff</h2> <h2>More Stuff</h2>
<table> <table>

3
music/index.php Normal file → Executable file
View file

@ -76,6 +76,7 @@
<a style="--img: url(covers/walks_of_lung.jpg);" target="_blank" href="https://patriciataxxon.bandcamp.com/album/walks-of-lung" ><span>Patricia Taxxon - Walks of Lung</span></a> <a style="--img: url(covers/walks_of_lung.jpg);" target="_blank" href="https://patriciataxxon.bandcamp.com/album/walks-of-lung" ><span>Patricia Taxxon - Walks of Lung</span></a>
<a style="--img: url(covers/realign.jpg);" target="_blank" href="https://vine.bandcamp.com/album/realign" ><span>Red Vox - Realign</span></a> <a style="--img: url(covers/realign.jpg);" target="_blank" href="https://vine.bandcamp.com/album/realign" ><span>Red Vox - Realign</span></a>
<a style="--img: url(covers/american_automatic.jpg);" target="_blank" href="https://en.wikipedia.org/wiki/Kill_Memory_Crash" ><span>Kill Memory Crash - American Automatic</span></a> <a style="--img: url(covers/american_automatic.jpg);" target="_blank" href="https://en.wikipedia.org/wiki/Kill_Memory_Crash" ><span>Kill Memory Crash - American Automatic</span></a>
<a style="--img: url(covers/raw_data_feel.jpg);" target="_blank" href="https://everythingeverything.bandcamp.com/album/raw-data-feel" ><span>Everything Everything - Raw Data Feel</span></a>
<a style="--img: url(covers/fucked_up_friends_3.jpg);" target="_blank" href="https://tobaxxo.bandcamp.com/album/fucked-up-friends-3" ><span>TOBACCO - Fucked Up Friends 3</span></a> <a style="--img: url(covers/fucked_up_friends_3.jpg);" target="_blank" href="https://tobaxxo.bandcamp.com/album/fucked-up-friends-3" ><span>TOBACCO - Fucked Up Friends 3</span></a>
<a style="--img: url(covers/audio_video_disco.jpg);" target="_blank" href="https://etjusticepourtous.bandcamp.com/album/audio-video-disco-1" ><span>Justice - Audio, Video, Disco</span></a> <a style="--img: url(covers/audio_video_disco.jpg);" target="_blank" href="https://etjusticepourtous.bandcamp.com/album/audio-video-disco-1" ><span>Justice - Audio, Video, Disco</span></a>
<a style="--img: url(covers/synthicate.jpg);" target="_blank" href="https://newretrowave.bandcamp.com/album/synthicate" ><span>LAZERPUNK - Synthicate</span></a> <a style="--img: url(covers/synthicate.jpg);" target="_blank" href="https://newretrowave.bandcamp.com/album/synthicate" ><span>LAZERPUNK - Synthicate</span></a>
@ -86,7 +87,7 @@
<a style="--img: url(covers/hawaii_part_ii.jpg);" target="_blank" href="https://miraclemusical.bandcamp.com" ><span>ミラクルミュージカル - Hawaii: Part II</span></a> <a style="--img: url(covers/hawaii_part_ii.jpg);" target="_blank" href="https://miraclemusical.bandcamp.com" ><span>ミラクルミュージカル - Hawaii: Part II</span></a>
<a style="--img: url(covers/concrete_and_gold.jpg);" target="_blank" href="https://www.foofighters.com/" ><span>Foo Fighters - Concrete and Gold</span></a> <a style="--img: url(covers/concrete_and_gold.jpg);" target="_blank" href="https://www.foofighters.com/" ><span>Foo Fighters - Concrete and Gold</span></a>
<a style="--img: url(covers/revolution_radio.jpg);" target="_blank" href="https://greenday.com/" ><span>Green Day - Revolution Radio</span></a> <a style="--img: url(covers/revolution_radio.jpg);" target="_blank" href="https://greenday.com/" ><span>Green Day - Revolution Radio</span></a>
<a style="--img: url(covers/this_is_all_yours.jpg);" target="_blank" href="https://altjband.com/" ><span>Alt-J - This Is All Yours</span></a> <a style="--img: url(covers/this_is_all_yours.jpg);" target="_blank" href="https://altjband.com/" ><span>Alt-J - This Is All Yours</span></a>
<a style="--img: url(covers/the_last_ninja_2_c64_ost.jpg);" target="_blank" href="https://www.youtube-nocookie.com/embed/bjbN2RyZXHI" ><span>Matt Gray - The Last Ninja 2 (C64) OST</span></a> <a style="--img: url(covers/the_last_ninja_2_c64_ost.jpg);" target="_blank" href="https://www.youtube-nocookie.com/embed/bjbN2RyZXHI" ><span>Matt Gray - The Last Ninja 2 (C64) OST</span></a>
<a style="--img: url(covers/aeon_core.jpg);" target="_blank" href="https://perctrax.bandcamp.com/album/aeon-core" ><span>Scalameriya - Aeon Core</span></a> <a style="--img: url(covers/aeon_core.jpg);" target="_blank" href="https://perctrax.bandcamp.com/album/aeon-core" ><span>Scalameriya - Aeon Core</span></a>
</div> </div>

0
nav.php Normal file → Executable file
View file

0
not_found.html Normal file → Executable file
View file

0
old/1/index.html Normal file → Executable file
View file

0
old/1/mobile.html Normal file → Executable file
View file

0
old/1/style.css Normal file → Executable file
View file

0
old/1/tueaday.js Normal file → Executable file
View file

0
old/2/index.html Normal file → Executable file
View file

0
old/2/pages/blog.html Normal file → Executable file
View file

0
old/2/pages/home.html Normal file → Executable file
View file

0
old/2/pages/links.html Normal file → Executable file
View file

0
old/2/pages/music.html Normal file → Executable file
View file

0
old/2/pages/stats.html Normal file → Executable file
View file

0
old/2/script.js Normal file → Executable file
View file

0
old/2/shared.css Normal file → Executable file
View file

0
old/2/themes/alterra/style.css Normal file → Executable file
View file

0
old/2/themes/deeptwisty/style.css Normal file → Executable file
View file

0
old/2/themes/default/style.css Normal file → Executable file
View file

0
old/2/themes/geocities/style.css Normal file → Executable file
View file

0
old/2/themes/gruvbox/style.css Normal file → Executable file
View file

0
old/2/themes/none/style.css Normal file → Executable file
View file

0
seasonal.php Normal file → Executable file
View file

0
stats/index.php Normal file → Executable file
View file

0
stats/packages.txt Normal file → Executable file
View file

0
stuff/EnchantedToolsPack_v1.zip Normal file → Executable file
View file

0
stuff/beat/digital.css Normal file → Executable file
View file

0
stuff/beat/frame.php Normal file → Executable file
View file

0
stuff/beat/index.php Normal file → Executable file
View file

0
stuff/beat/pixel.css Normal file → Executable file
View file

0
stuff/beat/sketch.css Normal file → Executable file
View file

0
stuff/beat/time.php Normal file → Executable file
View file

0
stuff/firefoxrss/feed.php Normal file → Executable file
View file

0
stuff/index.php Normal file → Executable file
View file

0
stuff/neon_boost_times.html Normal file → Executable file
View file

0
stuff/rssfilter.php Normal file → Executable file
View file

21
stuff/spotifycdnsilly/ip.php Executable file
View file

@ -0,0 +1,21 @@
<?php
$addr = $_SERVER['REMOTE_ADDR'];
$url = "https://seed-mix-image.spotifycdn.com/v6/img/desc/$addr/sv/large";
$img = "<img src='$url' alt='Spotify: $addr'>";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo($addr); ?></title>
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
<?php echo("<meta property='og:image' content='$url'>"); ?>
</head>
<body style="display: flex; align-items: center; justify-content: center;">
<?php echo($img); ?>
</body>
</html>

0
stuff/webgarden/image1.html Normal file → Executable file
View file

0
stuff/webgarden/image2.html Normal file → Executable file
View file

0
stuff/webgarden/image3.html Normal file → Executable file
View file

0
stuff/webgarden/image4.html Normal file → Executable file
View file

0
stuff/webgarden/index.php Normal file → Executable file
View file

0
stuff/webgarden/status.php Normal file → Executable file
View file

0
stuff/webgarden/style.css Normal file → Executable file
View file

0
stuff/webpkiller/webpkiller.cmd Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more