Dienstag, 14. Mai 2013

Tutorial: How to automatically start opentracker and rtorrent on a Raspberry Pi

Motivation

In my last post I explained how to setup a torrent-box on a Raspberry Pi. But there is still one important thing to do: automatically start opentracker and rtorrent so you needn't to do it yourself after each reboot. It's not that easy because rtorrent can't be started as deamon and you probably want to be able to get the background rtorrent process so you can change the setting (e.g. limit the upload speed). To solve this problem I used tmux.

Setup the autostart

The first thing is to put the opentracker executable into the /usr/bin
Then install tmux

sudo apt-get install tmux

Now we have to write our init.d script which will be called at the startup