Download setup.sh from dimag69/aria2c: direct link, hf CLI and curl.
- Browser
- Download file 826 Bytes
-
https://huggingface.co/spaces/dimag69/aria2c/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/dimag69/aria2c/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/dimag69/aria2c/resolve/main/setup.sh
826 Bytes
| # Install rclone static binary | |
| wget -q https://downloads.rclone.org/v1.53.0/rclone-v1.53.0-linux-amd64.zip | |
| unzip -q rclone-v1.53.0-linux-amd64.zip | |
| export PATH=$PWD/rclone-v1.53.0-linux-amd64:$PATH | |
| # Install aria2c static binary | |
| wget -q https://github.com/P3TERX/aria2-builder/releases/download/1.35.0_2020.09.04/aria2-1.35.0-static-linux-amd64.tar.gz | |
| tar xf aria2-1.35.0-static-linux-amd64.tar.gz | |
| export PATH=$PWD:$PATH | |
| # Create download folder | |
| mkdir -p downloads | |
| # DHT | |
| wget -q https://github.com/P3TERX/aria2.conf/raw/master/dht.dat | |
| wget -q https://github.com/P3TERX/aria2.conf/raw/master/dht6.dat | |
| # Tracker | |
| tracker_list=`curl -Ns https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt | awk '$1' | tr '\n' ',' | cat` | |
| echo "bt-tracker=$tracker_list" >> aria2c.conf | |
| echo $PATH > PATH | |