:~$

whoami

Yusuf
Aiva Yuki

Computer engineering student in Bandung who runs the infrastructure he learns on: one Proxmox node, ten guests, a hardened router, and small services people in this house actually use.

Everything below is deployed. Most of it broke at least once, and the interesting part is what the failure taught me.

role
S1 Teknik Komputer
where
Telkom University
how
self-taught
# not a real shell. this page ships a small command reader:
# ls · cat <name> · whoami · stack · theme <dark|light|auto> · clear

about

Where the interest started, and what I do with it now.

I learned computers by breaking the ones at home and having to fix them. That turned into a lab: a Proxmox host where the media server, photos, cameras and home automation all live, on a network I configured and can explain line by line.

I like the part after the tutorial ends — a service that stays up for months, a router rule that actually blocks the thing it claims to block, a sensor that reports a real slope instead of a clean demo. So I test claims instead of trusting them, including my own: if I say a system is locked down, I want a command whose output proves it.

This page is the short version. The long version, with the incidents and the numbers, lives in my write-ups: github.com/yesyuki/homelab.

services

What runs as a user unit on the always-on box. Expand a row for the decisions.

active portal.service one page that answers “is everything up?” python 3.13 stdlib · systemd --user

the problem

Six web UIs to answer one question. Proxmox, Home Assistant, Frigate, the media server — each with its own login and its own idea of “healthy”.

the shape

A server-rendered dashboard: one tile per service, a TCP connect to host:port, a thread pool probing everything in parallel with a 1.5 s timeout, a 15 s cache and in-flight coalescing so ten open tabs cost one round of checks. Proxmox and Home Assistant data is read server-side, so their tokens never touch the browser.

decisions

  • Stdlib only. No pip, no CDN, no npm. The page fully renders with the internet down, which is when a status page matters most.
  • TCP, not HTTP. A proxy answering 200 is not the app being alive.
  • User unit. No root, no container tax for something that only reads APIs.

~1,050 lines of Python · 15 services · private repo, available on request

active stockroom.service stock in/out with an audit trail that means something flask · sqlite · qrcode · openpyxl

the problem

A real shelf, two people, one spreadsheet. The sheet breaks the moment both write to it, and it never says who moved what.

the shape

Flask + SQLite, about a thousand lines and ten templates. Scan a QR label, type the quantity, press Enter. Every movement carries the signed-in user, so the history is attributable by construction.

decisions

  • Shared logins are refused, not discouraged — a single account makes the audit trail decorative.
  • SQLite on purpose. One writer, a few thousand rows, one box: the file is the backup. Postgres would have been a status symbol.
  • Exports are a feature. Excel snapshot and full log, because the people who use this trust spreadsheets.
  • QR is 2D. A 1D laser scanner will not read it; that is written down instead of discovered at the shelf.

tests for the transaction paths · private repo, available on request

building kotoba.service Japanese subtitles, split per word, while the episode plays python · jmdict sqlite · tokenizer

the problem

Watching anime with Japanese subtitles means pausing, typing a word into a dictionary, and losing the scene. The lookup should happen where the word is.

the shape

A local player that tokenises each subtitle line, looks the tokens up in an offline JMdict database, and shows reading and gloss underneath the subtitle as it plays.

state

  • Player, caching and per-line alignment work.
  • Dictionary lookup works offline; no account, no API key.
  • Next: review queue for the words I actually had to look up.

the reason I got serious about Japanese · in progress

There are more units than this — backup timers, a dashboard, a weekly budget ledger. These are the three worth explaining.

guests

One Proxmox node, ten guests. The ones that do real work:

Virtual machines and containers on the Proxmox node
idguestwhat it does
100home-assistantOS VM — two ACs, two cameras, per-person dashboards
101frigateNVR — 30 days continuous, 2 cams, CPU detection by choice
102immichphoto library, phone uploads, no cloud
103nginx-proxy-managerone place for hostnames and certificates
104pixelfedself-hosted photo feed
105bookorbitbook and document shelf
106myspeedinternet speed history — to argue with the ISP with data
107pufferpanelgame server control
108mediathe household’s films and series

frigate: what the cameras taught me

Two cheap IP cameras, 30 days of continuous recording, 14 days of motion retention, detection clips with 5 s pre- and post-capture. CPU detection on purpose — two low-frame-rate cameras fit, so no Coral to buy and no GPU to pass through.

the auth story is in notes

home assistant: the control plane

An ESP32 bridge for the bedroom AC, a Tuya unit in my parents’ room, cameras as entities, MQTT for events, and one dashboard per person. Users are provisioned over the WebSocket API instead of clicking, passwords are generated and handed over as “change this first”.

plus the permission model Home Assistant does not have

hardware

Things with a power budget instead of a config file.

course project · five-person team · budget under Rp1 M

LandSlide Alert Unit

A three-level warning unit for a road cutting on the Sungai Landia provincial road in Agam, West Sumatra, where an afterslide once stopped the excavator clearing the first one. ESP32, two soil-moisture probes, an MPU6050 for tilt and vibration, a rain sensor, a latched alarm that only staff can reset.

  • Honest about its limit: the tilt trigger is post-onset. It protects cleanup crews during afterslides; it does not predict the first failure.
  • Analog on ADC1 only — ADC2 dies the moment Wi-Fi comes up, so the channels were assigned around that instead of debugged after.
  • Power before purchase: 7.7 Wh usable works out to 30–40 h at idle, which is what set the solar panel and buffer size.

Agam, West Sumatra · ESP32 · 30–40 h on battery

ESP32 AC controller

IR control for the bedroom AC, so the cloud app and its account disappear from the path. ESPHome on the LAN, Home Assistant as the only interface.

wiring + firmware notes in progress · in build

DIY Bluetooth speaker

A used car speaker, an amplifier board and a Bluetooth module in a box that still works. The first project where I learned that grounding and enclosure matter more than the parts list.

basic electronics · still in one piece

router audit

  1. Root had no password and SSH allowed it. Fixed with a strong password hashed off the device, plus a config backup taken before touching anything.
  2. Guest Wi-Fi isolated properly: its own subnet, client isolation, internet only — no route to anything in the house.
  3. The ISP intercepts DNS. Proved it by querying a resolver directly from the WAN side, then moved the router to DoH and confirmed the answers started coming from the resolver I chose.

notes

The part of the lab worth publishing. Full write-ups in the repo.

  1. frigate, auth

    “Auth enabled” enforced nothing: with no roles defined, /api/config, /api/events and 30 days of recordings answered any device on the LAN. Test authentication by curling from another host, not by reading the config file.

  2. home assistant, permissions

    HA has no per-user entity permissions. A standard user pulled all 255 entities from /api/states, cameras included. Per-user dashboards with conditional cards are good UX and not a security boundary — say so out loud.

  3. proxmox, tokens

    An API token with privilege separation off is root with a shorter password: 47 privileges, including allocate, delete and migrate. One token per consumer, in a 600 file, so revocation stays surgical.

  4. esp32, analog

    ADC2 is unavailable while Wi-Fi is up. Every analog channel lives on ADC1, and that constraint goes in the schematic, not in the postmortem.

Longer versions, with the commands and the mistakes: github.com/yesyuki/homelab ↗

contact

Open to internships, student orgs, and arguments about home networks.