Overview
aria2 integration scripts update thebt-tracker configuration option in your aria2.conf file, ensuring all BitTorrent downloads use the latest high-performance trackers from TrackersList.
Prerequisites
Before you begin, ensure you have:
- aria2 installed and configured
- Go or Bash environment
- Write access to your aria2 configuration file
curlorwgetfor downloading tracker lists
Available Scripts
Multiple community tools are available for aria2 integration:Go Script
Feature-rich Go implementation by rocket049
Bash Script 1
Lightweight bash script by HaleTom (Gist)
Bash Script 2
Alternative bash implementation by wuyuansushen
Go Script Installation
The Go script provides automatic updates and advanced features.Install Go
Configure aria2 path
The script needs to know where your
aria2.conf is located. Common paths:~/.config/aria2/aria2.conf(Linux)~/.aria2/aria2.conf(Alternative Linux)/etc/aria2/aria2.conf(System-wide)
Bash Script Installation
For a lightweight solution without Go dependencies, use one of the bash scripts.Using HaleTom’s Gist Script
Edit configuration
Open the script and configure:Set:
- Path to your
aria2.conffile - TrackersList URL (default is usually fine)
- Optional: RPC settings if you want to reload aria2 automatically
Using wuyuansushen’s Script
Configuration File Format
The scripts modify thebt-tracker option in your aria2.conf file. After running a script, your config will contain:
Trackers are comma-separated on a single line. The scripts handle formatting automatically.
Automation
Set up automatic tracker updates using cron or systemd timers.Cron Setup
Systemd Timer
Tracker List Selection
Configure which TrackersList to use in your script:Manual Configuration
To manually update trackers without scripts:Update aria2.conf
Edit your Replace or add the
aria2.conf file:bt-tracker line with the content from tracker-line.txt.Reloading aria2 Configuration
After updating trackers, you can reload aria2 without restarting:Using RPC
If you have aria2 RPC enabled:Using aria2c RPC directly
Troubleshooting
Script can't find aria2.conf
Script can't find aria2.conf
- Verify the config file path in the script
- Common locations:
~/.config/aria2/aria2.conf~/.aria2/aria2.conf/etc/aria2/aria2.conf
- Check file permissions:
ls -la ~/.config/aria2/aria2.conf
Trackers not being used
Trackers not being used
- Verify the
bt-trackerline was updated:grep bt-tracker ~/.config/aria2/aria2.conf - Restart aria2 to apply changes
- Check aria2 logs for tracker connection attempts
- Ensure BitTorrent is enabled in aria2:
enable-dht=trueandenable-peer-exchange=true
Script fails to download tracker list
Script fails to download tracker list
- Test URL accessibility:
curl https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt - Check internet connectivity
- Try using a mirror URL from TrackersList
- Verify proxy settings if behind a proxy
Go script build fails
Go script build fails
Ensure Go is properly installed:If issues persist, try:
Permission denied errors
Permission denied errors
The script may not have write access to
aria2.conf:Advanced Configuration
Using Multiple Tracker Lists
Combine multiple TrackersList sources for maximum coverage:Custom Filtering
Filter trackers by protocol or domain:Additional Resources
aria2 Documentation
Official aria2 repository and documentation
aria2 Manual
Complete aria2 configuration reference
TrackersList Repository
View all available tracker lists
aria2p Tool
Python library and CLI for aria2 RPC