Installing Gerrit Code Review

This guide walks through installing Gerrit Code Review, securing it with NGINX as a reverse proxy, and configuring HTTPS using SSL certificates.Tested with Ubuntu 22.04/24.04 and Gerrit 3.9.x. 1. Install Required Packages Run the following on the VM that will host Gerrit: 2. Create User Accounts with htpasswd NGINX uses an .htpasswd file to store … Read more

PostgreSQL 16 on Ubuntu 22.04

PostgreSQL 16 is the ideal choice for this environment because it delivers major improvements in performance, parallel query execution, index efficiency, and write-ahead logging throughput—all of which directly benefit Git metadata workloads and AI/ML-related query patterns. PG16 also includes enhanced vacuum performance, faster sorting, and better handling of high-concurrency workloads, making it extremely well-suited for … Read more

WordPress for documenting and sharing information.

One of the key elements of managing a home lab is documenting every single step and keeping that documentation updated. There are many platforms suitable for this purpose, but I prefer WordPress because it is convenient, flexible, and easy to maintain. This post captures the exact steps I used to deploy a production-grade WordPress instance … Read more

Ubuntu 22.04 Repository Mirror

Having a local Ubuntu repository mirror greatly improves package download speed and removes external dependencies during system updates. For my lab setup, I created a dedicated VM to host the mirror, exposed securely over HTTPS using Apache. This post documents the complete setup—from installing apt-mirror to configuring TLS and preparing the repository structure. Note on … Read more

Wildcard SSL Certficates

Enabling SSL/TLS on every site—whether in a home lab or in production—is a good practice. While Let’s Encrypt offers free certificates suitable for most setups, I prefer using eMudhra’s emSign CA, especially for wildcard certificates and environments where commercial CA validation is preferred. This post documents the complete process of generating a wildcard SSL certificate … Read more

Orchestrating VMs using scripts and templates

We need to reliably spin up dozens of VMs, some with vGPU, all with consistent networking and storage, so manual provisioning is no longer sustainable. The management server hosts a lightweight orchestration system that automates the creation, customization, and launch of KVM VMs. This system uses a set of template files and three shell scripts … Read more

Install KVM and Build a Custom Ubuntu 22.04 Cloud Image

This post documents the complete process of installing KVM on the management server and building a clean, optimized, minimal Ubuntu 22.04 VM template. This template will serve as the base image for all orchestrated VMs in the lab environment. 1. Install KVM Install KVM, libvirt, and required virtualization tools: Ensure VMs auto-start when libvirtd restarts: … Read more

Management Server for Home Lab

In a home lab that also serves as an R&D environment, frequent rebuilds, upgrades, and full reinstall cycles are inevitable. To avoid losing critical documentation, Docker repositories, source code, and other persistent assets, I decided to dedicate one physical server exclusively for management. This system now hosts all essential services and a lightweight K3s cluster … Read more