Page 5 of 16 FirstFirst ... 3456715 ... LastLast
Results 61 to 75 of 226

Thread: Controlling (torrent) downloads thru webpage

  1. #61
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Quote Originally Posted by Urosh View Post
    Now i am getting this error
    Creating graph...
    Segmentation fault
    Create 512MB swap. Partition (recomended) or file (tryout resort).
    Code:
    dd if=/dev/zero of=/tmp/harddisk/swap count=1024000
    mkswap /tmp/harddisk/swap
    swapon /tmp/harddisk/swap

  2. #62
    Join Date
    Dec 2006
    Location
    Slovenia
    Posts
    6
    I am getting:

    /opt/bin/gnuplot: can't load library 'libuClibc++.so.0'

    And under status

    .status not found for /tmp/harddisk/torrent/work/kubuntu-6.10-dvd-i386.iso/kubuntu-6.10-dvd-i386.iso.torrent Start: 27 Dec 18:10

    But the torrent file is there.
    Code:
    [admin@SkupniDisk work]$cd /tmp/harddisk/torrent/work/kubuntu-6.10-dvd-i386.iso
    [admin@SkupniDisk kubuntu-6.10-dvd-i386.iso]$ ls
    kubuntu-6.10-dvd-i386.iso.torrent
    [admin@SkupniDisk kubuntu-6.10-dvd-i386.iso]$
    Last edited by Urosh; 27-12-2006 at 18:47.

  3. #63
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    gnuplot 4.2rc2 needs libuclibc++ package!

    I do not recommend the latest gnuplot 4.2 as it has some strange problems.
    Please downgrade with the following commands.

    Code:
    ipkg remove -force-depends gnuplot
    cd /tmp/harddisk
    wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/gnuplot_4.0.0-1_mipsel.ipk
    ipkg install gnuplot_4.0.0-1_mipsel.ipk

    If you are using ipkg-opt package then one can use
    Code:
    ipkg install -force-downgrade gnuplot_4.0.0-1_mipsel.ipk

    If you do not get .status files then pres Update and see what happens.

    calebz promissed _noob_ wiki page how to prepare Optware for X-Wrt.org firmware and how to install Transmssion.
    Last edited by oleo; 27-12-2006 at 21:34. Reason: .status && calebz comment

  4. #64

    Confimation

    I am confirming Oleo's post. The downgraded version of gnuplot solved the problems I had with drawing the graph.

  5. #65
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    gnuplot_4.2.rc2-2_mipsel.ipk solves problem with graphing.

  6. #66
    Hi oleo,
    I had some trouble to make the script work with transmission, because it seems that (at least here) transmissiond only seems to work in the background if called with the "-v" switch. So I changed the script to call transmissiond in a screen session:

    Code:
    /opt/bin/screen -d -m transmissiond -v 1 -p ${LISTENING_PORT} \
    -w ${WATCHDOG} \
    -u ${UPLOAD_SPEED} \
    -d ${DOWNLOAD_SPEED} \
    -i ${PIDFILE} ${ACTIVE}
    I also changed the _fetch() function, because some download URLs have nothing to do with the torrent to download and even crash transmissiond, if special characters are in the name. I now extract the name of the download from the torrent and change some characters.

    Code:
    _fetch()
    {
        TORRENT=$(echo "${FETCH}" | sed 's|%20| |g;s|%3A|:|g;s|%2F|/|g;s|%3F|?|g;s|%3D|=|g;s|%26|\&|g;s|%5B|\[|g;s|%5D|\]|g;s|%28|(|g;s|%29|)|g;s|%7B|{|g;s|%7D|}|g;s|%25|%|g')
    #    echo "<p>Fetching ${TORRENT}</p>"
        echo "Source: " ${SOURCE}
    #    wget --quiet -P ${SOURCE} "${TORRENT}"  ||  echo "<p>wget ${TORRENT} failed</p>"
         wget --quiet -O /opt/tmp/dl.torrent "${TORRENT}" || echo "<p>wget ${TORRENT} failed</p>"
    #     DLTARG=`btcheck /opt/tmp/dl.torrent | awk '{if($0~/cacheopen/) print substr($0,11,index($0,".")-11)".torrent"}'|sed -e 'y/\\//-/'`
         DLTARG=`btlist /opt/tmp/dl.torrent | awk '{if($0~/name/)name=sprintf("%s",substr($0,index($0,":")+2))}END{print name}' | sed -e 'y/./_/' -e 'y/\\//\_/'`
     echo "DLTARG=" ${DLTARG}
         cp /opt/tmp/dl.torrent "${SOURCE}/${DLTARG}.torrent"
        rm -f /opt/tmp/dl.torrent
    }
    It's only a hack, but if somebody likes it...

    BTW: If I don't want to put my torrent directory into /opt/share/www, how can I access it via the web interface? And for what exactly are the directories "source" and "target"? Everything that I download, suspend or remove is in the "work" directory.

    Darkstar.
    Last edited by Darkstar; 04-01-2007 at 12:08.

  7. #67

    Unhappy gnuplot_4.2.rc2-2 causing fragmentation fault

    Quote Originally Posted by oleo View Post
    gnuplot_4.2.rc2-2_mipsel.ipk solves problem with graphing.
    Hi Oleo, gnuplot_4.2.rc2-2 again caused fragmentation error so I had to downgrade once again to gnuplot (4.0.0-1).

    with reguards

  8. #68
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    @Hellish I have running 4.2rc2 but autobuild machine produced broken package. I have tried to resolve this, without a luck. Problem is with generatigh dynamic executable. Next week we are rebuilding the whole repository from scratch and I am hoping that this will succesfully built gnuplot. If building bug will not be spoted then I will downgrade.

    @darkstar The problem with you is known if you are running wl500g feed and not oleg. See README.daemon for solution. Fetch is somehow useless command. It could be used for fetching file that you previously saved with web client on some web server. I am considering to disable it.

  9. #69

    Thumbs up Looking forward for a new version

    Thanx Oleo for ur reply. I will be awaiting new version. I had ipkg update;ipkg upgrade in a cron script wich updated my ipkg pakages regularly. I had to suspend that until your next build.
    But thanx for your work anyway. The transmission pakage is much better than the old torrenet package.

    with regards,

    Hell!sh
    Hell!sh

  10. #70
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    I looks like http://trac.nslu2-linux.org/optware/changeset/5097 finally solved gnuplot problems.

    Some updated info for installing Transmission on Xwrt (OpenWRT) is found here

  11. #71

    Url decoding in shell

    Quote Originally Posted by Darkstar View Post
    I also changed the _fetch() function, because some download URLs have nothing to do with the torrent to download and even crash transmissiond, if special characters are in the name. I now extract the name of the download from the torrent and change some characters.

    Code:
    _fetch()
    {
        TORRENT=$(echo "${FETCH}" | sed 's|%20| |g;s|%3A|:|g;s|%2F|/|g;s|%3F|?|g;s|%3D|=|g;s|%26|\&|g;s|%5B|\[|g;s|%5D|\]|g;s|%28|(|g;s|%29|)|g;s|%7B|{|g;s|%7D|}|g;s|%25|%|g')
    #    echo "<p>Fetching ${TORRENT}</p>"
        echo "Source: " ${SOURCE}
    #    wget --quiet -P ${SOURCE} "${TORRENT}"  ||  echo "<p>wget ${TORRENT} failed</p>"
         wget --quiet -O /opt/tmp/dl.torrent "${TORRENT}" || echo "<p>wget ${TORRENT} failed</p>"
    #     DLTARG=`btcheck /opt/tmp/dl.torrent | awk '{if($0~/cacheopen/) print substr($0,11,index($0,".")-11)".torrent"}'|sed -e 'y/\\//-/'`
         DLTARG=`btlist /opt/tmp/dl.torrent | awk '{if($0~/name/)name=sprintf("%s",substr($0,index($0,":")+2))}END{print name}' | sed -e 'y/./_/' -e 'y/\\//\_/'`
     echo "DLTARG=" ${DLTARG}
         cp /opt/tmp/dl.torrent "${SOURCE}/${DLTARG}.torrent"
        rm -f /opt/tmp/dl.torrent
    }
    It's only a hack, but if somebody likes it...
    Hi, try this instead of your hack :-)
    Code:
    [wl-500gp]# FETCH="%2FfolderScreen%3FsessionId%3D%26welcome%3D1"
    [wl-500gp]# TORRENT=`echo $FETCH |sed 's/%/\\\\x/g'`
    [wl-500gp]# TORRENT=`echo -e "$TORRENT"`
    [wl-500gp]# echo $TORRENT
    /folderScreen?sessionId=&welcome=1

  12. #72
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Included this escaping in latest source. Tnx for hint.

  13. #73
    Quote Originally Posted by oleo View Post
    Included this escaping in latest source. Tnx for hint.
    :-)
    I started to improve the torrent.cgi script and now I found the transmission. Thanks for it.

  14. #74

    Question Problem in 0.6+r1378-4

    Code:
    [maros@wl-500gp tmp]$ sh -x /opt/share/www//cgi-bin/transmission.cgi
    + . /opt/etc/transmission.conf
    + SOURCE=/tmp/harddisk/torrent/source
    + WORK=/tmp/harddisk/torrent/work
    + TARGET=/tmp/harddisk/torrent/target
    + MAILOPT=-smail.somedomain.com -f
    + USER=nobody
    + GROUP=root
    + DATE_FORMAT=%d %h %H:%M
    + PIDFILE=/opt/var/run/transmission.pid
    + ACTIVE=/tmp/harddisk/torrent/active-torrents.txt
    + HOME=/tmp/harddisk/torrent
    + WATCHDOG=300
    + LISTENING_PORT=65534
    + UPLOAD_SPEED=40
    + DOWNLOAD_SPEED=-1
    + SYSLOG=/opt/var/log/messages
    + AUTOSEED=YES
    + GNUPLOT=/opt/bin/gnuplot
    + GNUPLOT_COMMAND=/tmp/harddisk/torrent/work/transfer.gnuplot
    + GNUPLOT_DATA=/tmp/harddisk/torrent/work/transfer.data
    + GNUPLOT_OUTPUT=/opt/share/www/transfer.png
    + HTTP_IMG_LOCATION=../transfer.png
    + TIMEZONE_OFFSET=+3600
    + GREEN=\033[32;1m
    + NORMAL=\033[0m
    + WARN=\033[33;1m
    + BAD=\033[31;1m
    + BOLD=\033[1m
    + GOOD=\033[32;1m
    + PATH=/bin:/sbin:/usr/bin:/opt/sbin:/opt/bin:/usr/sbin
    + export PATH
    /opt/share/www//cgi-bin/transmission.cgi: /opt/share/www//cgi-bin/transmission.cgi: 224: Syntax error: redirection unexpected
    I don't understood this. Row 224 contains only "sleep 5".

  15. #75
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Quote Originally Posted by maros View Post
    [CODE]

    I don't understood this. Row 224 contains only "sleep 5".
    Bug is in line 88. I should always check it it works. For trivial changes also!
    Wait for -5

    http://trac.nslu2-linux.org/optware/changeset/5234
    Last edited by oleo; 19-01-2007 at 12:26. Reason: link

Page 5 of 16 FirstFirst ... 3456715 ... LastLast

Similar Threads

  1. Torrent clients - needed help with rtorrent compilation
    By sponsor79 in forum WL-500g Custom Development
    Replies: 2
    Last Post: 18-10-2006, 00:11
  2. torrent & ports
    By ros in forum WL-500g Q&A
    Replies: 6
    Last Post: 18-07-2006, 07:43
  3. Bandwidth Management wie kann ich für 1 PC nur Browser zulassen und keine Downloads
    By silver_ch in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 02-06-2006, 11:32
  4. Torrent Client op WL500G
    By pietjebell in forum Dutch Discussion - Nederlands
    Replies: 3
    Last Post: 24-05-2006, 14:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •