扫描二维码关注官方公众号
12下一页
返回列表 发布新帖

[巴法络] Buffalo LS421DE 改机 Transmission 迅雷远程

14277 33
发表于 2014-1-14 14:42:47 | 显示全部楼层 阅读模式

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

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

×
本帖最后由 denu1024 于 2014-1-14 17:12 编辑

一 、升级固件到最新版本1.3Mac系统:地址
Windows系统:地址
二、破解SHH登录
1.确认系统有没有安装java客户端,没有的话,下载安装http://www.java.com/zh_CN/download/manual.jsp
2.下载java破解程序:下载地址,并将其放到D盘根目录。
3.点击开始菜单,在“搜索程序和文件”中输入cmd,右键cmd,选择以管理员身份登录。
键入“D:”,然后回车。进入D盘根目录。
按照如下依次输入命令
  1. java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "(echo *****;echo *****)|passwd"
  2. java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
  3. java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
  4. java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "/etc/init.d/sshd.sh restart"
复制代码
其中“192.168.*.**”更改为NAS的IP地址,“*****”是填写想要设置的telnet密码,“password”是管理员的Web登录密码。
4.修改/etc/init.d/sshd.sh,删除14到18行对SFTP的判断,否则sshd服务不能启动。语句如下:

  1. if [ "${SUPPORT_SFTP}" = "0" ] ; then
  2.     echo "Not support sftp on this model." > /dev/console
  3.     exit 0
  4. fi
复制代码
(1)
  1. java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "cp /etc/init.d/sshd.sh /mnt/disk1/share/"
复制代码
(2)打开NAS的Share共享目录,用notepad++等打开sshd.sh文件,找到如上语句,将其删除。删除之前最好备份一份。
(3)
  1. java -jar acp_commander.jar -t 192.168.*.*** -ip 192.168.*.*** -pw password -c "cp /mnt/disk1/share/sshd.sh /etc/init.d/"
复制代码
(4)重启NAS

以上破解ssh登录结束
三、安装optware
1.使用SecureCRT,putty等登录NAS。以下以SecureCRT为例:
2.打开登录界面在地址栏输入NAS的IP地址,在弹出的对话框中输入“root”,回车。在再次弹出的对话框中输入,上面设置的telnet密码,点击连接。成功后ip地址左边显示绿色的对勾,错误则显示为红色叹号。

3.依次按照如下输入
  1. mkdir /mnt/array1/tmp
  2. cd /mnt/array1/tmp/
  3. wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/teraprov2-bootstrap_1.2-7_arm.xsh
  4. sh ./teraprov2-bootstrap_1.2-7_arm.xsh
复制代码
通过winscp修改 opt/etc/ipkg.conf,添加

  1. src cs08q1 http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/
复制代码
如果通过代理更新ipkg的在ipkg.config中添加

  1. option http_proxy 代理地址:端口
复制代码
修改/opt/etc/ipkg/cross-feed.conf,改为如下
  1. src/gz cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/
复制代码
执行

  1. ipkg update
  2. ipkg upgrade
复制代码
安装openssh
  1. ipkg install openssh
复制代码
修改ssh密码:
  1. cd /opt/etc/openssh/
  2. passwd
复制代码
四、安装Transmission

  1. <font size="2"><font size="2"><font color="#000000" style="background-color: white;" face="微软雅黑">cd /mnt/disk1/tmp/
  2. ipkg install transmission
  3. transmission-daemon -f</font></font></font>
复制代码
1.设置参数
"download-dir": "\/root\/Downloads",改成"download-dir": "/mnt/disk1/share/Downloads"。(下载保存路径,记得进入网上邻居找到CHL,进入share文件夹下,新建 Downloads目录(注意大小写))                               "incomplete-dir": "\/root\/Downloads",改成"incomplete-dir": "/mnt/disk1/share/Downloads/incomplete "(下载临时文件保存路径(注意大小写))
"pex-enabled": true,改成"pex-enabled": false。(种子交换,下计流量PT的建议改成false,否则不改)
"rpc-whitelist": "127.0.0.1",改成"rpc-whitelist": "192.168.*.*"。(web访问地址段,或者索性改成"*.*.*.*",都不限制)

以上修改都可以通过winscp在Windows完成,没必要用vi或者nano去修改编辑了

settings.json里面的参数有很多,以上只是挑了一些重要的说一下,其它参数大家可以自行修改,参数的意义我列在后面,可能有部分不是很准确,请小心修改。

"alt-speed-down": 50, 时段限速下载最大值,KB/s,transmission remote(tr) 可设置。

"alt-speed-enabled": false, 是否启动时段限速,启动改为true。tr可设。

"alt-speed-time-begin": 540,时段限速开始时间,单位为分钟,540表示早上九点。tr可设。

