Auto-mounting USB Drives with udev

This is a feature that’s now available on virtually all computers - the system automatically searches for devices in the background and mounts them. This feature might not be very useful in headless Linux systems, as USB drives need to be manually mounted each time. So I decided to write a script to automate USB mounting. The goal is: when inserting a USB drive, the system automatically mounts it at /path-to-mount/label, where label is the USB drive’s name (note: avoid inserting two SD cards with the same label)....

2025-06-14 · 5 min · 987 words · Kyxie

Installing PVE on x86 Mini PC

PVE Installation Steps Download PVE from the official website Use Etcher to flash the image to a USB drive Connect HDMI cable to monitor, connect keyboard and mouse to mini PC, insert USB drive, and boot Press F7 to enter BIOS and select USB boot Choose Graphical installation, configure IP address, username, password, and follow the prompts After installation completes, connect the mini PC to the router, then access PVE at <pve_ip_address>:8006....

2024-12-15 · 3 min · 473 words · Kyxie

Installing Linux Server with USB

Prerequisites Monitor HDMI cable to connect to monitor Keyboard USB drive with at least 8GB capacity Network cable Installing the System Download the image from Ubuntu or Debian official website Prepare a USB drive with at least 8GB capacity, install Etcher, and flash the Ubuntu image to the USB drive following the instructions Insert the USB drive into the PC, boot, and repeatedly press F7 (different motherboards use different keys) to enter BIOS Allocate the entire disk to Ubuntu....

2024-12-14 · 4 min · 672 words · Kyxie

Creating OpenWrt as a Docker Image

Installing Docker Following Docker’s official documentation, first uninstall all conflicting packages. apt-get may indicate some packages are not installed. Ubuntu: for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done Debian: for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done Set up Docker’s apt repository: Ubuntu: # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download....

2024-12-12 · 3 min · 427 words · Kyxie

Using SSH Keys for Passwordless Linux Access

By using SSH keys, we can log into Linux without a password (and this is the recommended approach). This way, you won’t need to enter a password every time you SSH to Linux. Generating Key Pairs You can generate keys anywhere - on the client, server, or third party. Even in Vaultwarden for easy management, as long as you keep them secure. On Windows/Mac/Linux, enter: ssh-keygen Keys are typically generated in C:\Users\Username\....

2024-04-25 · 2 min · 272 words · Kyxie