New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Drop ftd as BT client in favor of Transmission-daemon

Good ideas? Share with us!
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

Working on some performance tweaking, I thought I'd give this one a try. I installed transmission-daemon and sure it came up and gave me a neat looking interface. Being a pure BitTorrent client it obviously does not feature http and ftp download, but that really doesn't bother me that much. One of the first issues I found though is that the squeeze package is a rather old version (2.03) and it has a seriously annoying "feature" of loosing all the folders inside a torrent and grouping all files directly under the download location. Obviously that will get you in trouble with generically named files (such as "VIDEO_TS"), so that is a definite no-no.

I got hold of the current 2.77 source and managed to compile it on the B3. It has a dependency on libevent 2.0 which luckily doesn't conflict with the already installed 1.4 version (which is an automatic install pulled in by some other package) and solves the main issue I had with the 2.03 version. So far all seems stable enough, so I'll stick to it and see what happens.
nobody
Posts: 226
Joined: 10 Mar 2012, 14:46

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by nobody »

Strange, i installed the same version of tranmission but do not see that behaviour with lost folder structures
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by DanielM »

nobody wrote:Strange, i installed the same version of tranmission but do not see that behaviour with lost folder structures
I have to agree. Kinda irritating to have such an old version installed, but I haven't had any problems with folders in torrents.

/Daniel
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

Well, I guess my box must be special then :?

In any case, the 2.77 version has been running now for a few days and it takes less memory then ftd did. Mission accomplished therefore as far as I'm concerned.
nobody
Posts: 226
Joined: 10 Mar 2012, 14:46

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by nobody »

Considering the conformity of the bubbae, would it be easy to repackage your compile job int an Apt package to add to the excito repository? I know for pm its a bit more work but i never use apt
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

nobody wrote:Considering the conformity of the bubbae, would it be easy to repackage your compile job int an Apt package to add to the excito repository? I know for pm its a bit more work but i never use apt
I used checkinstall to add transmission and libevent-2, so I actually already have a raw layout of debian packages for them. I could probably investigate the existing transmission packages to automate some of the manual work involved (init-V script, adding user/group etc) and maybe remove some items that have no function on the B3.
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

Coming back on that last request. I've set up a simple repository where you can grab the two required packages. For those willing to try, here's how to get them:

Code: Select all

# Add the repository to the apt system
echo "deb http://babaorum.myownb3.com/debian bubba/" > /etc/apt/sources.list.d/gordon.list

# Make the new repository known to the local machine
apt-get update

# Install the Transmission daemon
aptitude install bubba-transmission
Last edited by Gordon on 21 Jul 2013, 12:14, edited 1 time in total.
nobody
Posts: 226
Joined: 10 Mar 2012, 14:46

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by nobody »

Didnt work completely. There were a lot of scary warnings but in the end it seems to be missing a no-named file or folder....

I guess getting libcurl is something to try first

Code: Select all

