DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-06-10 16:56:52

dorst622
New member
Registered: 2009-06-10
Posts: 1

is it possible to make dns 343 to support bit torrent?

i am new to this.
is it posible to flash the dns 343 with custom firmware to make it work with bit torrent.

Offline

 

#2 2009-06-13 12:15:21

Smallstack
Member
From: New Zealand
Registered: 2009-04-05
Posts: 23
Website

Re: is it possible to make dns 343 to support bit torrent?

You don't have to use custom firmware.

You can funplug it and install transmission on it or compile a bittorrent client.

I compiled rTorrent on my NAS and put a Web GUI on it.

If you like I can put my full instructions on the forums.

Last edited by Smallstack (2009-06-13 12:24:24)

Offline

 

#3 2009-06-17 14:35:10

keithburt
New member
From: San Diego
Registered: 2007-10-07
Posts: 4

Re: is it possible to make dns 343 to support bit torrent?

Would you mind sending me your info?

Smallstack wrote:

You don't have to use custom firmware.

You can funplug it and install transmission on it or compile a bittorrent client.

I compiled rTorrent on my NAS and put a Web GUI on it.

If you like I can put my full instructions on the forums.


My System:
D-link DNS-343, 4 Seagate 1.5TB Barracuda drives w/fw 1.3b70

Offline

 

#4 2009-06-18 10:23:54

shouqin
New member
Registered: 2009-06-18
Posts: 3

Re: is it possible to make dns 343 to support bit torrent?

hi smallstack, please do include your guide. I just purchased a 343 and a total newbie to compilation. THanks in advance!

Offline

 

#5 2009-07-04 16:16:15

Smallstack
Member
From: New Zealand
Registered: 2009-04-05
Posts: 23
Website

Re: is it possible to make dns 343 to support bit torrent?

I've been on holiday but here is the guide.

I haven't changed any of the folder paths etc from my setup in this guide.

Code:

1.  Put fun_plug.tgz and fun_plug.sh on Volume_1
2.  telnet to NAS
3.  Setup SSH
    pwconv
    passwd
    usermod -s /ffp/bin/sh root

    pwck
    grpck

    store-passwd.sh

    cd /ffp/start
    sh sshd.sh start

    TEST SSH CONNECTION BEFORE DISABLING TELNET

    chmod a-x telnetd.sh
    chmod a+x sshd.sh

4.  Get all the fun_plug packages
    cd /mnt/HD_a2
    mkdir files
    cd /mnt/HD_a2/files
    rsync -av inreto.de::dns323/fun-plug/0.5 .

