找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: zmyheart

自制 BT MLdonkey下载简易包GHOST版 11月14日版 参见10楼更新内容

[复制链接]
 楼主| 发表于 2008-8-9 08:16 | 显示全部楼层
原帖由 idmsony1 于 2008-8-8 21:33 发表
还有一个问题就是BT的是乱码,LZ也是这样吗?


乱码问题现在暂时还没有解决办法,主要是Samba2的编码和WINDOWS的编码不一致问题。
不知道哪位有成功的,能否帮助解决的,这样我也修改一下我的简易安装包。
所以在下载完毕还是要麻烦大家修改一下文件名称,然后才可以在网上邻居里浏览和复制。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 09:53 | 显示全部楼层
乱码问题解决了,只要设置encoding_list = zh_CN/UTF-8就可以了,不过ntorrent不能连接了,一连接rtorrent进程自动停止。现在用screen管理了,samba里面也能正常显示中文了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 10:10 | 显示全部楼层
原帖由 zmyheart 于 2008-8-9 08:16 发表


乱码问题现在暂时还没有解决办法,主要是Samba2的编码和WINDOWS的编码不一致问题。
不知道哪位有成功的,能否帮助解决的,这样我也修改一下我的简易安装包。
所以在下载完毕还是要麻烦大家修改一下文件名 ...


用samba3应该不会有乱码。
安装:
/opt/bin/ipkg install samba

如果是 /opt/bin/ipkg install samba2  安装的是samba2,
建议大家用samba3,然后配合 rtorrent.conf 的配置,共享时就不会乱码了。


rtorrent.conf 的配置  主要是加入
encoding_list = UTF-8
即可。


下面是我的路由上面的rtorrent.conf 的配置。
#----------------------------------------------------------------------------------------------------------------------------------------------
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Minumum amount of peers to connect per torrent, if available.
min_peers = 40

# Minumum amount of peers to connect per torrent.
max_peers = 250

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 20

# Maximum number of simultanious uploads per torrent.
max_uploads = 1

# Global download rate in KiB. "0" for unlimited.
download_rate = 100

# Global upload rate in KiB. "0" for unlimited.
upload_rate = 2

# Default directory to save downloaded files. Note it doesn't support
# space yet.
directory = /opt/share/torrent/work/

# Watch a directory for new torrents, and stop those that have been deleted.
schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /opt/share/torrent/session

# The ip address reported to the tracker.
#ip = rakshasa

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = rakshasa

# Port range to use for listening.
port_range = 51777-51777

# Start opening ports at a random position within the port range.
#port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = no

# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

#
# Do not modify the following parameters unless you know what you're doing.
#

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10

# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10

# Max number of files to keep open simultaniously.
#max_open_files = 128

# Number of sockets to simultaneously keep open.
#max_open_sockets = <no default>


# Example of scheduling commands: Switch between two ip's every 5
# seconds.
#schedule = "ip_tick1,5,10,ip=torretta"
#schedule = "ip_tick2,10,10,ip=lampedusa"

# Remove a scheduled event.
#schedule_remove = "ip_tick1"

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
schedule = ratio,30,60,stop_on_ratio=200


# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plain
text
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht = on

# UDP port to use for DHT.
#
dht_port = 6885

# Enable peer exchange (for torrents not marked private)
#
peer_exchange = yes

#
# Do not modify the following parameters unless you know what you're doing.
#
#
scgi_port = :5000
umask = 0000
encoding_list = UTF-8
#
#
#----------------------------------------------------------------------------------------------------------------------------------------------
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 10:11 | 显示全部楼层
再贴一下我的路由上面的smb.conf配置

########################################################
[global]
display charset = UTF-8
unix charset = UTF-8
dos charset = UTF-8
########################################################
workgroup = WORKGROUP
netbios name = XP
server string = Belkin Samba Server
log file = /opt/var/log/samba/log.%m
max log size = 50
hosts allow = 172.16.0.0/24
load printers = no
browseable = yes
security = share
guest account = root
########################################################
[FTP]
comment = FTP Server
path = /opt/share/www/ftp
public = yes
browseable = yes
writable = yes
printable = no
only guest = no
########################################################
[Router]
comment = Router Server
#path = /
path = /tmp/a
public = yes
browseable = yes
writable = yes
printable = no
only guest = no
########################################################
[BT]
comment = BT Server
#
path = /opt/share/torrent
public = yes
browseable = yes
writable = yes
printable = no
only guest = no
########################################################
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 10:17 | 显示全部楼层
原帖由 idmsony1 于 2008-8-9 09:53 发表
乱码问题解决了,只要设置encoding_list = zh_CN/UTF-8就可以了,不过ntorrent不能连接了,一连接rtorrent进程自动停止。现在用screen管理了,samba里面也能正常显示中文了


我的用
encoding_list = UTF-8

ntorrent 可以正常连接 rtorrent。用的是ssh。
注意。有些外星人的种子添加后会导致rtorrent自动退出。
      重新启动rtorrent,然后用ntorrent连,一连接,rtorrent就会自动退出。进入死循环。
     这时,telnet到路由,删除session目录下面的 rtorrent.lock 即可。

