天气与日历 切换到宽版
扫描二维码关注官方公众号
返回列表 发布新帖

[玩法/技巧] 群晖207+支持HDC下载方法!!!!

7549 1
发表于 2009-10-6 22:50:24 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

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

第二步

第二步


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

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

4、下载开始了。
第四步.JPG
附近加:207+IPKG安装Wtorrent+rtorrent的方法
1、下载初始化程序
wget http://www.maartendamen.com/synoware/ds_armmarvell-bootstrap_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/optware/syno-x07/cross/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,搞定。

评论1

mutorcs 发表于 2009-10-10 13:16:56 | 显示全部楼层
不知道QNAP的能不能这样设置?
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 快速发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表