让Synology 207+支持PT下载!!!

安裝與設定 DSM 作業系統的相關討論。
Forum rules
討論區的文章不一定都會得到官方人員的回覆,討論區中不提供詳盡的技術支援服務,如果您需要及時的技術支援,請聯絡我們

让Synology 207+支持PT下载!!!

Postby gxcunz » 2009-10-06, 23:28

去年败了207+,一直是IPKG装Rtorrent下载HDC,最近换了RAID0,想重装,却发现http://www.maartendamen.com/主站关闭了,没有办法IPKG安装软件了,郁闷中开始研究207+原装的2.2系统,参考了mike33 和网络守望者 的贴子,试着改DOWNLOAD STATION里的端口选项,再一试HDC的种子,居然成功了,流泪啊流泪,满眼黑底白字幕的LIUX时代终于一去不复返了!
下面把详细的流程告诉大家:
1、进入Download Station,点击设置
第一步.JPG

2、修改设置为如下值
第二步.JPG

3、添加HDC种子
第三步.JPG

4、下载开始了
第四步.JPG


附加:207+IPKG安装Wtorrent+rtorrent的方法
要先在 Management2.2里打加终端机里的telnet和SSH的选项,然后点开始-附件-命令提示符
telnet.JPG

用户名:root,密码与admin的相同,登录成功后进行如下步骤:

1、下载初始化程序
wget http://www.maartendamen.com/synoware/ds ... ap_1.0.xsh
该网站不知如何关闭了。
2、初始化机器
sh ds_armmarvell-bootstrap_1.0.xsh
3、更新软件
ipkg update
4、验对
ipkg list
5、更换版本至xmlrpc-c v1.11.00-2
vi /opt/etc/ipkg.conf
6、按“i”进入编辑模式,在行首加入此句
src maarten http://www.maartendamen.com/synoware
7、保存
按两下ESC,输入“:wq”回车
8、下载xmlrpc-c v1.11.00-2
ipkg update
ipkg install xmlrpc-c
9、回到原版本IPKG程序
vi /opt/etc/ipkg.conf后将首句更改为“src packages http://ipkg.nslu2-linux.org/feeds/optwa ... s/unstable”按两下ESC,输入“:wq”回车
10、安装相应程序
ipkg update
ipkg install rtorrent php php-fcgi php-curl libcurl lighttpd sqlite svn screen
11、下载设置文件
wget -O /root/.rtorrent.rc 'http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=1057&format=raw'
12、编辑文件
vi /root/.rtorrent.rc
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 40
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 50
# Maximum number of simultanious uploads per torrent.
max_uploads = 15
# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 45
# stop at ratio 1.5 with at least 50 MB uploaded, or else ratio 2.0
schedule = ratio,60,60,"stop_on_ratio=150,50M,200"
# Port range listening - Don't forget to open those ports on you firewall/router
port_range = 6891-6999
directory = /volume1/public/rt/
session = /root/.rtorrent
在最后一行加上用于跟Wtorrent联络的端口:
scgi_local = /root/.rtorrent/rpc.socket
13、试运行rtorrent,成功后Ctrl+Q退出
rtorrent
14、编辑PHP环境
vi /opt/etc/php.ini
在“extension="系列语句最后加入
extension=sqlite.so
extension=pdo.so
两行命令
15、编辑lighttpd环境
vi /opt/etc/lighttpd/lighttpd.conf
A

server.modules = (
去掉# "mod_access",
去掉# "mod_fastcgi",
在最尾输入,注意在上一行最尾补上逗号 "mod_scgi")
B
在文件尾加入
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/root/.rtorrent/rpc.socket",
"check-local" => "disable",
"disable-time" => 0,
)
)
)
16、进入lighttpd目录
cd /opt/share/www/lighttpd

