ActiveDebianSync Service - Standalone installation
ActiveDebianSync is integrated into Artica, but you can also run it directly on your own servers via command line and REST API, without having to install Artica first.
ActiveDebianSync is integrated into Artica, but you can also run it directly on your own servers via command line and REST API, without having to install Artica first.
Prerequisites
- System
OS: Debian 10,11,12,13 (Bookworm) or Ubuntu 22.04+
Architecture: amd64, arm64, or i386
Kernel: Linux 4.x or newer
Systemd: version 240+ - Recommended minimum resources
CPU: 2 cores
RAM: 2 GB
Disk: 100 GB (full Debian ≈ 70–80 GB)
Network: 100 Mbps
CPU: 4–8 cores
RAM: 4–8 GB
Disk: 500 GB – 1 TB (SSD recommended)
Network: 1 Gbps
Softwares (only for commands and tool, the main daemon did not require it )
apt-get install -y dpkg rsync wget curl jq git
Install the daemon
Compilation:
git clone https://github.com/dtouzeau/activedebiansync.git
cd activedebiansync
go build -ldflags="-s -w" -o activedebiansync main.go
Or download it directly from git from the release page
wget https://github.com/dtouzeau/activedebiansync/releases/download/1.0.6/activedebiansync
chmod 0755 activedebiansync
sudo cp activedebiansync /usr/local/bin/
sudo mkdir -p /etc/ActiveDebianSync
sudo mkdir -p /var/lib/ActiveDebianSync/mirror
sudo mkdir -p /var/log/ActiveDebianSync
sudo cp tools/activedebiansync.service /etc/systemd/system/
sudo systemctl enable activedebiansync
sudo systemctl daemon-reload
sudo systemctl start activedebiansync
FAQ
- How long does the initial synchronization take?
It depends on your bandwidth.
For bookworm amd64 main (~40–50 GB), expect 1–4 hours on a 100 Mbps connection. - Can I synchronize multiple Debian releases?
Yes, just add them todebian_releases: ["bookworm", "trixie"]. - How do I limit bandwidth usage?
Use system-level tools liketrickleortc. ActiveDebianSync does not include built-in bandwidth throttling. - Can I use a local mirror?
Yes, setdebian_mirrorto your preferred local mirror. - Does the service use a lot of RAM?
No, typically around 50–200 MB. The systemd memory limit is 2 GB. - Can I host multiple architectures?
Yes, add them underdebian_architectures: ["amd64", "arm64"]. - How do I secure the REST API?
Keepapi_listen_addrset to "127.0.0.1" or define trusted ranges withapi_allowed_ips. - Can I change the synchronization interval?
Yes, adjustsync_interval(in minutes) in the configuration. - What happens if the server restarts during a sync?
Synchronization will automatically resume thanks to HTTP Range support.