Download Torrent via Konsole/CLI

logo-downloadSaat melakukan download file ISO Linux atau file lain yang berukuran besar, saya biasanya secara default menggunakan aplikasi downloader atau menggunakan wget. Sayangnya, adakalanya download normal via wget tidak secepat jika download menggunakan fasilitas Torrent.

Jika menggunakan sistem Windows, saya biasanya menggunakan Bitorrent atau uTorrent sementara di Linux berbasis GUI saya biasanya menggunakan Transmission. Nah, bagaimana jika menggunakan openSUSE atau Linux lainnya yang berbasis Konsole/non GUI? Saya biasanya menggunakan aria2.

Apa itu Aria2?

Aria 2 : Parallelizing Multi-Protocol Utility for Downloading Files

aria2 is a utility for downloading files. It has completely new design concept from its predecessor, Aria, and is written from scratch. aria2 has a segmented downloading engine in its core. It can download one file from multiple URLs or multiple connections from one URL. This results in very high speed downloading, much faster than ordinary browsers. This engine in was implemented in a single-thread model. The architecture is clean and easy to extend. aria2 currently supports HTTP, FTP, and BitTorrent.

Aria2 ini sebenarnya aplikasi downloader berbasis GUI juga namun menyediakan tools untuk CLI. Salah satu kelebihannya adalah bisa melakukan download file dengan tipe torrent.

Berikut adalah cara memasang aplikasi aria2 :

  1. Jika menggunakan GUI, silakan meluncur ke halaman : http://software.opensuse.org/package/aria2 dan lakukan instalasi menggunakan mekanisme One-Click-Install (hanya bisa dilakukan via openSUSE atau SLES). Jangan lupa sesuaikan tipe dan versi openSUSE/SLES yang digunakan
  2. Jika menggunakan openSUSE 13.1 CLI, silakan jalankan perintah berikut :
    [code lang=”bash”]
    zypper ar http://download.opensuse.org/repositories/openSUSE:/13.1/standard/ aria2
    zypper ref
    zypper in aria2
    [/code]
  3. Jika menggunakan SLES 11, bisa menjalankan perintah berikut :
    [code lang=”bash”]
    zypper ar http://download.opensuse.org/repositories/home:/holgerob/SLE_11 aria2
    zypper ref
    zypper in aria2
    [/code]

Setelah diinstall, aria2 bisa dijalankan melalui konsole dengan perintah : aria2c namafileyanghendakdidownload misalnya :

[code lang=”bash”]

aria2c http://kambing.ui.ac.id/iso/opensuse/13.1/iso/openSUSE-13.1-DVD-x86_64.iso

[/code]

atau

[code lang=”bash”]

aria2c http://kambing.ui.ac.id/iso/opensuse/13.1/iso/openSUSE-13.1-DVD-x86_64.iso.torrent

[/code]

Aria2 akan otomatis melakukan pengecekan ukuran file dan mulai melakukan proses download. Berikut adalah contoh log prosesnya :

# aria2c http://kambing.ui.ac.id/iso/opensuse/13.1/iso/openSUSE-13.1-DVD-i586.iso.torrent

2014-02-05 12:15:28.103709 WARN – You may encounter the certificate verification error with HTTPS server. See –ca-certificate and –check-certificate option.

2014-02-05 12:15:28.426243 NOTICE – Download complete: /srv/www/htdocs/iso/openSUSE-13.1-DVD-i586.iso.torrent

2014-02-05 12:15:28.467413 NOTICE – IPv4 DHT: listening to port 6994
*** Download Progress Summary as of Wed Feb 5 12:16:28 2014 ***
================================================================================
[#2 SIZE:0B/4,236.0MiB(0%) CN:0 SEED:0 SPD:0Bs]
FILE: /srv/www/htdocs/iso/openSUSE-13.1-DVD-i586.iso/openSUSE-13.1-DVD-i586.iso
——————————————————————————–

[#2 SIZE:0B/4,236.0MiB(0%) CN:0 SEED:0 SPD:0Bs] [FileAlloc:#2 4,206.7MiB/4,236.0
2014-02-05 12:17:27.274574 NOTICE – IPv4 BitTorrent: listening to port 6905

2014-02-05 12:17:27.274708 NOTICE – IPv6 BitTorrent: listening to port 6905
*** Download Progress Summary as of Wed Feb 5 12:17:30 2014 ***
================================================================================
[#2 SIZE:0B/4,236.0MiB(0%) CN:44 SEED:0 SPD:0Bs]
FILE: /srv/www/htdocs/iso/openSUSE-13.1-DVD-i586.iso/openSUSE-13.1-DVD-i586.iso
——————————————————————————–

*** Download Progress Summary as of Wed Feb 5 12:18:30 2014 ***
================================================================================
[#2 SIZE:18.5MiB/4,236.0MiB(0%) CN:44 SEED:30 SPD:399.4KiBs ETA:3h12s]
FILE: /srv/www/htdocs/iso/openSUSE-13.1-DVD-i586.iso/openSUSE-13.1-DVD-i586.iso

One thought on “Download Torrent via Konsole/CLI

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.