Results 1 to 2 of 2
-
05-11-2011, 09:04 PM #1Disabled
- Join Date
- Jul 2010
- Posts
- 36
How to Setup Ubuntu VPS with rTorrent+wTorrent (Seedbox)
1. Configure your firewall
This part of the setup is based on following assumption:
- you've only one wordwide IP address and
- your VE has a private IP address.
It is assumed that your VE can connect to the internet, as only the special setup for the bittorrent ports is shown. The following iptables code will redirect the required ports to your VE, where xxx.xxx.xxx.xxx is the IP of your VE.
Code:iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 63963:63981 -j DNAT --to-destination xxx.xxx.xxx.xxx iptables -A FORWARD -d xxx.xxx.xxx.xxx -p tcp --dport 63963:63981 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 63982 -j DNAT --to-destination xxx.xxx.xxx.xxx iptables -A FORWARD -d xxx.xxx.xxx.xxx -p tcp --dport 63982 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 63982 -j DNAT --to-destination xxx.xxx.xxx.xxx iptables -A FORWARD -d xxx.xxx.xxx.xxx -p udp --dport 63982 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
At first the packages we need: (As more packages we can use the less work we'll have)
Code:apt-get install rtorrent screen mc wget lighttpd gawk php5-cgi php5-common php5-sqlite php5-xmlrpc sqlite unzip php5-curl
Code:update-rc.d rtorrent defaults 25
Code:# adduser --disabled-login rt # usermod -aG tty rt # su - rt $ wget http://robert.penz.name/wp-content/uploads/2008/08/rtorrent.rc -O .rtorrent.rc $ mkdir /home/rt/session $ logout
change the /home/rt/.rtorrent.rc file to your needs. You should try out rtrorrent after any config file change, to avoid problems with syntax errors or that stuff.
Code:# su - rt $ rtorrent
Code:$ logout
3. lighttpd setup
This sections shows how to setup lighttpd for rtorrent XML RPC and for wtorrent. Add "mod_scgi" to the server.modules in /etc/lighttpd/lighttpd.conf and add following there too:
url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",)
Create following file /etc/lighttpd/conf-available/10-scgi.conf with following content:
Code:scgi.server = ( "/RPC2" => # RT_DIR ( "127.0.0.1" => ( "host" => "127.0.0.1", # Ip where rtorrent is listening "port" => 5000, # Port specified in .rtorrent.rc "check-local" => "disable" ) ) )
# cd /etc/lighttpd/conf-enabled/
# ln -s ../conf-available/10-cgi.conf .
# ln -s ../conf-available/10-scgi.conf .
Restart lighttpd:
/etc/init.d/lighttpd restart
4. Install wtorrent
Get the newest version and configure it:
Code:# cd /var/www/ # rm index.lighttpd.html # wget "http://www.wtorrent-project.org/trac/changeset/latest/trunk/?old_path=%2F&format=zip" -O wtorrent.zip #unzip wtorrent.zip #mv trunk/wtorrent/* . #rm -rf trunk #mkdir tpl_c/ #cd conf # cp sample.user.conf.php user.conf.php
Code:define( 'DIR_TORRENTS', 'torrents/'); define( 'DIR_EXEC', '/var/www/'); define( 'DIR_DOWNLOAD', '/home/rt/doing');
Code:#cd /var/www #chown -R www-data:www-data * #chmod -R 755 *
http://xxx.xxx.xxx.xxx/install2.php
After the install is finished do following:
Code:# mv install.php install.php_deactivated # mv install2.php install2.php_deactivated
-
05-11-2011, 10:18 PM #2Newbie
- Join Date
- Apr 2011
- Posts
- 22
How to if I using apache instead lighttpd?
And is it possible to create multi user like torrentflux?
Thanks.
Similar Threads
-
Help me setup my seedbox?
By WLH-G in forum Employment / Job OffersReplies: 4Last Post: 03-05-2011, 12:38 PM -
need seedbox setup
By eyeballs in forum Employment / Job OffersReplies: 3Last Post: 02-14-2011, 11:43 AM -
rTorrent + ruTorrent seedbox setup on Linux
By snielsen in forum Systems Management RequestsReplies: 7Last Post: 01-28-2011, 05:14 AM -
4€ Per Month Bittorrent Seedbox - rTorrent + ruTorrent
By NuCode in forum Other Hosting OffersReplies: 0Last Post: 01-11-2011, 09:43 PM -
Any Tutorial To Start SeedBox On Ubuntu 10.04 ?
By X-Dev in forum VPS HostingReplies: 7Last Post: 08-31-2010, 09:56 PM