5.  Install the packages
    cd files
    funpkg -i packages/*.tgz
    funpkg -i extra-packages/All/curl-7.19.4-1.tgz

6.  Setup lighttp with php
    cd /mnt/HD_a2
    mkdir -p www/logs www/pages

    cd /mnt/HD_a2/files
    funpkg -i extra-packages/All/php-5.2.9-1.tgz

    cd /ffp/etc
    cp examples/lighttpd.conf-with-php lighttpd.conf
    sh /ffp/start/lighttpd.sh start

8.  Configure PHP
    cd /ffp/etc
    cp examples/php.ini-recommended php.ini


7.  Configure lighttp for port 80
    cd /ffp/etc
    vi lighttpd.conf
     - Find server.port and modify it to be 80
         - Disable the following dir-listing.activate and dir-listing.show-readme
     - change server.upload-dirs to /mnt/HD_a2/www/tmp
    cd /ffp/start
    chmod a+x kickwebs.sh lighttpd.sh

    sh kickwebs.sh start
    sh lighttpd.sh restart

8.  Test php configuration
    cd /mnt/HD_a2/www/pages
    vi test.php
     - Insert the following
     <?php
        phpinfo();
     ?> 

9.  Check the configuration
    http://<IP_Address>/test.php
    - Find "cURL support" and make sure it is enabled
    
    cd /mnt/HD_a2/www/pages
    rm test.php

11. Compile rTorrent
    cd /mnt/HD_a2/files
    mkdir sources
    svn co svn://rakshasa.no/libtorrent/trunk/ rtorrent

    funpkg -i extra-packages/All/libsigc++-2.0.18-1.tgz
    funpkg -i extra-packages/All/xmlrpc-c-1.16.6.tar  -- Have to get this from some where else (shadowandy or compile it)
    funpkg -i /mnt/HD_a2/files/extra-packages/perl/perl-*.tgz

    cd rtorrent/trunk
    svn up

    cd libtorrent
    ./autogen.sh --libdir=/ffp/lib --prefix=/ffp
    ./configure --libdir=/ffp/lib --prefix=/ffp
    make
    make install
    
    cd ../rtorrent
    ./autogen.sh --libdir=/ffp/lib --prefix=/ffp
    ./configure --with-xmlrpc-c --libdir=/ffp/lib --prefix=/ffp      
    make
    make install

12. Configure rTorrent
    Download sample rtorrent.rc, modify it
    http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest
    
    cp rtorrent.rc /ffp/etc/

13. Create start up script
    cd /ffp/start
    vi rtorrent.sh
     - Following content
        #!/ffp/bin/sh

        # PROVIDES: rtorrent

        . /ffp/etc/ffp.subr

        user=bhavik
        name="rtorrent"
        command="/ffp/bin/$name -n -o import=/ffp/etc/rtorrent.rc"
        start_cmd="rtorrent_start"
        stop_cmd="rtorrent_stop"

        rtorrent_start()
        {
                echo "Starting $name"
                su $user -c "screen -d -m $command"
        }

        rtorrent_stop()
        {
                echo "Stopping $name"
                killall $name
        }

        run_rc_command "$1"

    chmod a+x rtorrent.sh
    sh rtorrent.sh start

14. Install wTorrent
    cd /mnt/HD_a2/files/sources
    svn co svn://wtorrent-project.org/repos/trunk/wtorrent/ wtorrent
    
    cp -r wtorrent /mnt/HD_a2/www/pages/
    cd /mnt/HD_a2/www/pages/wtorrent
    find . -name "*.svn" -exec rm -rf {} \;
    
15. Configure php for wTorrent
    vi /ffp/etc/php.ini
     - find extension_dir and put /ffp/lib/php/extensions/no-debug-non-zts-20060613
     
     - find dynamic extensions and put the following:
        extension=zlib.so
        extension=tokenizer.so
        extension=sqlite.so
        extension=pdo_sqlite.so
        extension=pdo_mysql.so
        extension=pdo.so
        extension=mysql.so
        extension=mbstring.so
        extension=gd.so
        extension=ftp.so
        extension=ctype.so
        extension=calendar.so
    
16. Configure lighttp for wTorrent
    vi /ffp/etc/lighttpd.conf
     - Under server.modules add "mod_scgi"
     
     - Add the following at the end
         scgi.server = (
         "/RPC2" => # RT_DIR
          ( "127.0.0.1" =>
           (
            "host" => "127.0.0.1", # Ip where rtorrent is listening
            "port" => 5000, # Port specified in .rtorrent.rc
            "check-local" => "disable"
           )
          )
         )
         
     - Modify url.access-deny. Add the following:
        url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",)
    
    sh /ffp/start/lighttpd.sh restart
    
17. Access wTorrent via Web GUI
    http://<IP_Address>/wtorrent/install.php
    
    Language: en
    Database file: db/database.db
    rTorrent scgi host: localhost
    rTorrent scgi port: 80
    rTorrent scgi folder: /RPC2
    Enable auth for the scgi folder: False
    rTorrent scgi user:
    rTorrent scgi password:
    Don't user multicall: True
    User scriptaculous effects: True
    Folder to save uploaded torrents: /mnt/HD_a2/bittorrent/torrents/
    Folder where wTorrent is: /mnt/HD_a2/www/pages/wtorrent/
    Default folder to save torrent data: /mnt/HD_a2/public/download
    
    User: <YOUR_USER>
    Password: <YOUR_PASSWORD>
    
    rm /mnt/HD_a2/www/pages/wtorrent/install.php
    
    If you are not using default directories. Modify the following file:
    vi /mnt/HD_a2/www/pages/wtorrent/wt/cls/AddT.cls.php
    
    Remove DIR_EXEC .

Last edited by Smallstack (2009-07-04 16:17:48)

Offline

 

#6 2009-07-16 23:39:10

keithburt
New member
From: San Diego
Registered: 2007-10-07
Posts: 4

Re: is it possible to make dns 343 to support bit torrent?

Thanks for taking the time to write this up!
Keith


My System:
D-link DNS-343, 4 Seagate 1.5TB Barracuda drives w/fw 1.3b70

Offline

 

#7 2009-08-21 22:23:31

toolbox
Member
Registered: 2008-12-18
Posts: 83

Re: is it possible to make dns 343 to support bit torrent?

Smallstack wrote:

I've been on holiday but here is the guide.

I haven't changed any of the folder paths etc from my setup in this guide.

Code:

1.  Put fun_plug.tgz and fun_plug.sh on Volume_1
2.  telnet to NAS
3.  Setup SSH
    pwconv
    passwd
    usermod -s /ffp/bin/sh root

    pwck
    grpck

    store-passwd.sh

    cd /ffp/start
    sh sshd.sh start

    TEST SSH CONNECTION BEFORE DISABLING TELNET

    chmod a-x telnetd.sh
    chmod a+x sshd.sh

4.  Get all the fun_plug packages
    cd /mnt/HD_a2
    mkdir files
    cd /mnt/HD_a2/files
    rsync -av inreto.de::dns323/fun-plug/0.5 .

5.  Install the packages
    cd files
    funpkg -i packages/*.tgz
    funpkg -i extra-packages/All/curl-7.19.4-1.tgz

6.  Setup lighttp with php
    cd /mnt/HD_a2
    mkdir -p www/logs www/pages

    cd /mnt/HD_a2/files
    funpkg -i extra-packages/All/php-5.2.9-1.tgz

    cd /ffp/etc
    cp examples/lighttpd.conf-with-php lighttpd.conf
    sh /ffp/start/lighttpd.sh start

8.  Configure PHP
    cd /ffp/etc
    cp examples/php.ini-recommended php.ini


7.  Configure lighttp for port 80
    cd /ffp/etc
    vi lighttpd.conf
     - Find server.port and modify it to be 80
         - Disable the following dir-listing.activate and dir-listing.show-readme
     - change server.upload-dirs to /mnt/HD_a2/www/tmp
    cd /ffp/start
    chmod a+x kickwebs.sh lighttpd.sh

    sh kickwebs.sh start
    sh lighttpd.sh restart

8.  Test php configuration
    cd /mnt/HD_a2/www/pages
    vi test.php
     - Insert the following
     <?php
        phpinfo();
     ?> 

9.  Check the configuration
    http://<IP_Address>/test.php
    - Find "cURL support" and make sure it is enabled
    
    cd /mnt/HD_a2/www/pages
    rm test.php

11. Compile rTorrent
    cd /mnt/HD_a2/files
    mkdir sources
    svn co svn://rakshasa.no/libtorrent/trunk/ rtorrent

    funpkg -i extra-packages/All/libsigc++-2.0.18-1.tgz
    funpkg -i extra-packages/All/xmlrpc-c-1.16.6.tar  -- Have to get this from some where else (shadowandy or compile it)
    funpkg -i /mnt/HD_a2/files/extra-packages/perl/perl-*.tgz

    cd rtorrent/trunk
    svn up

    cd libtorrent
    ./autogen.sh --libdir=/ffp/lib --prefix=/ffp
    ./configure --libdir=/ffp/lib --prefix=/ffp
    make
    make install
    
    cd ../rtorrent
    ./autogen.sh --libdir=/ffp/lib --prefix=/ffp
    ./configure --with-xmlrpc-c --libdir=/ffp/lib --prefix=/ffp      
    make
    make install

12. Configure rTorrent
    Download sample rtorrent.rc, modify it
    http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest
    
    cp rtorrent.rc /ffp/etc/

13. Create start up script
    cd /ffp/start
    vi rtorrent.sh
     - Following content
        #!/ffp/bin/sh

        # PROVIDES: rtorrent

        . /ffp/etc/ffp.subr

        user=bhavik
        name="rtorrent"
        command="/ffp/bin/$name -n -o import=/ffp/etc/rtorrent.rc"
        start_cmd="rtorrent_start"
        stop_cmd="rtorrent_stop"

        rtorrent_start()
        {
                echo "Starting $name"
                su $user -c "screen -d -m $command"
        }

        rtorrent_stop()
        {
                echo "Stopping $name"
                killall $name
        }

        run_rc_command "$1"

    chmod a+x rtorrent.sh
    sh rtorrent.sh start

14. Install wTorrent
    cd /mnt/HD_a2/files/sources
    svn co svn://wtorrent-project.org/repos/trunk/wtorrent/ wtorrent
    
    cp -r wtorrent /mnt/HD_a2/www/pages/
    cd /mnt/HD_a2/www/pages/wtorrent
    find . -name "*.svn" -exec rm -rf {} \;
    
15. Configure php for wTorrent
    vi /ffp/etc/php.ini
     - find extension_dir and put /ffp/lib/php/extensions/no-debug-non-zts-20060613
     
     - find dynamic extensions and put the following:
        extension=zlib.so
        extension=tokenizer.so
        extension=sqlite.so
        extension=pdo_sqlite.so
        extension=pdo_mysql.so
        extension=pdo.so
        extension=mysql.so
        extension=mbstring.so
        extension=gd.so
        extension=ftp.so
        extension=ctype.so
        extension=calendar.so
    
16. Configure lighttp for wTorrent
    vi /ffp/etc/lighttpd.conf
     - Under server.modules add "mod_scgi"
     
     - Add the following at the end
         scgi.server = (
         "/RPC2" => # RT_DIR
          ( "127.0.0.1" =>
           (
            "host" => "127.0.0.1", # Ip where rtorrent is listening
            "port" => 5000, # Port specified in .rtorrent.rc
            "check-local" => "disable"
           )
          )
         )
         
     - Modify url.access-deny. Add the following:
        url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",)
    
    sh /ffp/start/lighttpd.sh restart
    
17. Access wTorrent via Web GUI
    http://<IP_Address>/wtorrent/install.php
    
    Language: en
    Database file: db/database.db
    rTorrent scgi host: localhost
    rTorrent scgi port: 80
    rTorrent scgi folder: /RPC2
    Enable auth for the scgi folder: False
    rTorrent scgi user:
    rTorrent scgi password:
    Don't user multicall: True
    User scriptaculous effects: True
    Folder to save uploaded torrents: /mnt/HD_a2/bittorrent/torrents/
    Folder where wTorrent is: /mnt/HD_a2/www/pages/wtorrent/
    Default folder to save torrent data: /mnt/HD_a2/public/download
    
    User: <YOUR_USER>
    Password: <YOUR_PASSWORD>
    
    rm /mnt/HD_a2/www/pages/wtorrent/install.php
    
    If you are not using default directories. Modify the following file:
    vi /mnt/HD_a2/www/pages/wtorrent/wt/cls/AddT.cls.php
    
    Remove DIR_EXEC .

what version of gcc did you compile this with? I use 4.1.3 and it failed for "make install" for libtorrent on a DNS-323.

Offline

 

#8 2009-08-22 05:14:29

Smallstack
Member
From: New Zealand
Registered: 2009-04-05
Posts: 23
Website

Re: is it possible to make dns 343 to support bit torrent?

My latest build I've done I used 4.1.3

Code:

/ # gcc -v
Using built-in specs.
Target: arm-unknown-linux-uclibc
Configured with: /mnt/HD_a2/home/bob/funplug/work/gcc-4.1/gcc-4_1-branch/configure --enable-languages=c,c++ --enable-__cxa_atexit --with-local-prefix=/ffp --disable-multilib --disable-libssp --disable-libgomp --disable-libmudflap --disable-tls --with-float=soft --disable-bootstrap
Thread model: posix
gcc version 4.1.3 20080414 (prerelease)

Last edited by Smallstack (2009-08-22 05:22:55)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB