Difference between revisions of "Downloading from one-click hosters (rapidshare etc.) on Lenny"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
m
 
(2 intermediate revisions by one user not shown)
Line 15: Line 15:
 
Download the armel builds of DownloadDaemon and libboost_thread to /mnt/.
 
Download the armel builds of DownloadDaemon and libboost_thread to /mnt/.
 
<pre>
 
<pre>
 +
cd /mnt
 +
 
wget http://sourceforge.net/projects/downloaddaemon/files/Version%200.9/ARM%20and%20armel%20builds/libboost-thread1.41_armel_lenny.tar.gz/download
 
wget http://sourceforge.net/projects/downloaddaemon/files/Version%200.9/ARM%20and%20armel%20builds/libboost-thread1.41_armel_lenny.tar.gz/download
  
Line 27: Line 29:
 
</pre>
 
</pre>
  
Now we need to symbolically [[w:http://en.wikipedia.org/wiki/Ln_%28Unix%29|link]] DownloadDaemon (since there is no installer).
+
Now we need to symbolically [[w:Ln_%28Unix%29|link]] DownloadDaemon (since there is no installer).
 
<pre>
 
<pre>
 
ln -s /mnt/downloaddaemon-0.9/usr/local/bin/* /usr/bin/
 
ln -s /mnt/downloaddaemon-0.9/usr/local/bin/* /usr/bin/
Line 50: Line 52:
  
 
...and the [[w:chown|owner]].
 
...and the [[w:chown|owner]].
 +
<pre>
 
chown -R downloadd:downloadd /etc/downloaddaemon
 
chown -R downloadd:downloadd /etc/downloaddaemon
 +
</pre>
  
 
Besides, we still need to link the third library we were talking about.
 
Besides, we still need to link the third library we were talking about.
Line 81: Line 85:
 
Once you're logged in, goto '''Servers -> Apache Webserver''' and click the existing '''Virtual Server''' to configure it. Change the '''Document Root''' to '''/mnt/ddclient-php-0.9/ddclient-php''' and click Save.
 
Once you're logged in, goto '''Servers -> Apache Webserver''' and click the existing '''Virtual Server''' to configure it. Change the '''Document Root''' to '''/mnt/ddclient-php-0.9/ddclient-php''' and click Save.
  
Now to actually get the new content, in the top right corner of Webmin click '''Stop Apache''', wait, and then '''Start Apache'''.
+
Now to actually get the new content, in the top right corner of Webmin click '''Stop Apache''' (wait until its stopped) and then '''Start Apache''' (wait until its restarted).
 
Now go back to the Linkstation console to find out your ip-address.
 
Now go back to the Linkstation console to find out your ip-address.
 
<pre>
 
<pre>
Line 92: Line 96:
 
</pre>
 
</pre>
  
You should see something like this [http://downloaddaemon.sourceforge.net/img/ddclient-php_1.png this].
+
You should see something like this [http://downloaddaemon.sourceforge.net/img/ddclient-php_1.png this] (only tested in LAN).
  
  
 
==Configure/Run DownloadDaemon==
 
==Configure/Run DownloadDaemon==
 
Log in, click the tab '''Configure DownloadDaemon''' and set the '''Download directory''' (in this case e.g. /mnt/downloads).
 
Log in, click the tab '''Configure DownloadDaemon''' and set the '''Download directory''' (in this case e.g. /mnt/downloads).
You can also configure a view premium accounts there.
+
There are also two secondary tabs to configure the '''Reconnect''' and '''Premium accounts'''.
  
Now click the tab '''Add Download(s)''', add some files, click '''Manage Downloads''' and check whether there is any progress.
+
Now click the tab '''Add Download(s)''', add some files, click '''Manage Downloads''' and check whether there is any progress, like it is [http://downloaddaemon.sourceforge.net/img/ddclient-php_2.png here].
  
 
==Last but not released==
 
==Last but not released==

Latest revision as of 10:27, 31 March 2010

One-click hosting has become quite widespread, so it might be interesting trying it with a NAS. This guide describes how to install DownloadDaemon and configure its web interface to do precisely that.

Note: This was only tested on an LSPROv2 with davies Lenny-armel*-Debian rootfs image (thx davy). Also note, that DownloadDaemon isn't as powerful as JDownloader, so it doesn't handle CAPTCHA or Reconnect quite as well and doesn't support as many hosters.


Contents

Daemon Installation

Assumption: big partition is mounted in /mnt/, DownloadDaemon version is 0.9.

DownloadDaemon requires three libraries (libcurl, libstdc++, libboost_thread). Also, to unpack later, we need bzip2.

apt-get install libcurl4-gnutls-dev bzip2

Download the armel builds of DownloadDaemon and libboost_thread to /mnt/.

cd /mnt

wget http://sourceforge.net/projects/downloaddaemon/files/Version%200.9/ARM%20and%20armel%20builds/libboost-thread1.41_armel_lenny.tar.gz/download

wget http://sourceforge.net/projects/downloaddaemon/files/Version%200.9/ARM%20and%20armel%20builds/downloaddaemon-0.9_armel.tar.bz2/download

Unpack them.

tar xjvf downloaddaemon-0.9_armel.tar.bz2

tar xvzf libboost-thread1.41_armel_lenny.tar.gz

Now we need to symbolically link DownloadDaemon (since there is no installer).

ln -s /mnt/downloaddaemon-0.9/usr/local/bin/* /usr/bin/

ln -s /mnt/downloaddaemon-0.9/etc/downloaddaemon/ /etc/downloaddaemon

ln -s /mnt/downloaddaemon-0.9/usr/local/share/downloaddaemon/ /usr/share/downloaddaemon

Since DownloadDaemon doesn't run in root mode (for security reasons), we need to create a group and an account...

addgroup downloadd

adduser --home /etc/downloaddaemon --ingroup downloadd downloadd

...change the mode...

chmod -R a+rw /etc/downloaddaemon /mnt/downloads

...and the owner.

chown -R downloadd:downloadd /etc/downloaddaemon

Besides, we still need to link the third library we were talking about.

ln -s /mnt/libboost-thread1.41_armel_lenny/usr/local/lib/* /usr/lib/

Now that were all set, lets run the daemon. Log in to the account (user: downloadd) you just created and type:

DownloadDaemon --daemon


Web Interface Installation

Now lets download the web interface and extract it.

wget http://sourceforge.net/projects/downloaddaemon/files/Version%200.9/ddclient-php/ddclient-php-0.9.tar.gz/download

tar xvzf ddclient-php-0.9.tar.gz

To create a server, we need to install Apache.

apt-get install apache2

To set the server paths easily, follow the Tutorial on Webmin. When webmin has finished installing, the console will give you a link.

Once you're logged in, goto Servers -> Apache Webserver and click the existing Virtual Server to configure it. Change the Document Root to /mnt/ddclient-php-0.9/ddclient-php and click Save.

Now to actually get the new content, in the top right corner of Webmin click Stop Apache (wait until its stopped) and then Start Apache (wait until its restarted). Now go back to the Linkstation console to find out your ip-address.

ifconfig

Now open a new tab in your browser and enter:

http://<YOUR IP-ADDRESS>

You should see something like this this (only tested in LAN).


Configure/Run DownloadDaemon

Log in, click the tab Configure DownloadDaemon and set the Download directory (in this case e.g. /mnt/downloads). There are also two secondary tabs to configure the Reconnect and Premium accounts.

Now click the tab Add Download(s), add some files, click Manage Downloads and check whether there is any progress, like it is here.

Last but not released

If you want to compile things yourself, read more here.

If it doesn't work for you, please let me know! If it does, stay out of trouble :)