Server and Deployment
Adding a New SSH Key to EC2Add a new key pair to a running EC2 instance without losing existing access: key creation in AWS, local setup, public key extraction, and authorized_keys update.
CUDA Setup on Ubuntu 24.04Verify CUDA availability, install the CUDA Toolkit compiler (nvcc), configure environment variables, and confirm GPU access from Python.
Docker Compose Production Deploy on UbuntuEnd-to-end Docker Compose production deployment on an Ubuntu server: install Docker, run the stack, keep after reboots with systemd, and day-to-day rebuild flows.
EC2 Swap File SetupAdd a persistent swap file to a small EC2 instance so memory spikes degrade into a slowdown instead of a hard OOM freeze that kills SSH access.
Find Local Network IPFind the IPv4 address of a Linux machine on the local network so another device can reach it over SSH.
Local SSH vs EC2: Reachability and AuthWhy a LAN device connects over SSH with just a password while EC2 needs a .pem key: reachability and authentication are separate, independent concerns.
n8n EC2 arXiv RadarDeploy private n8n on EC2 with Docker Compose and build a daily arXiv research digest workflow delivered by email.
Reach a Local Host by Name over SSHStop chasing a changing DHCP IP: reach a Linux host on the local network by a stable .local mDNS name or a DHCP reservation, and pick the right interface.
SSH into a Local Network DeviceConnect from a Linux host to another device on the same local network over SSH, using a named host alias in ~/.ssh/config.
SSH into EC2 from Linux HostConfigure and connect to an AWS EC2 instance over SSH from a Linux host using a named host alias in ~/.ssh/config.
systemd and Nginx Fullstack DeploymentDeploy a Next.js frontend and FastAPI backend on Ubuntu with systemd, Redis, Celery, Nginx, and Cloudflare Origin Certificate SSL.
Transfer Files Between Machines with rsync over SSHMove or copy folders between two Linux machines on the same network using SSH for the connection and rsync for the transfer, with a dry-run and verify step.