Welcome to Ethical Hackers
Nick:  
Pass:     
Register Help Member List View New Posts View Today's Posts

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Ultimate Linux Command Line Downloader
05-01-2010, 05:48 PM
Post: #1
The Ultimate Linux Command Line Downloader
Sorry if this is in the wrong section, it's just a quick tutorial - Delete if you want to, just trying to contribute where I can. Ok lets start!

in this quick tut i'll be telling you how to setup aria2 so you can download from ANY files host like rapidshare.com, megaupload, hotfile.com etc and even bittorrent (also direct links) all from the command line with a VERY simple 2 character command.

this is mostly for people with a linux server (dedicated or vps/vds) but will work just the same on a linux desktop but there are of course GUI alternatives out there

i'm also amusing you have root access and basic command line experiences so fire up putty or whatever you use to connect to your server (or a terminal for a desktop) and we'll get started

before we get started lets make sure the system is all upto date:

Code:
apt-get-update && apt-get upgrade

now we need to make a temp working folder and install aria2 via source:

Code:
mkdir -r /tmp/ppbtut
cd /tmp/ppbtut
wget http://freefr.dl.sourceforge.net/project/aria2/stable/latest/aria2-1.9.0.tar.bz2
tar -jxvf aria2-1.9.0.tar.bz2
cd aria2-1.9.0
./configure
make
make install
now we need to make a symbolic link for ease of use:
Code:
ln -s /usr/local/bin/aria2c /bin/dl

we now need to get a cookie file from firefox so aria2 can download from ANY files host like rapidshare.com, megaupload, hotfile.com etc

we do this so we don't have to use usernames and passwords

if you already use firefox make sure you've logged into the site you want to download from and have the password saved (if not just download it and log into the sites) then navigate to:
Code:
windows xp:

C:\Documents and Settings\YOURUSERNAME\Application Data\Mozilla\Firefox\Profiles\random.def​ault

windows vista/7:

C:\Users\YOURUSERNAME\AppData\Roaming\Mo​zilla\Firefox\Profiles\random.default

linux:

/home/YOURUSERNAME/.Mozilla/Firefox/Profiles/random.default

now the file your looking for is called cookies.sqlite copy this and transfer it to a place onto your server (for the purpose of this guide we'll use /home/user/cookies.sqlite so remember to change this to wherever you stored it)

now we need to make a config file for aria2 and add some custom settings:
Code:
nano /root/.aria2/aria2.conf

and copy/paste this into it:
Code:
file-allocation=none
j16
c
s1
load-cookies = /home/user/cookies.sqlite

and that's it we're done so lets clean up:
Code:
rm -rf /tmp/ppbtut
to download a file from a file hoster or bitorrent you'd simply type "dl link-to-file-or-torrent"

Hope you like it
Find all posts by this user
05-01-2010, 06:01 PM
Post: #2
RE: The Ultimate Linux Command Line Downloader
Very nice tutorial :)

Though most things here would be referring to getting your linux+ certification, I can see how this would somehow involve that so I'll allow it here. Most things go either in the programming section or lounge area.

I really like this tutorial though :)

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
05-02-2010, 01:46 AM
Post: #3
RE: The Ultimate Linux Command Line Downloader
Thanks for the tutorial, it's very informative and should I use Linux in the future, I will definitely look back at this. :)
Find all posts by this user
05-02-2010, 01:14 PM
Post: #4
RE: The Ultimate Linux Command Line Downloader
Thanks for the feedback. It can be very useful if you're trying to download multiple parts over rapidshare premium, and you don't want to spend the tedious job downloading them manually.
Find all posts by this user
05-03-2010, 05:53 AM
Post: #5
RE: The Ultimate Linux Command Line Downloader
Very nice tutorial, will help people just starting out with a VPS get started. I'm not using a VPS at the moment, but I can remember how lost I was when I first started using them (and I had even used Linux as my main operating system previous to it lol). If it weren't for tutorials like these i'm pretty sure we'd see a lot less VPS users out there :P
Find all posts by this user
05-09-2010, 03:04 AM
Post: #6
RE: The Ultimate Linux Command Line Downloader
woooo! finally i can download things for easier. Nice tutorial and will be using definiatly use it

Neil
Find all posts by this user
05-12-2010, 11:46 PM
Post: #7
RE: The Ultimate Linux Command Line Downloader
never used linux, but i must say, its a great tut. i am a torrent user, & this means a lot to me. thanks a lot mate. :)
Find all posts by this user
05-13-2010, 12:24 AM
Post: #8
RE: The Ultimate Linux Command Line Downloader
Great tut mate! No use to me, but I can see others getting use from it.
Visit this user's website Find all posts by this user
05-14-2010, 11:00 PM
Post: #9
RE: The Ultimate Linux Command Line Downloader
nice script

i am not that good in Linux .. will use it .. thanks :D
Find all posts by this user
05-20-2010, 09:37 PM (This post was last modified: 05-20-2010 10:08 PM by MasterZuFu.)
Post: #10
RE: The Ultimate Linux Command Line Downloader
Nice! Thanks i will check it out soon :D

[warned]
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  What is CompTIA Linux+ Kitt3n 0 298 05-02-2010 06:48 AM
Last Post: Kitt3n

Forum Jump:


User(s) browsing this thread: 3 Guest(s)



Ethical Hackers © 2012.