Linux b3 2.6.39.4-11 #1 Tue Apr 3 21:45:12 FET 2012 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr  8 20:48:59 2013 from mac-mini.fritz.box
joris@korona:~$ su -
Password: 
root@korona:~# cd /etc/transmission-daemon/
root@korona:/etc/transmission-daemon# ll
total 12
-rw-r--r-- 1 root                root                 302 Oct 18  2010 README.json
-rw------- 1 debian-transmission debian-transmission 2049 Apr  3 22:04 settings.json
-rw------- 1 root                debian-transmission 2050 Apr  3 22:03 settings.json~
root@korona:/etc/transmission-daemon# cp settings.json settings.json.ori
root@korona:/etc/transmission-daemon# 
root@korona:/etc/transmission-daemon# echo "deb http://gordon.dnsalias.net/debian bubba/" > /etc/apt/sources.list.d/gordon.list
root@korona:/etc/transmission-daemon# 
root@korona:/etc/transmission-daemon# # Make the new repository known to the local machine
root@korona:/etc/transmission-daemon# apt-get update
Hit http://b3.update.excito.org elvin Release.gpg
Ign http://b3.update.excito.org/ elvin/main Translation-en                                     
Hit http://b3.update.excito.org upstream_squeeze Release.gpg                                   
Ign http://b3.update.excito.org/ upstream_squeeze/main Translation-en                          
Hit http://b3.update.excito.org elvin Release                                                                                          
Hit http://b3.update.excito.org upstream_squeeze Release                                                                               
Ign http://b3.update.excito.org elvin/main armel Packages                                                                     
Get:1 http://ftp.se.debian.org squeeze Release.gpg [1672 B]          
Ign http://ftp.se.debian.org/debian/ squeeze/main Translation-en
Ign http://b3.update.excito.org upstream_squeeze/main armel Packages
Hit http://b3.update.excito.org elvin/main armel Packages
Ign http://gordon.dnsalias.net bubba/ Release.gpg
Ign http://gordon.dnsalias.net/debian/ bubba/ Translation-en
Hit http://b3.update.excito.org upstream_squeeze/main armel Packages
Get:2 http://ftp.se.debian.org squeeze Release [99.8 kB]
Get:3 http://gordon.dnsalias.net bubba/ Release [1538 B] 
Ign http://gordon.dnsalias.net bubba/ Packages                    
Get:4 http://gordon.dnsalias.net bubba/ Packages [2146 B]
Ign http://ftp.se.debian.org squeeze/main armel Packages 
Get:5 http://ftp.se.debian.org squeeze/main armel Packages [8441 kB]
Fetched 8546 kB in 35s (242 kB/s)                                                                                                              
Reading package lists... Done
root@korona:/etc/transmission-daemon# 
root@korona:/etc/transmission-daemon# # Install the Transmission daemon
root@korona:/etc/transmission-daemon# aptitude install bubba-transmission
The following NEW packages will be installed:
  bubba-libevent2{a} bubba-transmission{b} 
The following packages will be REMOVED:
  libcurl3{u} libssh2-1{u} 
0 packages upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 2722 kB of archives. After unpacking 3052 kB will be used.
The following packages have unmet dependencies:
  bubba-transmission: Conflicts: transmission-cli but 2.03-2 is installed.
                      Conflicts: transmission-common but 2.03-2 is installed.
                      Conflicts: transmission-daemon but 2.03-2 is installed.
                      Conflicts: transmission (<= 2.03-2) but 2.03-2 is installed.
The following actions will resolve these dependencies:

     Remove the following packages:                               
1)     transmission                                               
2)     transmission-cli                                           
3)     transmission-common                                        
4)     transmission-daemon                                        
5)     transmission-gtk                                           

     Leave the following dependencies unresolved:                 
6)     transmission-daemon recommends transmission-cli (>= 1.50-1)


Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  bubba-libevent2{a} bubba-transmission 
The following packages will be REMOVED:
  cpp{u} cpp-4.4{u} dbus-x11{u} fontconfig{u} gconf2{u} gconf2-common{u} hicolor-icon-theme{u} libatk1.0-0{u} libatk1.0-data{u} 
  libcairo2{u} libcanberra-gtk-module{u} libcanberra-gtk0{u} libcanberra0{u} libcurl3{u} libdatrie1{u} libdrm-radeon1{u} libdrm2{u} 
  libgconf2-4{u} libgl1-mesa-dri{u} libgl1-mesa-glx{u} libgtk2.0-0{u} libgtk2.0-bin{u} libgtk2.0-common{u} libidl0{u} libmpfr4{u} 
  libnotify1{u} liborbit2{u} libpango1.0-0{u} libpango1.0-common{u} libpixman-1-0{u} libssh2-1{u} libstartup-notification0{u} libtdb1{u} 
  libthai-data{u} libthai0{u} libvorbisfile3{u} libwnck-common{u} libwnck22{u} libxaw7{u} libxcb-atom1{u} libxcb-aux0{u} libxcb-event1{u} 
  libxcb-render-util0{u} libxcb-render0{u} libxcomposite1{u} libxcursor1{u} libxdamage1{u} libxfixes3{u} libxft2{u} libxi6{u} 
  libxinerama1{u} libxmu6{u} libxmuu1{u} libxrandr2{u} libxrender1{u} libxres1{u} libxtst6{u} libxv1{u} libxxf86dga1{u} libxxf86vm1{u} 
  notification-daemon{u} transmission{a} transmission-cli{a} transmission-common{a} transmission-daemon{a} transmission-gtk{a} x11-utils{u} 
  x11-xserver-utils{u} xdg-utils{u} 
