Posts tagged ‘rtorrent’

Run rtorrent as a daemon in Arch Linux

Archlinux-icon.png

Copy this into /etc/rc.d/rtorrent and add the daemon to /etc/rc.conf. Make sure you change USER in the script below to your user name

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Starting rtorrent"
    su rtorrent -c 'screen -d -m rtorrent' &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon rtorrent
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping rtorrent"
    killall -w -s 2 /usr/bin/rtorrent &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon rtorrent
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0

Source:
http://forums.gentoo.org/viewtopic-t-600362.html
http://wiki.archlinux.org/index.php/RTorrent#rtorrent_Daemon_with_screen

http://bbs.archlinux.org/viewtopic.php?id=53395

Commandline BitTorrent

bittorrent.png

rtorrent is a command line bit torrent client for unix-based systems. It’s relatively simple to use. To install:

  • on Suse I was unable to find anything in the repo’s. So i grabbed the source from here
    • rpm -Uvh rtorrent-0.7.6-1.1.i586.rpm
    • rpm -Uvh libtorrent-0.11.6-1.1.i586.rpm

    (both packages are available at the link above)

      
      
  • run the application: rtorrent

Usage

To simply download a torrent do the following:

rtorrent http://extratorrent.com/download/666052/openSUSE-10+2-GM-DVD-i386-iso.torrent

For further options see the man page and the user guide.