ubuntu-devel@lists.ubuntu.com

Zach uid000 at gmail.com
Thu Sep 15 18:39:46 CDT 2005


On 9/15/05, Dave Meikle <loompa at gmail.com> wrote:
> 
>  -- SNIP --
>  On 9/15/05, Sam Morris <sam at robots.org.uk> wrote:
>  > Zach wrote:
>  > > [gnome-bittorrent] takes, IIRC, the exact same command line options as
>  > > the basic bittorrent commandline client, which let you limit things
>  > > like max upload, max download, min port, max port, etc.  You have to
>  > > edit the various places where it is launched from in order set the
>  > > command line options.  One of those is the menu item in gnome, and
>  > > another is the mime association, firefox, I believe.  Also you could
>  > > create a shell script or alias that passes those options to
>  > > gnome-bittorrent.
>  >
>  > dpkg-divert can help with this. dpkg-divert allows you to tell dpkg that
>  > you want a certain file moved out of the way. dpkg will remember this if
>  > you later upgrade/remove/install the package:
>  >
>  >   dpkg-divert --add --local /usr/bin/gnome-bittorrent
>  >
>  > Create a file /usr/bin/gnome-bittorrent:
>  >
>  >   #!/bin/bash
>  >   exec /usr/bin/gnome-bittorrent.distrib --max_upload_rate 12 "$@"
>  >
>  > Make the file executable:
>  >
>  >   chmod a+x /usr/bin/gnome-bittorrent
>  >
>  > Now you have a custom gnome-bittorrent that limits its uploads to
>  > 12k/sec. Other arguments can be added, to taste. :)
>  >
>  >
>  >
>  >very cool trick, indeed.
>  
>  -- SNIP --
>  
>  Could you not just goto the "Upload" tab, and then use the "Cap Upload" and
> "Cap Upload Rate" fields. I think this works for me but have never really
> checked ;-) 
>  
>  Obviously you can use the other method to add further tweaks.
>  
>  Regards,
>  Dave
>  
Yes I think you can do that, but the original poster wanted to
configure gnome-bittorrent to listen on a different port range, which
is not configurable (last I checked) through the gui.  Also it is
convenient to not have to configure rates manually each time.



More information about the ubuntu-devel mailing list