17、下载75版本的wtorrent
wget -O temp.zip 'http://www.wtorrent-project.org/trac/changeset/75/trunk/wtorrent?old_path=%2F&old=75&format=zip'
18、下载安装解压软件
ipkg install unzip
19、新建/wtorrent目录
mkdir wtorrent
20、解压75版本到/wtorrent目录下
unzip temp.zip
21、进入解压后的trunk目录
cd trunk
22、复制wtorrent目录到lighttpd目录下
cp -r wtorrent /opt/share/www/lighttpd/
23、进入wtorrent目录
cd wtorrent
24、改名
cp conf/sample.home.conf.php conf/home.conf.php
25、编辑
vi conf/home.conf.php
将URL和BASE改为:http://192.168.1.188:8081/lighttpd/wtorrent
修改成
define( 'RT_HOST', 'localhost');
define( 'RT_PORT', 8081);
define( 'RT_DIR', 'RPC2/');
define( 'RT_AUTH', false);
define( 'RT_USER', 'my_user');
define( 'RT_PASSWD', 'my_password');
DIR_EXEC (set it to /opt/share/www/lighttpd/wtorrent/
DIR_DOWNLOAD (set it to wherever you want your downloads to go, like "directory" in .rtorrent.rc)
26、编辑
vi /opt/etc/init.d/S99rtorrent
#dirlayout=RTORRENT_DEFAULT
dirlayout=CUSTOM
user="p2p"
user="root"
config="/opt/etc/rtorrent.conf"
config="/root/.rtorrent.rc "
logfile="/opt/var/log/rtorrentInit.log"
logfile="/root/rtorrentInit.log"
SCRIPTNAME=/etc/init.d/$NAME
SCRIPTNAME=/opt/etc/init.d/$NAME
修改for i in `echo "$PATH" | tr ':' '\n'` ; do
if [ -f $i/$NAME ] ; then
exists=1
break
fi
done
为#for i in `echo "$PATH" | tr ':' '\n'` ; do
# if [ -f $i/$NAME ] ; then
exists=1
# break
#fi
#done
修改 stty stop undef && stty start undef
[ -d "${base}" ] && cd "${base}"
su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
# this works for the screen command, but starting rtorrent below adopts screen session gid
# even if it is not the screen session we started (e.g. running under an undesirable gid
#su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2

为 if [ -e /root/.rtorrent/rpc.socket ] || [ -e /root/.rtorrent/rtorrent.lock ] ; then
echo "."
echo "rtorrent has not been properly stop."
echo "Deleting locked files ..."
rm -rf /root/.rtorrent/rpc.socket
rm -rf /root/.rtorrent/rtorrent.lock
echo -n "Done"
fi
if [ -e /root/.rtorrent/rpc.socket ] || [ -e /root/.rtorrent/rtorrent.lock ] ; then
echo "."
echo -n "Locked files not deleted, please check .."
fi
stty stop undef && stty start undef
[ -d "${base}" ] && cd "${base}"
# su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
# this works for the screen command, but starting rtorrent below adopts screen session gid
# even if it is not the screen session we started (e.g. running under an undesirable gid
# su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
# su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
su -c "screen -d -m rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile"
27、遇到无打开的问题
/opt/etc/init.d/S99rtorrent start
今天心血来潮,升级了下rtorrent,最新版本rtorrent_0.8.4-2_mipsel.ipk,结果不升级倒是好,一升级倒是升级出问题来了,按照《rTorrent + nTorrent 完整攻略》修改设定完毕后,无论如何启动/opt/etc/init.d/S99rtorrent,结果都是-sh: /opt/etc/init.d/S99rtorrent: not found,折腾了N久,上网找了N久的资料,终于找到问题所在并解决,解决问题办法如下
nano /opt/etc/init.d/S99rtorrent
修改#!/opt/bin/bash为#!/bin/sh
OK,搞定。
您沒有權限檢視這篇文章所附加的檔案。
gxcunz
初心者Lv1
初心者Lv1
 
Posts: 1
Joined: 2009-10-06, 23:14

Re: 让Synology 207+支持PT下载!!!

Postby synojack » 2009-10-08, 19:40

親愛的使用者您好:

DSM 2.2開始可以支援PT下載,以後不用再大費周張的改機了 ;)
請不要直接PM詢問有關技術支援的問題,請將您的問題發表在討論區,謝謝!
Synology產品資訊 ; Synology相容週邊 ; SynologyDSM3.0線上體驗
Synology熱門FAQ ; Synology技術支援 ; Synology下載中心
Synology學園 ; Synology產品及電子報註冊
User avatar
synojack
Site Admin
Site Admin
 
Posts: 556
Joined: 2009-05-04, 09:38

Re: 让Synology 207+支持PT下载!!!

Postby jhonny » 2009-10-08, 23:02

是不是一定要改端口才能PT呢?
jhonny
初心者Lv1
初心者Lv1
 
Posts: 8
Joined: 2009-09-26, 17:21

Re: 让Synology 207+支持PT下载!!!

Postby jcwu » 2009-10-09, 02:14

上次問客服說是不能跟預設端口一樣, 你試試7x10~7x2x範圍的端口 :P
讓隱喻和象徵留在文學裡...
生活將不再那麼曲折..
我要讓一切...變得乾脆而簡單!
User avatar
jcwu
大師Lv1
大師Lv1
 
Posts: 624
Joined: 2008-06-17, 23:17


Return to DSM 安裝與設定

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest