Pejman Moghadam / Slackware

Slackware 13.0 - Installing aria2 download utility (with epkg)

http://aria2.sourceforge.net/

Public domain


Installation

cd /usr/src
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/aria2-1.12.0.tar.bz2"
su - install
cd /usr/src
tar xf aria2-1.12.0.tar.bz2
cd aria2-1.12.0
./configure --prefix=/usr --mandir=/usr/man --docdir=/usr/doc/aria2-1.12.0 && make
make install DESTDIR=/usr/local/encap/aria2-1.12.0
cd /usr/local/encap/
mkencap aria2-1.12.0
logout
cd /usr/local/encap/
epkg aria2-1.12.0

Usage

Torrent Info :
# aria2c -S -T download.torrent

Torrent Download :
# aria2c \
  --listen-port 6880 \
  --max-upload-limit 8K \
  --seed-time 120 \
  -d /storage \
  -T download.torrent

Script

#!/bin/bash
TORRENTS="
  test1.torrent
  test2.torrent
"

for F in $TORRENTS; do
  DATE="$(date +'%F %T')"
  echo "$DATE - Starting($?): $F" >> download-log.txt
  # trickle -d 30 \
    aria2c --listen-port 6880 --max-upload-limit 20K --seed-time 2 "$F"
  DATE="$(date +'%F %T')"
  echo "$DATE - Finished($?): $F" >> idownload-log.txt
  echo "Sleeping......"
  sleep 5
done

BY: Pejman Moghadam
TAG: aria2, epkg
DATE: 2011-07-05 12:43:39


Pejman Moghadam / Slackware [ TXT ]