The little box of services

AI Disclosure:
No AI was/is used for this. A human is behind it all.


What started as simple curiosity and a bunch of parts left over from upgrades I’ve done to my main PC over the years, ended up with a “box of services” that I like the result of, so here we are.

The hardware

Most of the hardware of this rig is stuff I had gathering dust and never got around to sell or give away (the power supply, a small ssd, the ram kit I upgraded my main pc from [thank god I forgot to sell that, 16 gb of ddr4 is too valuable these days as it seems]), and a few things I had to buy because over the course of running this system, some of the parts gave out (mainly the mainboard, which was never reliable to begin with). The only parts bought new are basically the case, the cpu cooler, the big storage drive and 2 fans. In order not to make this post much longer than it already is, I’ll just post a pcpartpicker link where the complete specs of the server are available for anyone interseted in seeing what runs the services described below: Say hello to my catch-all server.

From spare parts to media center

I thought I should finally have a collection of movies I like, readily available, somewhere that won’t shit the bed out of the blue (which is exactly what happened to the very first movie collection I had - all in an external drive that one day decided to stop working - and I think it’s pretty much unfixable at this point). And so, I decided to grab some parts from my garage, and piece together a living room pc that would play movies (or youtube, twitch, what have you), while I’m having my lunch/dinner.

I started with windows but eventually ended up choosing debian as the base platform everything will run on. I found out about jellyfin and plex, which both do what I’d like: offer a nice ui I could browse my movie collection from, and as a huge bonus, be able to access said ui from whatever device I like so long as it’s in the same lan. So now, my media center pc would also be a media server. Pretty cool.

I quickly discarded plex since it’s started going its own way, which I didn’t particularly like (don’t want a 3rd party to peek in the movies and shows I’ve obtained or even worse, have the complete TV experience with ads all over). Set up jellyfin, gave it hardware acceleration using my igpu, and yeah, it works. Very well might I say so. After a few upgrades (mainly a drive large enough so I can actually start having a library, and a case that would allow for future storage upgrades without much thought), I’ve been loading it up with movies & shows I know I like (I want to have a library of sorts, so this is a nice way to do it), as well as a few I would like to watch in the future.

Free netflix anyone?

I told my friend “hey I’ve set up this box for movies”, he thought it’s cool, and even told me to keep a few movies for him since I now had the storage for it. But what if I went a step further than just storing his movies in my server? Jellyfin allows you to stream whatever you’ve pointed it to.

Tailscale to the rescue

Did some research, and found out, tailscale was exactly what I need: it allows me to publish my jellyfin instance, but without turning my router’s firewall into swiss cheese. The only caveat is that my friend would have to install a program so I can get him to my tailnet in order for him to access jellyfin. I had already made an account for him, so I just guided him through installing tailscale and connecting him to my tailnet. The process was pretty easy and once done, he could just punch in the address and he could stream anything from my entire media collection.

Who needs thumb drives?

For a while I didn’t do much else with my server. It just sat in the living room, 24/7 available for whoever would like to use it. However, I found another issue this little box could solve: I very often transfer files between my main rig and my notebook, which I take to work with me. The way I quickly transferred files between the 2 systems is thumb drives and sneakerware. There’s a smarter solution though: SMB.

Now setting up samba on linux can be a pain in the arse because you have to get the permissions just right (especially since I’ve a mix of windows and linux installations that would take advantage of the server’s shared storage), which took me a while to figure out. Eventually I locked a setup in, permissions and everything:

Now I have a very easy way to just get files from one pc to the other, or even my phone too.

A better way to keep track of recipes

So more time passed, and I thought to myself “there has to be an easier way to check on recipes I’ve written down without having to look on my phone’s notes’ app” (spoiler: I never look at it). Luckily, I found a few candidates for it, with the most suitable to my use case being Mealie. This one needed docker to run on, which I wasn’t particularly enthusiastic about (I want as much stuff to run on bare metal as possible), so I had to learn how to set it up without the docker desktop program, as there’s no need for that. I figured that out, and set it up. It’s honestly great, even more so because thanks to tailscale that I’m already running, my friend can also browse the recipes I’ve saved there. Even his girlfriend (who he showed it to) liked it. No complaints from my part either, except that for some reason, it needs a total of 3 docker containers to function.

An easier way to use the services

