startup - How to get Bit Torrent Sync to auto start in fedora?

07
2014-07
  • davidlee

    I am new to Bit Torrent Sync and Fedora. May I know how can I get BT Sync kicking when my machine start? I am able to sync via the browser client but unable to get it auto start when the machine boot.

    Thanks.

  • Answers
  • mtak

    There is an excellent guide at the BitTorrent forums. Esentially you create a systemd unit file which handles the startup and shutdown of the BTsync daemon on boot and shutdown.

    /etc/systemd/system/[email protected]:

    [Unit]
    Description=BitTorrent Sync for %i
    
    [Service]
    Type=simple
    User=%i
    ExecStart=/path/to/btsync --nodaemon --config %h/.sync/sync.conf
    WorkingDirectory=%h
    
    [Install]
    WantedBy=multi-user.target
    

    Start using: systemctl start [email protected] Start at boot using: systemctl enable [email protected]


  • Related Question

    web - Prioritize bit torrent traffic
  • Manish Mathai

    I would like to know how to prioritize traffic from various applications. Specifically I want to know if there is a way to give web traffic higher priority over bit torrent traffic. OS : Windows XP Browser : Firefox Bittorrent client : uTorrent

    Can I somehow shape the traffic such that, when I am browsing, bittorrent traffic gets suppressed (but not completely) and once no web traffic is detected , it is allowed to continue at full speed ?


  • Related Answers
  • Mehper C. Palavuzlar

    Try NetBalancer*.

    Browse and do any internet activity comfortably even when your download manager or torrent client downloads huge files from internet - just lower their network priority with NetBalancer.

    You can use NetBalancer to set download/upload transfer rate priority for any applications and monitor their internet traffic.

    *Free version is limited to 5 process priorities/limits at a time. I think 5 is quite enough.

  • 8088

    You'll want to look into a setting on your router called QoS (Quality of Service). If your router is capable of supporting 3rd party firmware, I'd suggest DD-WRT. It has an excellent QoS engine among tons of other great features. Bitorrent and HTTP traffic can easily be prioritized with the presets they give you.

    See the Services Priority section:

    alt text

  • CGA

    If you want true per application traffic shaping Cfosspeed is a good solution. I agree that the best solution probably is traffic shaping through the router but a router cannot distinguish between applications, just ports.

  • John Gietzen

    What you are talking about is called "traffic shaping".

    This generally needs to be supported by your router. However, if you want to build your own router at home, pfSense supports traffic shaping.

  • knitatoms

    Traffic Shaper XP is free and looks like it will do what you need:

    http://bandwidthcontroller.com/trafficShaperXp.html

  • Chris

    You can shape your traffic with inbuilt limiter in utorrent...you can right click the torrent and select upload and download limit..or you can adjust your bandwidth priority...

    to know more about torrents visit:

    http://computertipstrickstweaks.blogspot.com/2010/03/introduction-to-torrents.html

  • Wade Williams

    As others have stated, you can likely adjust QoS settings to make HTTP traffic have priority, within your local LAN.

    Some notes however:

    • You can't affect the priority of the traffic until it hits your local network. Any QoS settings you make in the outbound direction are going to be ignored/overwritten by your ISP.
    • If you have any kind of modern LAN infrastructure in your house, chances are good that you have plenty of bandwidth from the cable modem/DSL to your PC's. Congestion management only applies to situations of congestion. If the 100BaseT Ethernet hardware from your cable modem to your PC can keep up with the traffic (and there's a very high chance it can), then may never be used.
    • You could arbitrarily traffic-shape certain types of traffic to a low-bandwidth, but then you're hurting those applications during those periods where perhaps no HTTP is occurring.