Video coming soon…
🛠️ Setup Atuin — Self-Hosted Shell History Sync
Deploy Atuin on Ubuntu with Docker and PostgreSQL — a sync server for your shell history that stores it in a searchable database, encrypted and synced across machines, on port 8888.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/atuin/atuin-ubuntu.sh
chmod +x atuin-ubuntu.sh
sudo bash atuin-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/atuin/atuin-ubuntu.sh
2 Make it Executable
chmod +x atuin-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, generates a database password, and starts the Atuin server with PostgreSQL 16 on port 8888, with open registration enabled so your machines can create an account.
sudo bash atuin-ubuntu.sh
4 Point the Atuin CLI at Your Server
There's no web UI — install the Atuin CLI on each machine, set the sync address to your server, then register and sync:
atuin register -u <you> -e <email>
Ports Used
| Port | Purpose |
|---|---|
| 8888 | Sync API (host → container 8888) — CLI-driven, no web UI |
| internal | PostgreSQL 16 (atuin-db, not published) |
| ./db | Synced (end-to-end encrypted) history |