来吧兄弟,一起玩一起讨论!
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 zhans 于 2009-1-18 21:26 编辑
自己给自己翻译吧... 早知道当初不偷懒了.
如下叙述并没有详细到step by step,但大概方向如此.. 具体问题大家遇时再说..
optware是一个扩展的操作系统,简单点说就是官方LSlive下的一个外挂系统.
这么改的好处是保留官方的web管理界面等等全部原厂功能,并在官方系统上安装Mldonkey(UTF8支持),Rtorrent.
从而做到对官方系统最小的更改... 简单,并且高效率... 毕竟大家主要应用也就这两方面.
而且optware是一个功能比较全面的系统,程序包很多.. 而且应用都编译好的,一个简单的命令 ipkg install 就搞定新程序安装了..
俺之前也刷lenny,但听23建议最后换回这个... 主要原因是官方的固件Samba跑的很快..千兆环境下,不做什么优化就可以写20M,读30M.
1,
LSupdater re-flash 1.15 on LSlive
(need set debug menu all to on)
假定接下来操作的LSlive是一台全新的,或者之前改过,而且还能被用官方的升级程序认的到的.
先升级,或者重新刷到 1.15 版固件.. 这个应该是目前的最新版本了. 官方有下载套升级程序.
2,
open stock LSlive firmware telnetd setvice by acp_commander
用acp_commander程序打开 telnetd 服务,命令如下:
- java -jar acp_commander.jar -t 192.168.1.10 -o
复制代码 user: root
pass: (enter)
(need to disable the network firewall on desktop computer)
(需要注意的是,关闭PC电脑内置的防火墙,不然可能打不开LSlive的telnetD)
3,
telnet to LSlive,then install optware,change the root password.
用telnet 连接到LSlive,然后开始安装optware系统,顺便改下root密码.
- mkdir /mnt/disk1/tmp
- cd /mnt/disk1/tmp
- wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh
- sh lspro-bootstrap_1.2-5_arm.xsh
复制代码 don't fotgot change the root password by passwd
改密码的方法为输入 passwd,然后输入一次密码回车,再重复输入一次回车,提示成功.
4,
upgrade the optware,then install few new soft to stock firmware.
更新optware 系统,然后安装一些之后要用到的程序.
- ipkg update
- ipkg upgrade
- ipkg install openssh
- ipkg install screen
- ipkg install rtorrent
- ipkg install bzip2
- ipkg install nano
复制代码 edit that rtorrent config files for few settings,like dir,speed... etc
then put .rtorrent.rc files to root folder.
reboot,then login by ssh client and test the rtorrent it working.
顺序逐行执行完以上命令后,系统中既安装好了
openssh 安全登陆服务器
screen 多屏幕管理程序
rtorrent 这都认识,下BT用
bzip2 *.gz 的解压缩程序,之后用的上.
nano 一个文本编辑器,我觉得比VI好用..
说rtorrent,程序安装好了要建立设置文件 .rtorrent.rc 然后放到root的根目录下.
这个配置很多例如下载保存路径,连接端口等等... 根据自己情况改,官方提供的例子见这里:
http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest
下载回来点下面的
Download in other formats:
另外说下,文件名前面带 . 的,默认隐藏. 所以用 ls -a 才可以看的到.
设置文件放好后,直接 rtorrent 回车就可以运行了,测试下.. 运行没问题rtorrent 就安装完成. 简单吧?
重新启动,然后用SSH客户端去连接LSlive,用户名root,密码上你步你自己设置的.
5,
install mldonkey arm last version,then untar to share folder.
(http://mldonkey.sourceforge.net/forums/viewtopic.php?p=26582)
- bzip2 -d mldonkey-cores-2.9.6CVS-armeabi-20080911.tar.bz2
- bzip2 -d libraries.taz.bz2
- tar xvf mldonkey-cores-2.9.6CVS-armeabi-20080911.tar
复制代码 choose any version you like,then cp mlnet file alone to /opt/bin/
the mldonkey request new lib's to run,we need copy all files on lib dir to /lib.
BUT ALL LIB'S IT ALREADY IN USE NOW!!!
so don't directly overwrite them by cp * /lib!!!
cause then you will lose all busybox command access!!
so,i switch LSlive to EM mode do this work,steps follow;
a,boot the LSliveb,boot LSlive,catch serial watting for follow choose;- linuxrc:choose operation (timeout 4[s])
- 1:RamRoot other:HddRoot ? 1
复制代码 choose 1 for RamdiskRoot boot,then my LSlive booted to EM mode.
c,
now use the acp_commander open telnet again,cause i didn't know that root password.- java -jar acp_commander.jar -t 192.168.1.10 -o
复制代码 login to LSlive,make an sda2 mount folder then mount it.-
- cd/
- mkdir sda2
- mount /dev/sda2 /sda2
- cd /sda2
- now you can see the libraries.tar on / dir,then run:
- tar -C /sda2/ -xvf libraries.tar
复制代码 d,
now we almost done for mldonkey install,then reboot to hddRoot.
login by ssh to LSlive,and run once mlnet then Ctrl+c exit,it will build mldonkey settting on /root/.mldonkey
then edit /root/.mldonkey/download.ini for all mldonkey settings.
run again to see if everyhings all well.
e,
now we only one last step,that is fix the UTF-8 problem for mldonkey.. :)
cause all chinese files request UTF-8 locales,then it will write like "____.avi" :S
that reason is:
[cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
so,just download my attached locale package,the put on / directory,and switch to EM mode.
as early steps,enter EM mode then mount /dev/sda2 to /sda2,and simply run:-
- tar -C /sda2/ -xvf locale.tar.gz
复制代码 well done,reboot back to standard mode.
try 'locale -a', you should get long list of locales - all fine
then make an script or on your autoboot scripts like mldonkey-start.sh,and add follow lines on it.- export LANG=zh_CN.utf8
- export LANGUAGE=zh_CN.utf8
复制代码 try run mldonkey-start.sh
you should get in log:
[cO] Language ZH_CN, locale UTF-8, ulimit for open files 1024
good luck & HPNY! :$ |