1,先把telent 打开,在PC上运行..
这个脚本需要java环境,自己到www.java.com 上去在线安装.
脚本下载见附件..
然后进入PC终端窗口..到 acp_commander.jar 的保存目录里运行.代码:
java -jar acp_commander.jar -t 192.168.1.10 -o
2,打开telnet后,直接telnet到LS-CHL.
安装optware.
我把我的运行步骤log下来了,标记的部分为我输入的部分,其他为执行结果..代码:
telnet 192.168.1.10###
BEGIN LOG - DATE: 090222, TIME: 121453 ###
BUFFALO INC. LinkStation
series
LS-CHL0CE login: [color="red"]root
No mail.
代码:
root@LS-CHL0CE:~# su
sh-3.2# mkdir /mnt/disk1/tmp
sh-3.2# cd /mnt/disk1/tmp/
sh-3.2# wget
http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xshConnecting to ipkg.nslu2-linux.org
(140.211.169.169:80)
.
中间省略
.
lspro-bootstrap_1.2- 100%
|*******************************| 212k 00:00:00 ETA
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ls -l-rw-r--r--
1 root root 217600 Nov 1 00:08 lspro-bootstrap_1.2-5_arm.xsh
代码:
sh-3.2# sh lspro-bootstrap_1.2-5_arm.xshOptware
Bootstrap for lspro.
Extracting archive... please
wait
bootstrap/
1081+1 records in
1081+1 records
out
bootstrap/bootstrap.sh
.
.
中间省略
.
Configuring
wget
Successfully terminated.
Creating
/opt/etc/ipkg/cross-feed.conf...
Setup complete.
到这里,OptWare 基本系统已经安装完成..
在CHL主机上,要进行关键的一步.. 就是先退出当前终端....
具体原因不详,但之前很多人反映的所谓在
1.06版下不能成功安装Optware的主要原因在这里..
输入exit,再不成就输入logout,然后接着exit..
反正目的就是显示出"已经断开连接".. (我也忘记具体哪个了跟输了几次了,反正退出telnet 连接就成)
然后重新telnet
192.168.1.10,进入后接着输入reboot,重新启动CHL.
[size="5"]
3,之前已经安装完了Optware的基本系统,接下来安装一些基本软件...首先重复第1步,再次打开telnet.
代码:
java -jar acp_commander.jar -t 192.168.1.10 -o然后步骤同前telnet登陆到CHL.
代码:
telnet 192.168.1.10开始更新软件列表.
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg update //OptWare 系统更新Downloading
http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gzInflating
http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gzUpdated
list of available packages in /opt/lib/ipkg/lists/cross
Successfully
terminated.
开始进行软件自动升级.. 之后也可以重复这个步骤来自动升级系统上已经安装的软件,到新版本.
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg upgrade //OptWare 系统升级Nothing
to be done
Successfully terminated.
为了今后不用每次都用那个jave脚本,我们安装一个ssh服务器..
安全可靠连接.
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg install openssh //安装SSHD 服务器Installing
openssh (5.1p1-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op....1p1-1_arm.ipkInstalling
openssl (0.9.7m-5) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op...9.7m-5_arm.ipkInstalling
zlib (1.2.3-3) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op....2.3-3_arm.ipkConfiguring
openssh
Generating RSA Key...
Generating public/private rsa1 key
pair.
Your identification has been saved in
/opt/etc/openssh/ssh_host_key.
Your public key has been saved in
/opt/etc/openssh/ssh_host_key.pub.
.
中间省略
.
killall: /opt/sbin/sshd:
no process killed
Configuring openssl
Configuring zlib
Successfully
terminated.
Screen 是一个屏幕管理程序,一个屏幕不够用咋办? 装个screen.. 你就有N个显示器了..
使用说明去baidu搜!
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg install screen //安装screen 程序Installing
screen (4.0.3-2) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op....0.3-2_arm.ipkInstalling
termcap (1.3.1-2) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op....3.1-2_arm.ipkConfiguring
screen
Configuring termcap
Successfully terminated.
代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg install nano //安装nano程序,一个文本编辑器,我用习惯了... 你可以不装,用vi既可/Installing
nano (2.1.9-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op....1.9-1_arm.ipkInstalling
ncurses (5.7-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op..._5.7-1_arm.ipkConfiguring
nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to
/opt/bin/ncurses-clear
Successfully terminated.
很关键的一步,重新设置root密码.
不然,
1,等下你用 ssh 登陆不进来
2,如果你希望远程管理的话,最好密码设复杂点.. 不然网上闲人太多,分分种有人想把你黑的当肉机.
代码:
root@LS-CHL0CE:/opt/etc/openssh# passwd //更改root的密码,稍后改用ssh登陆.. 就不用每次用java开telnet那么麻烦了.Changing
password for root
Enter the new password (minimum of 5, maximum of 127
characters)
Please use a combination of upper and lower case letters and
numbers.
New password:
Re-enter new password:
Password
changed.
[size="5"]
4,开始安装BT客户端,因为Rtorrent表现的太不稳定,所以改装Transmission了.代码:
root@LS-CHL0CE:/mnt/disk1/tmp# ipkg install transmission //Rtorrent太不稳定了,所以现在都用这个.Installing
transmission (1.50-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op...1.50-1_arm.ipkInstalling
libcurl (7.19.3-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/op...19.3-1_arm.ipkConfiguring
libcurl
Configuring transmission
Successfully
terminated.
transmission 默认为后台运行,所以加参数 -f 强制放到前台运行,以用来创建配置文件.
代码:
transmission-daemon -fCouldn't
create socket: Address family not supported by protocol
RPC Server: Adding
address to whitelist: 127.0.0.1
RPC Server: Serving RPC and Web requests on
port 9091
RPC Server: Whitelist enabled
.
中间省略
.
Port forwarding
successful!: Port forwarding successful!
Forwarded: Forwarded
Opened port
%d on %s to listen for incoming peer connections: Opened port 51413
on
0.0.0.0 to listen for incoming peer connections
保持这个窗口什么都不要动,等待大概1分钟吧..
时间短了配置文件建立不起来.
接下来用键盘的 ctrl + c 中断进程.
Saved
"/root/.config/transmission-daemon/settings.json"
Stopping port
forwarding through "%s", service "%s": Stopping port forwarding t
rough
"http://192.168.1.1:4444/wipconn", service
"urn:schemas-upnp-org:service:
ANIPConnection:1"
Not forwarded: Not
forwarded
Stopped: Stopped
Closing port %d on %s: Closing port 51413 on
0.0.0.0
Closing transmission session... done.
标住出来的就是配置文件保存路径...
我们根据自己需要进行编辑:
代码:
vi /root/.config/transmission-daemon/settings.json
HTML 代码:
"blocklist-enabled": 0, //这个不用管
"download-dir": "\/root\/Downloads", //下载保存路径 (注1)
"download-limit": 100, //下载速度限制
"download-limit-enabled": 0, //下在限速是否启用 (0为否,1为是)
"encryption": 0, //加密种子
"lazy-bitfield-enabled": 1, //不用管
"message-level": 2, //不用管
"open-file-limit": 32, //最大文件打开数量,数越大越慢
"peer-limit-global": 240, //全局peer 连接限制
"peer-limit-per-torrent": 60, //每种子 peer 连接限制
"peer-port": 51413, //需要在交换机上NAT到CHL的端口
"peer-port-random-enabled": 0, //不用管
"peer-port-random-high": 65535, //不用管
"peer-port-random-low": 1024, //不用管
"peer-socket-tos": 8, //不用管
"pex-enabled": 1, //种子交换,下计流量PT的建议改成0
"port-forwarding-enabled": 1, //不用管
"preallocation": 1, //不用管
"proxy": "", //不用管
"proxy-auth-enabled": 0, //不用管
"proxy-auth-password": "", //不用管
"proxy-auth-username": "", //不用管
"proxy-enabled": 0, //不用管 proxy为*****相关
"proxy-port": 80, //不用管
"proxy-type": 0, //不用管
"rpc-authentication-required": 0, //web访问密码启用
"rpc-enabled": 1, //开启web管理方式
"rpc-password": "", //web访问密码
"rpc-port": 9091, //web访问端口
"rpc-username": "", //web访问用户名
"rpc-whitelist": "127.0.0.1", //web访问地址段 (注2)
"rpc-whitelist-enabled": 1, //不用管
"upload-limit": 100, //上传速度限制
"upload-limit-enabled": 0, //上传速度限制启用
"upload-slots-per-torrent": 14 //上传速度限制
注1:
从windows网上邻居能访问到的文件夹路径为 /mnt/disk1/share
注2:
rpc-whitelist 设置支持 * 方式,例如 192.168.*.*,图省事可以直接改成 *.*.*.* .. 一了百了 :D更改并保存设置后,就可以直接运行,然后通过web
方式管理 Torrent 下载了.
一般方式运行方式不用带 -f 了.
web访问方式为:
http://CHL 的IP地址:9091
(9091就是上面设置的)
还有,用IE访问会显示不正常,改用Firefox吧.
或者用专用的客户端程序..
(需要.net支持)
http://code.google.com/p/transmission-remote-dotnet/到此
transmission BT下载部分安装完成,有空再更新 mldonkey部分.
如上步骤我已于2008.02.24日进行了2次测试,不保证不会出问题..
主要是opt路径那部分....实在不放心的等我明后天有空再重复操作一次确认.
转百度