0 packages upgraded, 2 newly installed, 69 to remove and 0 not upgraded.
Need to get 2722 kB of archives. After unpacking 89.6 MB will be freed.
Do you want to continue? [Y/n/?] y
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  bubba-transmission bubba-libevent2 

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": yes
Get:1 http://gordon.dnsalias.net/debian/ bubba/ bubba-libevent2 2.0.18-stable-1 [1194 kB]
Get:2 http://gordon.dnsalias.net/debian/ bubba/ bubba-transmission 2.77-1 [1527 kB]
Fetched 2722 kB in 1s (1444 kB/s)             
(Reading database ... 42597 files and directories currently installed.)
Removing x11-xserver-utils ...
Removing x11-utils ...
Removing notification-daemon ...
notification-daemon: no process found
Removing gconf2 ...
Removing libgconf2-4 ...
Removing liborbit2 ...
Removing libidl0 ...
Removing cpp ...
Removing cpp-4.4 ...
Removing dbus-x11 ...
Removing transmission ...
Removing transmission-gtk ...
Removing libwnck22 ...
Removing libcanberra-gtk-module ...
Removing libcanberra-gtk0 ...
Removing libnotify1 ...
Removing libgtk2.0-bin ...
Removing libgtk2.0-0 ...
Removing libpango1.0-0 ...
Removing libpango1.0-common ...
Purging font configuration of pango...
Purging category xfont..
Removing fontconfig ...
Purging font configuration of fontconfig...
Purging category cid..
Purging category truetype..
Purging category type1..
Removing gconf2-common ...
Removing hicolor-icon-theme ...
Removing libatk1.0-data ...
Removing libatk1.0-0 ...
Removing libcairo2 ...
Removing libcanberra0 ...
Removing libcurl3 ...
Removing libthai0 ...
Removing libdatrie1 ...
Removing libgl1-mesa-dri ...
Removing libdrm-radeon1 ...
Removing libgl1-mesa-glx ...
Removing libdrm2 ...
Removing libgtk2.0-common ...
Removing libmpfr4 ...
Removing libpixman-1-0 ...
Removing libssh2-1 ...
Removing libstartup-notification0 ...
Removing libtdb1 ...
Removing libthai-data ...
Removing libvorbisfile3 ...
Removing libwnck-common ...
Removing libxaw7 ...
Removing libxcb-atom1 ...
Removing libxcb-aux0 ...
Removing libxcb-event1 ...
Removing libxcb-render-util0 ...
Removing libxcb-render0 ...
Removing libxcomposite1 ...
Removing libxcursor1 ...
Removing libxdamage1 ...
Removing libxfixes3 ...
Removing libxft2 ...
Removing libxtst6 ...
Removing libxi6 ...
Removing libxinerama1 ...
Removing libxmu6 ...
Removing libxmuu1 ...
Removing libxrandr2 ...
Removing libxrender1 ...
Removing libxres1 ...
Removing libxv1 ...
Removing libxxf86dga1 ...
Removing libxxf86vm1 ...
Removing transmission-cli ...
Removing transmission-daemon ...
Stopping bittorrent daemon: transmission-daemon.
Removing transmission-common ...
Removing xdg-utils ...
Processing triggers for man-db ...
Selecting previously deselected package bubba-libevent2.
(Reading database ... 40888 files and directories currently installed.)
Unpacking bubba-libevent2 (from .../bubba-libevent2_2.0.18-stable-1_armel.deb) ...
Selecting previously deselected package bubba-transmission.
Unpacking bubba-transmission (from .../bubba-transmission_2.77-1_armel.deb) ...
Processing triggers for man-db ...
Setting up bubba-libevent2 (2.0.18-stable-1) ...
Setting up bubba-transmission (2.77-1) ...
Starting bittorrent daemon: transmission-daemon/usr/bin/transmission-daemon: error while loading shared libraries: libcurl.so.4: cannot open sh
ared object file: No such file or directory
invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing bubba-transmission (--configure):
 subprocess installed post-installation script returned error exit status 127
