openwrt(wndr4300)编译安装配置rtorrent-rpc
新版本的openwrt固件中的rtorrent没有rpc模块,不能远程控制,需要自己编译rtorrent-rpc,过程如下
环境搭建参考 ubuntu14.04编译openwrt 14.07固件(wndr4300路由)
1.下载依赖的软件包
2.修改openwrt/package/feeds/packages/rtorrent/Makefile
最后两行打开rtorrent-rpc,关闭rtorrent
$(eval $(call BuildPackage,rtorrent-rpc))
3.编译
make menuconfig
Network->Bittorrent
选中rtorrent-rpc
保存配置
编译
最后会生成ipk文件
./bin/ar71xx/packages/packages/rtorrent-rpc_0.9.4-git–1_ar71xx.ipk
4.安装
scp上面生成的ipk到路由后,运行下列命令安装
opkg install rtorrent-rpc_0.9.4-git--1_ar71xx.ipk
5.配置
挂载外置硬盘到usb目录,因为是挂载ntfs文件系统需要先安装nfts-3g工具包
创建.session目录,增加~/.rtorrent.rc文件
vi ~/.rtorrent.rc
min_peers = 40
max_peers = 120
min_peers_seed = 2
max_peers_seed = 6
max_uploads = 4
download_rate = 0
upload_rate = 20
directory = /mnt/usb/downloads
session = /mnt/usb/downloads/.session
port_range = 50800-65535
port_random = yes
check_hash = no
use_udp_trackers = yes
scgi_port = 127.0.0.1:5000
运行rtorrent,,需要先安装screen
screen -S rtorrent
rtorrent
按ctrl^a d退出screen
Tags: openwrt rtorrent rtorrent-rpc rutorrent wndr4300 编译
评论:3