rtorrent的自动启动,放在诊断的启动里面。
/opt/bin/screen -d -m /opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.conf
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-9 10:39 | 显示全部楼层
原帖由 scutlxb 于 2008-8-9 10:17 发表


我的用
encoding_list = UTF-8

ntorrent 可以正常连接 rtorrent。用的是ssh。
注意。有些外星人的种子添加后会导致rtorrent自动退出。
      重新启动rtorrent,然后用ntorrent连,一连接,rtorrent ...


如果使用SCREEN方式自然是很好,可是很多人还是习惯ntorrent的方式,而且界面漂亮操作简单。
ntorren使用SSH的方式我也是用过的,但是经常会遇到rtorrent自动推出的问题,而且重新启动的HASH的时间也很长。
而且遇到问题后的操作也比较麻烦,所以也是我不建议用SSH的方式的原因。而且还是无法解决SAMBA2的乱码问题。

关于scutlxb所提出的SAMBA3的方案,我这两天有时间一定试试看,如果能够成功的解决乱码问题。
一定在最快的时间更新我的简易安装包的。请大家耐心等待。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 10:52 | 显示全部楼层
原帖由 zmyheart 于 2008-8-9 10:39 发表


如果使用SCREEN方式自然是很好,可是很多人还是习惯ntorrent的方式,而且界面漂亮操作简单。
ntorren使用SSH的方式我也是用过的,但是经常会遇到rtorrent自动推出的问题,而且重新启动的HASH的时间也很长。 ...


我用了差不多两个月了,现在很少自动退出。
或者这样,到session目录发现 有 rtorrent.lock ,就先删除了。然后再用ntorrent连接。

修改一下rtorrent.conf, 设置
check_hash = no

正常退出一般是不会进行hash的。
所以路由在下载的时候,要关闭路由,断电的话,先用ntorrent连接上去后, 选择下载的那个文件右键先停住+关闭。然后再关闭路由。

一般我都是用脚本关闭程序:
#!/bin/sh
cd /
echo "stop monit ......"
killall monit
echo "stop thttpd ......"
killall thttpd
echo "stop proftpd ......"
killall proftpd
echo "stop lighttpd ......"
killall lighttpd
echo "stop mysql ......"
killall mysqld
echo "stop rtorrent ......"
killall rtorrent
echo "stop screen ......"
killall screen
echo "stop smb ....."
killall smbd
killall nmbd
echo "stop amule ......"
killall amuled
echo "stop cherokee ......"
killall cherokee
echo "stop cherokee-admin ......"
killall cherokee-admin
echo "stop php-fcgi ......"
killall php-fcgi
#
sleep 3
echo "stop swap ......"
/opt/bin/busybox swapoff /jffs/swapfile
#
sleep 3
echo "umount /mnt /opt /jffs ......"
umount /mnt
umount /opt
umount /jffs
sleep 1
df > /tmp/df.txt
cat /tmp/df.txt
sleep 1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 10:58 | 显示全部楼层
原帖由 zmyheart 于 2008-8-9 10:39 发表


如果使用SCREEN方式自然是很好,可是很多人还是习惯ntorrent的方式,而且界面漂亮操作简单。
ntorren使用SSH的方式我也是用过的,但是经常会遇到rtorrent自动推出的问题,而且重新启动的HASH的时间也很长。 ...



关于samba3.0,请参考下这个仁兄的博客,里面的很多文章都不错。
http://hi.baidu.com/chenshake/bl ... 922ace7acbe15e.html

另外samba3比较大 ,大概30M。
http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/

[ 本帖最后由 scutlxb 于 2008-8-9 10:59 编辑 ]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 11:21 | 显示全部楼层
现在发现速度上不去,种子连不到
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 11:53 | 显示全部楼层
原帖由 idmsony1 于 2008-8-9 11:21 发表
现在发现速度上不去,种子连不到


零零叮叮的一句,
不知道你那里的设置有问题?无法分析

是不是这里:
download_rate = 100

把它改大点,500 ?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-9 12:00 | 显示全部楼层
原帖由 idmsony1 于 2008-8-9 11:21 发表
现在发现速度上不去,种子连不到


不知道你哪里出的问题,关键是看种子的质量,不是每一个都下载速度快的。
我这里下载基本上都是150kb 以上的速度。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 18:32 | 显示全部楼层
强烈建议不要用 Paragon Partition Manager 7.0   进行分区格式化, 不支持 4Gb文件。

我就是用 Paragon Partition Manager 7.0  格式话的,下载 4GB文件,提示错误。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-9 21:01 | 显示全部楼层
也不知道什么原因,迅雷下载很快,但是现在rtorrent就是速度上不去,download_rate也改过了,而且我下载的都是热门种子,不知道 为什么。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-11 08:53 | 显示全部楼层
好帖!谢谢兄弟
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-11 16:20 | 显示全部楼层
各位支持我的兄弟们 有好消息了 经过测试SAMBA3.0已经安装成功
并且已经解成功的决乱码问题了。


我会在近期几天内把最新版的 简易安装包 上传敬请期待。

多谢论坛内给我提供帮助的朋友。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-24 05:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表