aria2c http(s),ftp,torrent,metalink Downloader

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

aria2c http(s),ftp,torrent,metalink Downloader

#1 Post by klhrevolutionist »

Webpage: http://aria2.sourceforge.net/

*update* Now includes xdg menu entry

Download: aria2c.tar.gz

Install as an alien package using pupget/petget

aria2c is a download utility with resuming and segmented downloading.
Supported protocols are HTTP/HTTPS/FTP/BitTorrent. It also supports Metalink version 3.0.

License
Last edited by klhrevolutionist on Fri 23 Feb 2007, 21:19, edited 6 times in total.
Heaven is on the way, until then let's get the truth out!

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#2 Post by klhrevolutionist »

Simple update download link above

compiled in puppy2 install as alien pkg.
Heaven is on the way, until then let's get the truth out!

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

Very interesting Kenny.

For those wishing to test . . .

Download file
Go to menu / setup / Puppy package managers
select pupget and choose the second button to install alien package
find the location of the 'alien' and install

8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

klh,

for CLI, wget does everything, but IMHO if you want a gui, d4x is the bee's knees for linux graphical dloaders. what do you reckon?

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#5 Post by klhrevolutionist »

Muggins: I say you have not played with aria2c very much.

Take a look at these examples to see what thing thing can do.

Code: Select all

specify at least one URL
Usage: aria2c [options] URL ...
       aria2c [options] -T TORRENT_FILE FILE ...
       aria2c [options] -M METALINK_FILE

Options:
 -d, --dir=DIR                The directory to store downloaded file.
 -o, --out=FILE               The file name for downloaded file.
 -l, --log=LOG                The file path to store log. If '-' is specified,
                              log is written to stdout.
 -D, --daemon                 Run as daemon.
 -s, --split=N                Download a file using N connections. N must be
                              between 1 and 5. This option affects all URLs.
                              Thus, aria2 connects to each URL with
                              N connections.
 --retry-wait=SEC             Set amount of time in second between requests
                              for errors. Specify a value between 0 and 60.
                              Default: 5
 -t, --timeout=SEC            Set timeout in second. Default: 60
 -m, --max-tries=N            Set number of tries. 0 means unlimited.
                              Default: 5
 --http-proxy=HOST:PORT       Use HTTP proxy server. This affects to all
                              URLs.
 --http-user=USER             Set HTTP user. This affects to all URLs.
 --http-passwd=PASSWD         Set HTTP password. This affects to all URLs.
 --http-proxy-user=USER       Set HTTP proxy user. This affects to all URLs
 --http-proxy-passwd=PASSWD   Set HTTP proxy password. This affects to all URLs.
 --http-proxy-method=METHOD   Set the method to use in proxy request.
                              METHOD is either 'get' or 'tunnel'.
                              Default: tunnel
 --http-auth-scheme=SCHEME    Set HTTP authentication scheme. Currently, basic
                              is the only supported scheme.
                              Default: basic
 --referer=REFERER            Set Referer. This affects to all URLs.
 --ftp-user=USER              Set FTP user. This affects to all URLs.
                              Default: anonymous
 --ftp-passwd=PASSWD          Set FTP password. This affects to all URLs.
                              Default: ARIA2USER@
 --ftp-type=TYPE              Set FTP transfer type. TYPE is either 'binary'
                              or 'ascii'.
                              Default: binary
 -p, --ftp-pasv               Use passive mode in FTP.
 --ftp-via-http-proxy=METHOD  Use HTTP proxy in FTP. METHOD is either 'get' or
                              'tunnel'.
                              Default: tunnel
 --lowest-speed-limit         Close connection if download speed is lower than
                              or equal to this value(bytes per sec).
                              0 means aria2 does not care lowest speed limit.
                              You can append K or M(1K = 1024, 1M = 1024K).
                              This option does not affect BitTorrent download.
                              Default: 0
 --max-download-limit         Set max download speed in bytes per sec.
                              0 means unrestricted.
                              You can append K or M(1K = 1024, 1M = 1024K).
                              Default: 0
 -T, --torrent-file=TORRENT_FILE  The file path to .torrent file.
 --follow-torrent=true|false  Setting this option to false prevents aria2 to
                              enter BitTorrent mode even if the filename of
                              downloaded file ends with .torrent.
                              Default: true
 -S, --show-files             Print file listing of .torrent file and exit.
 --direct-file-mapping=true|false Directly read from and write to each file
                              mentioned in .torrent file.
                              Default: true
 --listen-port=PORT           Set port number to listen to for peer connection.
 --max-upload-limit           Set max upload speed in bytes per sec.
                              0 means unrestricted.
                              You can append K or M(1K = 1024, 1M = 1024K).
                              Default: 0
 --select-file=INDEX...       Set file to download by specifing its index.
                              You can know file index through --show-files
                              option. Multiple indexes can be specified by using
                              ',' like "3,6".
                              You can also use '-' to specify rangelike "1-5".
                              ',' and '-' can be used together.
 --seed-time=MINUTES          Specify seeding time in minutes. See also
                              --seed-ratio option.
 --seed-ratio=RATIO           Specify share ratio. Seed completed torrents until
                              share ratio reaches RATIO. 1.0 is encouraged.
                              If --seed-time option is specified along with
                              this option, seeding ends when at least one of
                              the conditions is satisfied.
 -M, --metalink-file=METALINK_FILE The file path to .metalink file.
 -C, --metalink-servers=NUM_SERVERS The number of servers to connect to
                              simultaneously. If more than one connection per
                              server is required, use -s option.
                              Default: 15
 --metalink-version=VERSION   The version of file to download.
 --metalink-language=LANGUAGE The language of file to download.
 --metalink-os=OS             The operating system the file is targeted.
 --follow-metalink=true|false  Setting this option to false prevents aria2 to
                              enter Metalink mode even if the filename of
                              downloaded file ends with .metalink.
                              Default: true
 -v, --version                Print the version number and exit.
 -h, --help                   Print this message and exit.

