#11 2008-10-26 00:39:03
Re: rtorrent使用web页面访问
sk22 提到:
多谢大家指导。
我按‘rtorrent+nTorrent安裝教學’修改好文件后,下载并运行NTORRENT,结果弹出窗口提示:conection reset。
什么原因呢?
另外,当启动rtorrent时,/opt/etc/init.d/./S99rtorrent start
会返回如下信息:
[admin@W500W root]$ /opt/etc/init.d/./S99rtorrent start
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
Starting rtorrent: rtorrent.
这正常嘛?是否因此而影响到NTORRENT 的运行?
多谢
我的也是如此,但還是可以執行,我也不知道會不會有什麼影響.
離線
#14 2008-10-26 01:15:07
Re: rtorrent使用web页面访问
sk22 提到:
多谢大家指导。
我按‘rtorrent+nTorrent安裝教學’修改好文件后,下载并运行NTORRENT,结果弹出窗口提示:conection reset。
什么原因呢?
另外,当启动rtorrent时,/opt/etc/init.d/./S99rtorrent start
会返回如下信息:
[admin@W500W root]$ /opt/etc/init.d/./S99rtorrent start
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
Starting rtorrent: rtorrent.
这正常嘛?是否因此而影响到NTORRENT 的运行?
多谢
我start也出現相同訊息,不過運行起來似乎是正常的
順便附上我ntorrent下載的截圖,rtorrent加上wl-500gp v2肯定能上200kb/s(多個種子一起下的話)
至於能不能餵飽我實際下載上限(448kb/s)?我今天白天會試試一次下10個種子....可憐的500gpv2
最後修改: maha (2008-10-26 03:56:43)
離線
#15 2008-10-26 02:09:05
Re: rtorrent使用web页面访问
maha 提到:
sk22 提到:
多谢大家指导。
我按‘rtorrent+nTorrent安裝教學’修改好文件后,下载并运行NTORRENT,结果弹出窗口提示:conection reset。
什么原因呢?
另外,当启动rtorrent时,/opt/etc/init.d/./S99rtorrent start
会返回如下信息:
[admin@W500W root]$ /opt/etc/init.d/./S99rtorrent start
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
[: RTORRENT_DEFAULT: unknown operand
Starting rtorrent: rtorrent.
这正常嘛?是否因此而影响到NTORRENT 的运行?
多谢我start也出現相同訊息,不過運行起來似乎是正常的
maha兄,请问是否完全按照‘rtorrent+nTorrent安裝教學’安装及设置rtorrent呢? 有无其他改动啊?
離線
#16 2008-10-26 02:44:38
Re: rtorrent使用web页面访问
maha兄,请问是否完全按照‘rtorrent+nTorrent安裝教學’安装及设置rtorrent呢? 有无其他改动啊?
我的 /opt/etc/rtorrent.conf 是有自己增加幾行,目錄跟預設的不同.但除了第一行,其他應該沒有關係
scgi_port = localhost:5000
min_peers = 20
max_peers = 60
max_uploads = 6
download_rate = 0
upload_rate = 30
check_hash = no
directory = /opt/bt-v2
schedule = watch_directory,5,5,load_start=/opt/bt-v2/dl/*.torrent
schedule = untied_directory,5,5,stop_untied=
schedule = low_diskspace,5,60,close_low_diskspace=10M
session = /opt/bt-v2/session
port_range = 12777-12780
use_udp_trackers = yes
schedule = ratio,30,60,stop_on_ratio=100
safe_sync = yes
dht = auto
dht_port = 12776
peer_exchange = yes
encoding_list = UTF-8
umask = 0000
peer_exchange = yes
encryption = allow_incoming,enable_retry,prefer_plaintext
在原文中有修改/usr/local/sbin/post-firewall,但沒有提醒要執行燒入flash的動作
flashfs save
flashfs commit
flashfs enable
此外修改/opt/etc/init.d/S99rtorrent,應該注意
找出 #replace dirlayout=RTORRENT_DEFAULT
取代成 replace dirlayout=RTORRENT_ANOTHER
找出 logfile="/opt/var/log/rtorrentInit.log"
取代成 logfile="/opt/share/torrent/rtorrentInit.log"
user="改成你的帳號"
附上我的/opt/etc/init.d/S99rtorrent
#!/bin/sh
############################################################################
#Optware package of rtorrent uses non-standard layout of directories. ##
#Uncomment the following line to switch to the default layout of rtorrent.##
############################################################################
replace dirlayout=RTORRENT_ANOTHER
#############
######
#############
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc.
# If you typically just start rtorrent with just "rtorrent" on the
# command line, all you need to change is the "user" option.
# Attach to the screen session as your user with
# "screen -dr rtorrent". Change "rtorrent" with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##############
### ###
##############
#######################
##Start Configuration##
#######################
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ".".
# . /etc/rtorrent.init.conf
#Do not put a space on either side of the equal signs e.g.
# user = user
# will not work
# system user to run as
user="admin"
# the system group to run as, not implemented, see d_start for beginning implementation
# group=`id -ng "$user"`
prefix="/opt"
# the full path to the filename where you store your rtorrent configuration
if [ ${dirlayout} = RTORRENT_DEFAULT ] ; then
config="${prefix}/home/${user}/.rtorrent.rc"
else
config="/opt/etc/rtorrent.conf"
fi
# set of options to run with
if [ ${dirlayout} = RTORRENT_DEFAULT ] ; then
options=""
else
options="-n -o import=${config}"
fi
# default directory for screen, needs to be an absolute path
if [ ${dirlayout} = RTORRENT_DEFAULT ] ; then
base="${prefix}/home/${user}"
else
base="/opt/share/torrent"
fi
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/opt/bt-v2/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
PATH=/opt/bin:/opt/sbin:/usr/bin:/sbin:/bin:/usr/sbin
DESC="rtorrent"
NAME=rtorrent
DAEMON=$NAME
SCRIPTNAME=/etc/init.d/$NAME
# Do not proceed unless some apps are available.
test -x /opt/bin/screen || ( echo "screen not found." | tee -a "$logfile" >&2 ; exit 2 )
test -x /opt/bin/su -o -x /bin/su || ( echo "su not found." | tee -a "$logfile" >&2 ; exit 2 )
checkcnfg() {
exists=0
for i in `echo "$PATH" | tr ':' '\n'` ; do
if [ -f $i/$NAME ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2
exit 3
fi
if ! [ -r "${config}" ] ; then
echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2
exit 3
fi
session=`getsession "$config"`
if ! [ -d "${session}" ] ; then
echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2
exit 3
fi
}
d_start() {
[ -d "${base}" ] && cd "${base}"
stty stop undef && stty start undef
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
}
d_stop() {
session=`getsession "$config"`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
if ps -A | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't belong to another process
kill -s INT ${pid}
fi
}
getsession() {
session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}' "$config"`
echo $session
}
checkcnfg
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
最後我猜是不是跟目錄權限有關?!
不彷把/opt/etc/rtorrent.conf裡頭相關的目錄都設0777
chmod 0777 /opt/share/torrent/session
離線
#19 2008-10-26 08:41:01
Re: rtorrent使用web页面访问
sk22 提到:
但是始终有个缺陷,就是不能选择rtorrent里的文件分别下载。
前天试过安装一个 dctcs 的,可以分别下载,但是速度就是不行啊。。。
其实更sctcs都是同一个东西,不过web界面不同了而已。
如果他的速度能够提升到,我就转用他了。http://yodctcs.googlepages.com/
在没找到解决方法时,还是先用这个高速的n/rtorrent 啦
感謝sk22兄介紹了個新玩具
試了dctcs覺得開始加速很慢很慢,但後勁十足啊 ,附圖
後來才發現DCTCS是以KiB/s計算的...想問各位KiB等於我們熟知的KB嗎?
最後修改: maha (2008-10-26 09:12:54)
離線
#20 2008-10-26 10:45:25
Re: rtorrent使用web页面访问
回M兄,应该是相同的,感觉那帮搞linux的高人都喜欢用Kib,Mib等。
另所谓的“后劲”何解呢? 启动程序后一段时间?
我可以连续开了两天,它速度保持不超过20k啊。。。所以才郁闷。
相比下,同样的网络环境,同样的种子,ntorrent目前就能稳定90kb以上。
还有一个问题就是它download的文件和文件夹是中文的话就会乱码。程序中选择下载的文件也会出现乱码,就只能在主程序里正确显示中文。有这个现象么?
btw,ntorrent也能分别下载文件 要在plungin里勾选torrent file才会出现。
離線