So now I have a jellyfin instance, that either me or my friend can use to stream movies/shows off of, and it’s pretty much a free netflix platform, as well as a recipe webpage where the both of us can either create, rate, comment on, or just browse through recipes either of us have posted up (so far it’s only been me though). That however, along with the fact my friend has to be connected to my tailnet in order to access them, as he lives in a different city than me, presents a new issue: keeping track of addresses. I need a way to not have him write down 100 different addresses in order to access all the services I’m hosting. In other words, I need to make a webpage, some sort of portal, where one would visit, and then could go to one of my available services through said portal. The idea was simple, and I already had in mind a concept of how it would look like: Yahoo Japan.

I know, it looks very dated, but I wanted to make something very simple, functional, but also easy to navigate. I also wanted a news feed in it, which meant I had to utilise the forgotten art of RSS. I set about making a webpage that would do what I needed, but along my research, I found there are projects that more or less did what I wanted, albeit with a few customisations from my part. The one I liked the most was Glance. This one uses docker, which is less ideal than I’d like, but I thought I’d give it a go. It needed a few changes to get it to look as much as yahoo Japan as possible, but I’m satisfied with the result so far:

The RSS feed being the centerpiece, a simple weather report to the right for where me & 2 of my friends live in, as well as “shortcuts” to the services I host. It’s also got a cool search bar (more about the search engine it uses is further down)

And the nice bonus is that you can add a reddit feed with threads you want to keep track of. In my case, I’m in the unfortunate position that my favorite type of meme originates from reddit. Thanks to glance though, I don’t have to visit the actual website, I can go straight to the posts, get my meme fix, and leave.

Curated search results are getting on my nerves

Make a search using google or bing. I bet the first results you’ll get are promotions or ads. This isn’t new, but it’s still annoying. I’d been using brave search for a long time as my search engine of choice, and before that, duckduckgo. However, the AI summaries I didn’t need and the skewed results were there too (still not as prominent as google, bing, yahoo or what have you, but they are there).

Screw it, I’ll get my own search engine

SearXNG is a search engine that allows you to run it on your own hardware, and collects results from other search engines (google, duckduckgo, bing, yahoo, yandex etc.), presenting them to you without AI summaries, without ads, just like google once used to be. It’s pretty nifty, runs on docker (sigh - I’ll allow it, it’s one container unlike mealie), and it’s by far the most used service I run on my server. If I had to recommend something to host to someone who has no idea where to start from, it’d probably be this:

The server in present day

At this point I’ve had the server in this exact hardware configuration (mentioned at the very beginning of this post) for about a year, and in slightly different configurations for around…3? I like it more than I initially thought I would, but alas, it’s not complete.

Future upgrade plans

At the moment, the server’s storage drives are:

  • A 4 TB HDD that hosts all my media (movies & shows)
  • A 500 GB HDD I managed to Wendell back into a serviceable state (more about on how this can be done is found here: bring your drive back from the dead. This drive is where I throw files I want to transfer from one pc of my home network to another
  • A 120 GB SSD that is pretty much the boot drive, and also holds my docker containers

While I’m fine on the available space department, there are a few things I would like to do that require me to get more storage:

  • I have an external drive mostly for things I don’t immediately need, but I do like to have on hand. If I manage to upgrade my main rig’s storage (which is in dire need of an upgrade for the past…5 years?), this is where an internal solution for the server will come from.
  • Backups. Backups in general. Backups of the server (such as docker containers), backups of some files I have in both my main rig and my notebook, as well as everything I’ve in my phone, and a backup of the custom firmware powering my nintendo 3ds. This one will take the longest to figure out (as well as finance), since I’m not so sure how shall I plan it out (will it be a single large drive? Will it be 2 of them for redundancy? Maybe 3 for even more redundancy?), but I do know I’d like around 8 - 12 TB of usable storage, and with the current state of the market, I’m not in a rush.

Things I’d love to do with this server but haven’t

  • Since 2 of my friends find themselves using ai quite a lot (one of them is a devops engineer, the other is a college student who’s getting into programming), I’ve thought about hosting a couple LLMs for them (maybe hermes even? Who knows), but I simply don’t have the hardware to upgrade my server to support such a scenario, so that will also be an upgrade but in the distant future. Video generation for memes is also a potential reason to try out local AI models. Either way, it’s just a thought, at least for now (the current state of the market doesn’t help at all).
  • The server currently runs debian linux. I’ve been toying with the idea of switching to gentoo, as painful as it is (due to compiling times), so I can optimise every package I would want to use specifically for this rig, and have a more minimal footptint. I’m playing around with such a setup on a virtual machine, but it’s still just an idea. I’m not sure if I actually go forward with this plan. Compilation times are the main hassle here.
1 Like