URL:
 You can specify multiple URLs. All URLs must point to the same file
 or downloading fails.

FILE:
 Specify files in multi-file torrent to download. Use conjunction with
 -T option. This arguments are ignored if you specify --select-file option.

Examples:
 Download a file by 1 connection:
  aria2c http://AAA.BBB.CCC/file.zip
 Download a file by 2 connections:
  aria2c -s 2 http://AAA.BBB.CCC/file.zip
 Download a file by 2 connections, each connects to a different server:
  aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
 You can mix up different protocols:
  aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip

 Download a torrent:
  aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
 Download a torrent using local .torrent file:
  aria2c -T test.torrent
 Download only selected files:
  aria2c -T test.torrent dir/file1.zip dir/file2.zip
 Print file listing of .torrent file:
  aria2c -T test.torrent -S

 Metalink downloading:
  aria2c http://AAA.BBB.CCC/file.metalink
 Download a file using local .metalink file:
  aria2c -M test.metalink
 Metalink downloading with preferences:
  aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US

Report bugs to <tujikawa at users dot sourceforge dot net>
Heaven is on the way, until then let's get the truth out!

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

you're right klh. i haven't tried this program at all. i was mistakenly thinking of the gui aria. (i think this is a CLI fork of that project). anyway i've dloaded it & will play around with it.

thanks
muggins

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#7 Post by klhrevolutionist »

Update bump: Read first post for news and download link
Heaven is on the way, until then let's get the truth out!

telemetric_au
Posts: 54
Joined: Wed 28 Feb 2007, 13:14

#8 Post by telemetric_au »

Server not found

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#9 Post by Dingo »

telemetric_au wrote:Server not found
download from me (several other download manager in page)
http://puppylover.netsons.org/dokupuppy ... ad_manager
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#10 Post by jcoder24 »


amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#11 Post by amigo »

Has anyone figured out how to get aria2c to exit immediately when it finisheds downloading a torrent?

thebeaky
Posts: 49
Joined: Sat 09 May 2009, 09:29

quick question

#12 Post by thebeaky »

I want to play with the defualt settings in aria2c.

I often start aria2c through flashgot, which so far as I can tell does not allow adding command line arguments.

this also means I donot keep the url naturally.

My real struggle is that if the connection drops so does aria2c, and I have to restart it manually. ( if I leave a file to download over night for example, and the connection drops for a minute, then what is the solution)

I guess there are 2 questions,
Is there a file which contains the default settings I can edit.
how can I set a download to not give up, unless I specifically tell it to.

many thanks.

(I am new to forums, is this where I should put this question, or should I have put this somewhere else?)

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#13 Post by muggins »

thebeaky,

The developer has previously mentioned how to integrate aria2c with the flashgot plugin, for mozilla browsers. If you saved the following script, save as /usr/bin/aria2c.sh, and give it executable permissions, replacing /root/my-documents with whatever your default download directory is, then, where the link advises Finally, enter "[FOLDER] [URL] " in "Argument template" box., instead just enter URL in the template box, then it works.

Code: Select all

#!/bin/sh

DLOAD_DIR=/root/my-documents

cd $DLOAD_DIR

rxvt -e aria2c $1
You could try replacing the last line with:

Code: Select all

rxvt -e aria2c -c $1
and see whether that works...I don't have flashgot too test at moment. Also, you can send an email query to the developer.

thebeaky
Posts: 49
Joined: Sat 09 May 2009, 09:29

cool

#14 Post by thebeaky »

hey, so that worked great,

does the default change,

the -c option is for resuming other programs files, but I found in the man pages a --enable-http-keep-alive=true,

which I have put in that file now, however I am yet to see if that does what I hope it does.

thanks

Post Reply