"alt-speed-time-day": 127, 时段限速日期(星期几),127表示每天,此处比较复杂,是用7位二进制数表示,然后转换成十进制数填入。例如0000001表示周日,1000000表示周六,0000010表示周一,0000100表示周二。如果你只要在周末限速,该数应该为1000001,转换为十进制就是65;如果你只要在工作日限速,该数应该为0111110,转换为十进制就是62,不知道我有没有说明白。tr不可设。

"alt-speed-time-enabled": false, 启用时段限速日期,默认不开启,启动改为true。如果改为true,那么alt-speed-enabled就应该改为false,也即两项只能启动一项,如果同时为true,则alt-speed-enabled有效。tr不可设。

"alt-speed-time-end": 1020, 时段限速日期内限速的结束时间,分钟,1020表示下午5点。tr不可设。

"alt-speed-up": 50, 时段限速上传最大值,KB/s。tr可设置。

"bind-address-ipv4": "0.0.0.0",IPv4地址绑定,一般不要改动。tr不可设。

"bind-address-ipv6": "::", IPv6地址绑定,一般不要改动。tr不可设。

"blocklist-enabled": false, 启动白名单,默认不启动,需要启动改为true。tr可设置。

"dht-enabled": true, 启用DHT网络,默认启动,不需要改为false。tr可设置。

"download-dir": "\/data\/download\/UsbDisk1\/volume1\/transmission\/", 下载保存的默认目录。注意该目录最好已经存在。tr可不设。

"encryption": 1, 加密。指定节点的加密模式,默认1。0表示关闭(tr表示为允许),1表示优先,2表示强制开启。tr可设置。

"lazy-bitfield-enabled": true, 位字段延迟?,默认为true,设置为true时可以避免某些ISP通过查询完整位段来屏蔽BT,从而破解部分ISP对BT的封杀,当然不一定完全有效。tr不可设置。

"message-level": 2, 消息等级,应该和tr中显示统计和显示错误报告有关,默认为2,不要改动改动。有兴趣的话可以改为1和3试试。tr不可设置。

"open-file-limit": 32, 打开文件的最大数量,如果我没有理解错,应该是指文件数而不是指种子数量,改小后可以减轻机器负荷,但是如果种子不活跃,也会影响下载速度,默认值为 32。tr不可设置。

"peer-limit-global": 240, 全局连接数限制,即用户上限,据说改为80可以提高稳定性。tr可设置。

"peer-limit-per-torrent": 60,每个种子连接数限制,即种子属性中的最大用户数,tr可设置。

"peer-port": 51413, 传入端口

"peer-port-random-high": 65535,传入端口随机值范围上限,tr不可设置。

"peer-port-random-low": 49152, 传入端口随机值范围下限,tr不可设置。

"peer-port-random-on-start": false, 启用随机端口,默认关闭。如果改为true,则每次启动系统时,transmission会在传入端口随机值范围下限传入端口随机值范围上限随机选择一个端口。没有必要还是false吧。tr不可设置。

"peer-socket-tos": 0, 这个在官方没有任何解释,还是保持不动吧,呵呵。tr不可设置。

"pex-enabled": true, 启用用户交换,默认为true,关于PEX,有兴趣的朋友可参考http://en.wikipedia.org/wiki/Peer_exchange,对于只用PT的朋友,可以设为false。 tr可设置。

"port-forwarding-enabled": true, 启用端口转发(uPnP),如果路由支持并且也开启了uPnP,则路由会自动做端口映射,但是需要注意的是如果内网有几台机器同时使用 transmission,就必须更改peer-port值为不一样。tr可设置。

"preallocation": 1, 文件磁盘空间预分配,默认值1为快速,0为关闭,2为完全,该值为2时,耗时较多,但是可以有效防止磁盘碎片。为了防止下载大半了才发现磁盘不够,还是默认值1为好。但注意如果连续添加几个大个头的种子时,一定要等待前一个种子添加成功后再添加下一个种子,否则由于在分配空间时,tr无法响应你的添加操作而导致死机。tr不可设置。

"proxy": "", 代理服务器URL,默认无。tr不可设置。

"proxy-auth-enabled": false, 启用代理认证,默认不启用。tr不可设置。

"proxy-auth-password": "", 代理认证密码。tr不可设置。

"proxy-auth-username": "",代理认证用户名。tr不可设置。

"proxy-enabled": false, 启用代理,默认不启用。tr不可设置。

"proxy-port": 80, 代理端口。tr不可设置。

2.建立transmission下载文件夹和未完成时的临时文件夹,并赋予权限
  1. mkdir /mnt/disk1/share/Downloads
  2. chmod -R 777 /mnt/disk1/share/Downloads
  3. mkdir /mnt/disk1/share/Downloads/incomplete
  4. chmod -R 777 /mnt/disk1/share/Downloads/incomplete