configured to not write apport reports
                                      Errors were encountered while processing:
 bubba-transmission
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up bubba-transmission (2.77-1) ...
Starting bittorrent daemon: transmission-daemon/usr/bin/transmission-daemon: error while loading shared libraries: libcurl.so.4: cannot open sh
ared object file: No such file or directory
invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing bubba-transmission (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 bubba-transmission
                                         
root@korona:/etc/transmission-daemon# 
nobody
Posts: 226
Joined: 10 Mar 2012, 14:46

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by nobody »

Ok i installed libcurl3 and all seems to be running smoothly :D

Kinda strange that the installer wants to get rid of libcurl3 but then whines that it is missing....

Im not seeing a lot of difference in the interface yet, but it seems that in the very least i got rid of about 50 unneeded pakages

Thanks gordon!
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

Aha! But you had the transmission package installed, which is the gui frontend and would probably have some dependencies on actually having a gui and being able to address is. I don't really get why it would want to uninstall libcurl, but I could add it to the dependency list of `bubba-transmission` if someone can confirm this breakage.

Oh and yes. Since I'm not an official release channel my packages are not signed. The package manager will warn you about the fact that I may be offering code that allows me to remotely access your system. I'm not, but yes it is a trust thing...
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by DanielM »

Gordon wrote:Coming back on that last request. I've set up a simple repository where you can grab the two required packages.
This is really nice of you, Gordon! Could this be the dawn of a movement where we share our own packages in the community?

Or even better, could Excito set up some kind of contrib repository? I mean, there is a good community around the Excito servers, it would be even better if users actually could help packaging stuff that Excito don't have time packaging themselves.

/Daniel
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

I verified the dependency on libcurl3 and I found that it was actually pulled in by my dev environment. So I fixed the dependencies on the `bubba-transmission` package, adding libcurl3 and removing some recursive dependencies that I took from the original `transmission-daemon` package. The fixed package is now available as an update to the one I released yesterday.

@Daniel
We'll have to wait and see what they think. I actually got the idea of adding a local repository from a guy who used this method to offer the ipsec KLIPS module for download, one of my earliest compile jobs on the B3 to solve an issue that he'd met as well, so it's not completely new. In any case I'll probably be adding some of the other changes I made to my system to this repository as well - get everything organized so I won't have to reinvent all that I did in case of disaster.
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by johannes »

Hi guys, this is really cool! And we'll of course arrange a contrib repo if you guys would make use of it, would be a natural extension to the howto wiki and this forum.

What would be the most convenient way for you? We arrange a spot on our repo server with full (on-request) access for you guys? Are there better ways to handle security around this?
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by ryz »

When this project debppa gets stable it would be very cool if used Excito it as a contrib repo.
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: Drop ftd as BT client in favor of Transmission-daemon

Post by Gordon »

Repository moved to different hostname on account of DynDNS wiping my registered hostname without warning. I've owned it for over ten years :cry:
Post Reply