Article PDF view. Use browser print/save if no generated PDF artifact is available.

Hedegreen Research · Article PDF

The Server I Already Owned

I moved the Hedegreen Research workspace off my laptop using an old Acer and two hard drives I already owned.

2026.12.04 01:54 Dennis Hedegreen build v1.0 https://hedegreenresearch.com/articles/the-server-i-already-owned/

I thought I needed more hardware. What I actually needed was an inventory.

I have been talking about building local infrastructure for Hedegreen Research since April. In one of those articles, I wrote that I wanted more of my work to happen on machines I controlled. By June, in Day 0.3, I had identified the router, internet connection and local storage as the next bottlenecks. On 3 December, Ubuntu made its own contribution to the discussion: my laptop had 833.6 MB of free space left.

There was an old Acer in my apartment with a fourth-generation Core i5 and 4 GB of RAM. I had owned it throughout the entire lifetime of Hedegreen Research. Apparently, discussing the need for a server had been easier than turning it on.

I had also acquired some hard drives from my son's grandfather's old Plex setup. After removing the DVD drive, rearranging the hardware and improvising a mounting solution involving blue foam, the Acer had two hard drives with nearly 2 TB of raw capacity between them. I installed Debian and named it hr-node01. The foam is not a permanent mounting solution, but at least I had finally found a use for the computer.

The laptop's second career

The first problem was getting Debian online. I had no router connected, so I found an Ethernet cable, which was of course too short. I moved the laptop instead. Codex configured internet sharing, and the laptop that was supposed to be relieved of some of its responsibilities was given an additional job as a router.

Once SSH worked, I could remove the screen, keyboard and mouse from the server. It was surprisingly quiet, which was a relief because I had another old server that sounded like an aircraft preparing for take-off. That one can wait until Hedegreen Research has a space of its own. I would rather not spend the next few years shouting at my computer.

While the infrastructure agent was checking the disks, another agent investigated my neglected Git repositories. It found 38 local checkouts, 40 remotes and more than 200,000 untracked paths in the main repository. Around 150,000 were in build directories. There was clearly a reason my laptop was unhappy, and apparently I had been very good at providing it with more reasons.

The Git agent prepared twelve change commits and two merge commits for review. Six approved pushes were completed on private review branches. Meanwhile, the server passed its short and extended disk self-tests. The old drives had recorded errors in the past, so I decided that one would hold the active workspace and the other would hold encrypted, versioned backups. I wasn't going to mistake a successful disk test for a warranty.

I only wanted it to beep

I wanted to make the server's internal speaker beep, just to prove that I could send a command from the laptop and make something happen in the physical world. Then I found my SONOFF Zigbee dongle, and things got slightly out of hand.

The dongle still remembered the Zigbee network I had configured in the spring. Codex found my old Home Assistant installation, its databases and backups, and moved it to the server without resetting the network or pairing the lights again. I had forgotten the Home Assistant password, which was rather inconvenient until I remembered that I was also the administrator.

The first light went out and came back on. The second responded, and soon my apartment was green. Then Codex claimed there was a third light. I thought I had two, but after a test command I went into my bedroom and found the third one glowing purple. There is something mildly unsettling about having to leave your chair to check whether a computer is correct about the contents of your own bedroom.

Home Assistant was now running on the Acer and using around 450 MiB of RAM. I started thinking about using the lights for notifications from HR: a reply to an email, a failed job or a completed backup. None of that was necessary to solve the storage problem, but by this point neither was most of the afternoon.

I also found two unused routers. This was particularly embarrassing given the amount of effort we had put into making a network without one. I still wanted a GL.iNet Flint, so I prepared a slightly unusual email asking whether the company might donate a router. I could offer an entry in HR's Transparency Ledger, not a favourable review. My economic argument was that giving me a router now might help me become a paying customer sooner. I called it a chain reaction with a sample size of one.

The yellow cable

Eventually we returned to the hard disk. The HR workspace occupied around 72.54 GiB and contained roughly 415,000 files. Because many preview files were hardlinked, copying everything as independent files could have used considerably more space than necessary. Codex preserved those relationships and asked me to stop editing the workspace while it was being copied.