复制代码
3.设置自动启动
  1. echo '/opt/bin/transmission-daemon -g /root/.config/transmission-daemon' >/opt/etc/init.d/S95transmission.sh
  2. chmod 755 /opt/etc/init.d/S95transmission.sh
  3. echo 'killall /opt/bin/transmission-daemon' >/etc/rc.d/extensions.d/K05transmission.sh
  4. chmod 755 /etc/rc.d/extensions.d/K05transmission.sh
复制代码


五、安装迅雷远程

1.迅雷远程论坛下载最新迅雷固件,论坛地址:地址
2.在NAS上建立名字为“xunlei”的文件夹,将迅雷固件解压缩到该文件夹。文件夹中应该包含EmbedThunderManager,ETMDaemon, portal三个文件。
3.使用SecureCRT,putty等登录NAS。以下以SecureCRT为例:
4.打开登录界面在地址栏输入NAS的IP地址,在弹出的对话框中输入“root”,回车。在再次弹出的对话框中输入,上面设置的telnet密码,点击连接。成功后ip地址左边显示绿色的对勾,错误则显示为红色叹号。
5.进入迅雷目录(非Raid)
  1. root@LS421DE:~# cd /mnt/disc1/xunlei/
复制代码
现在给迅雷程序加执行权限:
  1. root@LS421DE:~# chmod 777 * -R
复制代码

6.启动迅雷,在迅雷目录下执行
  1. root@LS421DE:~#./portal
复制代码
如果输出类似于以下则启动成功(有的设备启动比较慢请耐心等待完成):
initing...
try stoppingxunlei service...
killall:ETMDaemon: no process killed
killall:EmbedThunderManager: no process killed
setting xunleiruntime env...
port: 9000 isusable.
your control port is: 9000.
startingxunlei service...
execv:/home/shdxiang/test/lib/ETMDaemon.
getting xunleiservice info...
Connecting to127.0.0.1:9000 (127.0.0.1:9000)
portal.tmp               0T --:--:-- ETA
THE ACTIVE CODE IS: 42SND1
go tohttp://yuancheng.xunlei.com, bind your device with the active code.
finished.

7.绑定设备
登录到迅雷远程的web界面,用迅雷账号登陆,然后输入上面的激活码。
THE ACTIVE CODE IS: 42SND1
8.完成,剩下的大家都会了。
(其中部分内容参照了论坛其他人的,我没有重写,总结了一下。)


评论33

denu1024楼主Lv.5 发表于 2014-1-14 17:16:38 | 显示全部楼层
暂时写这些吧。接下来打算弄弄vpn
回复 点赞

使用道具 举报

unclesamLv.2 发表于 2014-1-14 20:31:25 | 显示全部楼层
本帖最后由 unclesam 于 2014-1-14 21:07 编辑

xunlei_portal.tmp        0T --:--:-- ETA
the license is not passed now.
没激活码咋破?
多执行几次./portal。 并确认网络又没有设限。例如不能登录迅雷。  详情 回复
发表于 2014-1-14 23:09
回复 点赞

使用道具 举报

penguin563Lv.2 发表于 2014-1-14 21:23:47 | 显示全部楼层
谢谢分享,辛苦了
回复 点赞

使用道具 举报

denu1024楼主Lv.5 发表于 2014-1-14 23:09:40 | 显示全部楼层
unclesam 发表于 2014-1-14 20:31
xunlei_portal.tmp        0T --:--:-- ETA
the license is not passed now.
没激活码咋破?

多执行几次./portal。
并确认网络又没有设限。例如不能登录迅雷。
不行,电脑可以登录迅雷。。难道还是长宽搞的鬼。。  详情 回复
发表于 2014-1-15 00:02
回复 点赞

使用道具 举报

unclesamLv.2 发表于 2014-1-15 00:02:10 | 显示全部楼层
denu1024 发表于 2014-1-14 23:09
多执行几次./portal。
并确认网络又没有设限。例如不能登录迅雷。

不行,电脑可以登录迅雷。。难道还是长宽搞的鬼。。
北京长宽可以获取  详情 回复
发表于 2014-1-15 01:57
回复 点赞

使用道具 举报

denu1024楼主Lv.5 发表于 2014-1-15 01:57:46 | 显示全部楼层
unclesam 发表于 2014-1-15 00:02
不行,电脑可以登录迅雷。。难道还是长宽搞的鬼。。

北京长宽可以获取
回复 点赞

使用道具 举报

卐生卐Lv.2 发表于 2014-1-15 12:01:01 | 显示全部楼层
感谢分享,很需要,谢谢
回复 点赞

使用道具 举报

