Reply
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Transmission

[ Edited ]


Transmission

    • Description: Transmission is a Peer to Peer (P2P) Client,which will let you download files from the BitTorrent Network. It support encryption and peer blocking. Some scripts have been added to enhance the capabilities like uncompressing files, moving complete downloads to a specific directory.
      BitTorrent is a peer-to-peer file sharing protocol used for distributing large amounts of data. BitTorrent is one of the most common protocols for transferring large files, and by some estimates it accounts for about 35% of all traffic on the entire Internet.[1]

      The protocol works initially when a file provider makes his file (or group of files) available to the network. This is called a seed and allows others, named peers, to connect and download the file. Each peer who downloads a part of the data makes it available to other peers to download. After the file is successfully downloaded by a peer, many continue to make the data available, becoming additional seeds. This distributed nature of BitTorrent leads to a viral spreading of a file throughout peers. As more seeds get added, the likelihood of a successful connection increases exponentially. Relative to standard Internet hosting, this provides a significant reduction in the original distributor's hardware and bandwidth resource costs. It also provides redundancy against system problems and reduces dependence on the original distributor

 

    • Requirements: RAIDiator 4.2.15+

 

  • Platform: x86

 

  • Current Version:2.82
    Transmission 2.82(x86)
    Transmission 2.80(x86)
    Transmission 2.77 (x86)
    Transmission 2.73 (x86)
    Transmission 2.71 (x86)


      • I add a repair button in case of firmware upgrade (no need to reinstall transmission but require PHP)

      • Transmission will not start just after upgrade or install if location is not set in settings.json in case of upgrade

      • Empty location in setings.json if /media does not exist (fresh install)

      • Empty watch-dir setting if /media does not exist (fresh install)

      • Prefetch disabled by default

      • DHT disabled by default

    • incomplete-dir empty if /media does not exist (fresh install)


    So it mean thaht you will need to modify settings.json before starting transmission the first time you install it



        • Changes in 2.20 :

          • All Platforms ¶

              • Remember downloaded files when a drive is unplugged
              • File re-verification is no longer needed in some situations

              • Fix "Too many open files" error

              • Show the total downloading and seeding time per torrent

              • Fix webseeds

              • Better support for IPv6-only trackers

              • Add the ability to shutdown Transmission sessions via RPC

              • NAT-PMP and UPnP now also map the UDP port

              • Update the DHT code to dht-0.18

              • Faster parsing of bencoded data

              • Improve support for running scripts when a torrent finishes downloading

              • Fix reannounce interval when trackers return a 404 error

              • Fix checksum error on platforms running uClibc 0.9.27 or older

            • Fix memmem() errors on Solaris


          • Daemon :

              • Add "reannounce to tracker" option to transmission-remote

            • transmission-remote can now read auth info from environment variables


          • Web Client :

            • Right-clicking a torrent now works with Firefox / Firegestures / Ubuntu


          • Utils:

              • Fix error when replacing substrings in tracker announce URLs

            • Webseeds are now displayed in transmission-show


        • Changes in 2.12 :
            • based on the new 2.12 Transmission

          • a new blocklist.sh script is created to use the new blocklist feature from Transmission. User who upgrade from previous version do have nothing to do for using it
            people instaling it must modify the blocklit.sh to change the password which is password1 by default (if they change the password of transmission)

                All Platforms ¶


                • Make the blocklist URL user-configurable
                • Several minor bug fixes and CPU speed improvements

                • Use slightly less bandwidth in DHT messages

              • Fix 2.10 build issue on uClibc systems



                Daemon ¶




                Cli ¶

            • Fix 2.10 crash


              Web Client ¶


            • Upgrade to jQuery 1.4.3
            • Fix 2.11 regression when using the web client on IE7 or IE8



              Utilities ¶


              • New command-line utility "transmission-edit" for editing torrent files
              • New command-line utility "transmission-show" for viewing torrent files

            • New command-line utility "transmission-create" for creating torrent files



        • better start stop (see explaination in this post)

        • an email is sent when a toorent is finished downloading (using exim if you setup your alert to custom indtead of internal in frontview)

          To be able to receive email you have two solutions :

          1st) modif your alert settings in frontview and use custom-provider instead of internal and also use advanced parameters

          2d) modify the email_alert file located in /addons-config/Transmission/ :

          replace the email_alert file with this one and do not forget to change SMPT_SERVER value to a correct one


          #!/bin/sh
          NAIL=/usr/bin/nail
          SMTP_SERVER=smtp.orange.fr
          SUBJECT="Torrent Done!"

          if [ -f /etc/frontview/alert.conf ]; then
          EmailTo=`/bin/grep "email" /etc/frontview/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
          else
          EmailTo=`/bin/grep "email" /frontview/conf/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
          fi
          if [[ "$(readlink `which sendmail`)" = "/usr/bin/msmtp" ]]; then
          EmailFrom=`/bin/grep '^from' /etc/msmtprc | /usr/bin/cut -f2 -d' '`
          else
          EmailFrom=`/bin/echo $EmailTo | awk '{ print $1 }'`
          fi
          echo "From:$EmailFrom To:$EmailTo"
          # Create the email message
          EmailFile=/tmp/tmp_email.txt
          if [ -f "$EmailFile" ]; then
          rm -f $EmailFile
          fi
          touch $EmailFile
          # Create the message headers
          echo "Date: `date -R`" >> $EmailFile
          #echo "From: $EmailFrom" >> $EmailFile
          #echo "To: $EmailTo" >> $EmailFile
          #echo "Subject:Torrent Done!" >> $EmailFile
          #echo "MIME-Version: 1.0" >> $EmailFile
          #echo "Content-Type: text/plain; charset=ISO-8859-1" >> $EmailFile
          echo "" >> $EmailFile
          # Create the message body
          /bin/echo " Hostname: $HOSTNAME" >> $EmailFile
          /bin/echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >> $EmailFile
          /bin/echo "" >> $EmailFile
          /bin/echo "----------------------------------------------------------------------" >> $EmailFile
          /bin/echo "Your add-ons developer Super-Poussin" >> $EmailFile
          #/bin/cat $EmailFile |/usr/sbin/sendmail -f $EmailFrom $EmailTo
          $NAIL -v -S from="$EmailFrom" -S smtp -s "$SUBJECT" -S smtp=$SMTP_SERVER "$EmailTo" < $EmailFile
          rm -f $EmailFile
          #################################################################################################################
          # you can use nail instead of readynas exim in this case : #
          # uncomment the $NAIL line #
          # comment the message header section #
          # put a correct SMTP_SERVER value #
          #################################################################################################################

          #################################################################################################################
          # this script will work with exim if you use custom parateters in frontview aka you specify : #
          # username #
          # smtp server ans so on #
          #################################################################################################################





        • watchdog is removed cause it can full the root

        • 60 second timeout on install for blocklist download

        • Scripts are now in /addons-scripts/Transmission

        • Config is now in /addons-config/Transmission

      • To see this new share no need to reboot Smiley Happy

      • All your download are preserved during this directory change

    • your nas will send yiou an email with link and release not in case of update
      if you don't want an email remove or rename /addons-config/Transmission/email-allowed


    New Super-poussin features :

      • Torrent creation interface :
        Torrent file created are in /c/webroot/transmission and also in /c/media/BitTorrent/sources for immediate seeding
        the torrent creation interface is http://younasip/transmission

      • better transmission start/stop script
        you have now 3 scripts you need to modify to start/stop transmission properly (torrents are stopped and restart in the last state after a reboot for example)

        scripts are in /c/addons-config/Transmission/ :
        transtart.sh
        transtop.sh
        blocklist.sh

        New transtop and transtart (people upgrading from a version < 2.04 must do the change by hand based on the code bellow)


        Vador:/Develop/TRANSMISSION-V# cat files/tmp/transtart.sh
        #!/bin/sh
        # *************
        # transmission start by super-poussin
        # *************
        # Variables
        #
        # Path to transmission-remote
        REMOTE="/usr/local/bin/transmission-remote"

        # Options to be passed to transmission-remote
        TRANSOPT=" localhost:8181 -n adminSmiley Tongueassword1"
        # *************



        LIST=`cat /c/addons-config/Transmission/downloading.txt`
        for ID in $LIST; do
        $REMOTE $TRANSOPT --torrent $ID --start > /dev/null
        done




        # *************
        # transmission stop by super-poussin
        # *************
        # Variables
        #
        # Path to transmission-remote
        REMOTE="/usr/local/bin/transmission-remote"

        # Options to be passed to transmission-remote
        TRANSOPT=" localhost:8181 -n adminSmiley Tongueassword1"
        # *************



        RUNING="$($REMOTE $TRANSOPT -l | tail -n +2 | head -n -1 | grep -v Stopped |awk '{ print $1; }' | awk -F "*" '{ print $1; }')"
        echo $RUNING > /c/addons-config/Transmission/downloading.txt


        LIST="$($REMOTE $TRANSOPT -l | tail -n +2 | head -n -1 | grep -v Stopped | awk '{ print $1; }' | awk -F "*" '{ print $1; }')"
        for ID in $LIST; do
        $REMOTE $TRANSOPT --torrent $ID --stop > /dev/null
        done



        simply replace the passwod in the line (password1 by default)

        PS: if you do not change the passwords and they are not matching: transmission will stop as before and you will have a cheking for each torrent at restart

    • Also:
      if a /Media exist the transmission install will note create a /media to avoid confusion
      if it's an upgrade it will also not try to create subdirectories in /media
      initial start/stop are restored in case you do change in it




        • All Platforms¶

            • Fix 2.02 bug where new transfers could not be added and the inspector would not appear
            • Fix NAT-PMP port forwarding issue on some systems

            • Fix filename errors for torrents whose files are encoded in ISO-8859-1

            • Fix rare crash on shutdown

            • Fix the RPC server's redirect URL to allow HTTPS proxies like stunnel

          • Replace less-portable calls with posix nanosleep()


        • Daemon¶

          • none



        • Web Ui:¶

          • none



      • Web interface on port 8181

      • default user is : admin

      • default password is : password1

      • Bittorrent port is : 51413

      • Default Download path /c/media/BitTorrent/

      • PeerBlocklist updated each day

      • Settings can be changed in Frontview UI and in Transmission WebInterface and in /addons-config/Transmission/transmission-daemon/settings.json

      • scheduler for bandwidth is removed and now handled by settings.json

      • Transmission can monitor a directory

      • Installation Notes:


        • Now to change a settings you will need to :

            • Disable Transmission

            • Modify settings.json in /addons-config/Transmission/transmission-daemon/

            • if you upgrade from old version < 1.74 verify that umask is set to 0 in settings.json

          • re-enable transmission


        Transmissions Parameters


        • New Parameters in settings.json:
            • "dht-enabled": true,

            • "alt-speed-down": 50,

            • "alt-speed-enabled": 0,

            • "alt-speed-time-begin": 540,

            • "alt-speed-time-enabled": 0,

            • "alt-speed-time-end": 1020,

            • "alt-speed-up": 50,

          • "alt-speed-time-day": 127

              • Sun : 1

              • Mon : 2

              • Tues : 4

              • Wen : 8

              • Thurs : 16

              • Frid : 32

              • Sat : 64

              • All the week (Mon to Frid) : 62

              • Only the W.E. : 65

            • All Days : 127



        "alt-speed-down" | number max global download speed (in K/s)
        "alt-speed-enabled" | 0 : disabled 1: enabled enabled means use the alt speeds
        "alt-speed-time-begin" | number when to turn on alt speeds (units: minutes after midnight)
        "alt-speed-time-enabled" | 0 : disabled 1: enabled enabled means the scheduled on/off times are used
        "alt-speed-time-end" | number when to turn off alt speeds (units: same)
        "alt-speed-up" | number max global upload speed (in K/s)
        "blocklist-enabled" | 0 : disabled 1: enabled enabled means enabled
        "download-dir" | string default path to download torrents
        "peer-limit-global" | number maximum global number of peers
        "peer-limit-per-torrent" | number maximum global number of peers
        "pex-enabled" | 0 : disabled 1: enabled enabled means allow pex in public torrents
        "peer-port" | number port number
        "port-forwarding-enabled" | 0 : disabled 1: enabled enabled means enabled
        "trash-original-torrent-files" Boolean (default = false) Delete torrents added from the watch directory.
        "script-torrent-done-enabled" Boolean (default = false) Run a script at torrent completion.
        "script-torrent-done-filename" String (default = "") Path to script.

    • Screenshots:



      • Old Versions:






If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [PRO] Transmission 1.50

updated to 1.50
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [PRO] Transmission 1.51

updated to 1.51
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [PRO] Transmission

updated to 1.52 (full version ) to correct watch_dog bug
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [PRO] Transmission

1.56 is out
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [PRO] Transmission

1.58 is out
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [x86] Transmission

1.592
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: [x86] Transmission

1.593
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: Transmission

updated to 1.60
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Moderator
Posts: 5,316
Registered: ‎2009-09-02

Re: Transmission

1.70 is out
If you like my add-ons - Si vous aimez mes add-ons :
EN/US: --- -------- FR: or Paypal @mail: readynas@orange.fr
Where I'm teaching
4B Perros
Discussion Stats
  • 47 replies
  • 310 views
  • 0 kudos
  • 1 in conversation
Top Contributors
User Kudos Count
1