I had built a collection of systems to help me work, and one of them was now telling me to stop. I accepted the maintenance window rather reluctantly.

The network was running at 100 Mbit/s. I went looking for another cable and found a yellow Cat5e in a box. After Codex paused the transfer, I replaced the blue cable, and the two machines negotiated a full-duplex gigabit connection. Ten times the link speed for no money. I am fairly certain the colour had nothing to do with it.

By the evening, all 516,653 entries in the copied workspace matched the source, including their contents and metadata. The 38 Git checkouts were verified, and the first Restic snapshot stored 33.8 GiB after compression and deduplication. The full restoration test later passed, too. I was allowed to resume work on the laptop while the server continued its checks.

This was useful, because I had remembered another thing I had already built. In April, I made a small GTK launcher for my applications and scripts. I had hardly used the HR version for months. By the time the backup was running, Codex had investigated its 27 application entries and produced an isolated prototype with an infrastructure tab for monitoring multiple computers. The interface was still using simulated data, but all 42 automated tests and 108 GTK checks had passed. It can eventually sit alongside Operating Panel, which I use to manage the work itself.

Somewhere in between, I found an audio mixer, a red aircraft-style switch, a small solar panel and bags of electronic components. We discussed whether the mixer could become a physical control surface for lights or AI parameters, and whether the red switch could request a controlled shutdown of HR services. I then looked under the desk and counted six more laptops. I had apparently been running a very badly organised electronics warehouse without knowing it. Nothing from this particular round of discoveries has been wired up yet.

I went to Netto in the evening, taking the internet connection with me. Codex had confirmed that the restoration and its checks would continue on the server without either the internet or the SSH session. When I returned, the first migration and backup stages had passed. For once, going out to buy dinner had not prevented the computer from doing its job.

The final move was less entertaining. I was asked to stop working again, and Codex briefly closed unexpectedly. For a moment I wondered whether the IT department had tried to move itself. Fortunately, the crash had happened during the preparations rather than the move. There was still a perfectly good copy of HR on the laptop, another on the server and a verified backup.

The second synchronisation needed to transfer only about six megabytes of changed file data. Getting the applications to work on a different computer took rather longer. One database had to be recovered from the earlier backup, and the server needed its own Codex login and a carefully restricted GitHub connection. Shortly after midnight all six HR services were running on the Acer, and the familiar HR folder on my laptop pointed to the server. My existing Codex login still worked. The new backup added only about 33 MiB of compressed data, and both its full read check and a targeted restoration of the changed files and database exports passed.

Not everything worked perfectly. Operating Panel's Agent Desk could still not create tasks directly in the laptop's Codex desktop application. To be fair, that feature had never worked particularly well in the first place. It could wait. The daily backup was scheduled for around half past three in the morning, although the first scheduled run had not yet taken place.

At about one in the morning I restarted the Acer from my laptop. SSH disappeared, which was mildly alarming even though I had just told the machine to do exactly that. A minute or so after booting, all six HR services were running again. The network folder was readable, the local website preview opened and Home Assistant still worked. My rather dramatic first attempt to see whether the server could beep had ended with a machine that could restart an entire research workspace without me.

I had bought no new hardware for the project. That does not make the electricity, equipment or hours of work free, and the server still needs an independent internet connection. It also doesn't mean the old disks will last forever.

There was just one minor detail. At the last reported measurement before the restart, my laptop still had 3.14 GiB of free space. I had spent the better part of a day, and now a small part of the next one, solving a storage problem without removing the files that occupied the storage. The original workspace was still sitting on the laptop as a read-only rollback copy.

So I decided to make this article the last test of the evening. If you are reading it on Hedegreen Research, I managed to get it through Operating Panel after moving the system to its new home. Once the final checks for removing the old local copy are complete, I intend to approve its deletion and go to bed. The files are on one hard drive in the Acer, with a tested backup on the other. I see no particular reason why I should have to sit in front of the laptop and supervise the disappearance of several hundred thousand files.

I thought I needed more hardware. What I actually needed was an inventory.

And we haven't even been to the attic yet.

— Dennis Hedegreen

Relation Memory

Source Notes

AI Metadata