卐生卐Lv.2 发表于 2014-1-16 13:57:45 | 显示全部楼层
重启之后好使吗
回复 点赞

使用道具 举报

wangwei19831210Lv.4 发表于 2014-1-17 07:39:01 | 显示全部楼层
学习学习看看。
回复 点赞

使用道具 举报

wangwei19831210Lv.4 发表于 2014-1-19 07:50:43 | 显示全部楼层
不错不错,谢谢楼主分享,这下又学了一招。
回复 点赞

使用道具 举报

南风独舞Lv.4 发表于 2014-1-23 14:31:20 | 显示全部楼层
本帖最后由 南风独舞 于 2014-1-23 14:39 编辑

if [ "${SUPPORT_SFTP}" = "0" ] ; then这个命令执行不了啊
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Windows\system32>d:
'd:' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Windows\system32>d:
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "(echo 13211221766;echo 13211221766)|password"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
WARNING: This is experimental software that might brick your linkstation!

Using random connID value = E825C2603EC6
Using target:   LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found:  LS421DE3E5 (/192.168.1.130)     LS421DE(LS-WM) (ID=004812)      mac: 10:
6F:3F:CD:33:E5  Firmware=  1.300        Key=4E93ECE9
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>(echo 13211221766;echo 13211221766)|password
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
WARNING: This is experimental software that might brick your linkstation!

Using random connID value = B65D2505030B
Using target:   LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found:  LS421DE3E5 (/192.168.1.130)     LS421DE(LS-WM) (ID=004812)      mac: 10:
6F:3F:CD:33:E5  Firmware=  1.300        Key=3BEF1276
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
WARNING: This is experimental software that might brick your linkstation!

Using random connID value = A0C613752F40
Using target:   LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found:  LS421DE3E5 (/192.168.1.130)     LS421DE(LS-WM) (ID=004812)      mac: 10:
6F:3F:CD:33:E5  Firmware=  1.300        Key=3BEF1276
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "/etc/init.d/sshd.sh restart"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
WARNING: This is experimental software that might brick your linkstation!

Using random connID value = 94BAD8B551B3
Using target:   LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found:  LS421DE3E5 (/192.168.1.130)     LS421DE(LS-WM) (ID=004812)      mac: 10:
6F:3F:CD:33:E5  Firmware=  1.300        Key=0665F840
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>/etc/init.d/sshd.sh restart
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.
D:\>if [ "${SUPPORT_SFTP}" = "0" ] ; then
此时不应有 "${SUPPORT_SFTP}"。
D:\>
你的网络设置什么样的? 固定IP? 关闭防火墙试试  详情 回复
发表于 2014-1-23 14:41
回复 点赞

使用道具 举报

denu1024楼主Lv.5 发表于 2014-1-23 14:41:47 | 显示全部楼层
南风独舞 发表于 2014-1-23 14:31
if [ "${SUPPORT_SFTP}" = "0" ] ; then这个命令执行不了啊
Microsoft Windows [版本 6.1.7601]
版权所有 ( ...

你的网络设置什么样的?
固定IP?
关闭防火墙试试
能否加你QQ请教你呢?我的35716533  详情 回复
发表于 2014-1-23 14:50
回复 点赞

使用道具 举报

南风独舞Lv.4 发表于 2014-1-23 14:50:21 | 显示全部楼层
denu1024 发表于 2014-1-23 14:41
你的网络设置什么样的?
固定IP?
关闭防火墙试试

能否加你QQ请教你呢?我的35716533
回复 点赞

使用道具 举报

linux147Lv.10 发表于 2014-1-23 17:49:24 | 显示全部楼层
楼主高人啊,,,,学习中!
回复 点赞

使用道具 举报

hot151Lv.2 发表于 2014-1-24 00:51:45 | 显示全部楼层
我进来看看。学习一下
回复 点赞

使用道具 举报

mike22437120Lv.10 发表于 2014-1-24 14:03:02 | 显示全部楼层
感谢分享
回复 点赞

使用道具 举报

mike22437120Lv.10 发表于 2014-1-24 14:04:17 | 显示全部楼层
感谢分享
回复 点赞

使用道具 举报

fujxLv.3 发表于 2014-2-4 21:14:12 | 显示全部楼层
感谢分享,这几天有时间也升级下:)
回复 点赞

使用道具 举报

fooerLv.3 发表于 2014-2-5 20:16:02 | 显示全部楼层
为什么我执行了java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw password -c "cp /etc/init.d/sshd.sh /mnt/disk1/share/",然后打开share文件夹没有sshd.sh这个文件呢?
是单盘还是磁盘阵列?  详情 回复
发表于 2014-2-7 09:19
回复 点赞

使用道具 举报

回复

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

本版积分规则

投诉/建议联系

support@gebi1.cn

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