Linkstation Live 官方固件下超快速改机,RT+ML+Chinese Locale
本帖最后由 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:
[*]Original Format
另外说下,文件名前面带 . 的,默认隐藏. 所以用 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 LSlivecp libraries.tar /b,boot LSlive,catch serial watting for follow choose;linuxrc:choose operation (timeout 4)
1:RamRoot other:HddRoot? 1choose 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 -ologin 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:
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.utf8try run mldonkey-start.sh
you should get in log:
Language ZH_CN, locale UTF-8, ulimit for open files 1024
good luck & HPNY!:$ 本帖最后由 剑二十三 于 2009-1-16 15:14 编辑
:lol
顺便把偶写的中文版zt上来吧
1,pc机下载http://downloads.nas-central.org/TOOLS/ALL_LS_KB_ARM9/ACP_COMMANDER/acp_commander.jar
运行java -jar acp_commander.jar -t <linkstation-ip> -o
pc机上下载 http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh 扔到live网络邻居share里面
2,pc机telnet 进去,然后运行mkdir /mnt/disk1/tmp
cd /mnt/disk1/tmp
mv /mnt/disk1/share/lspro-bootstrap_1.2-5_arm.xsh .
sh lspro-bootstrap_1.2-5_arm.xsh3 运行ipkg update
ipkg upgrade
ipkg install screen
ipkg install rtorrent4 找个rtorrent.rc 运行screen,运行rtorrent吧,是0.8.4 最新版哦,支持hbc等pt
也可以运行ipkg list列出可以安装的包
至于mldonkey,去mldonkey的官方论坛找编译好的主程序放到pro里面直接运行就可
http://mldonkey.sourceforge.net/forums/viewtopic.php?p=26582
中文问题找上面zhans要locale.tar.gz 不错不错,支持,看来buffalo牛人来了,哈哈希望楼主给大家更多buffalo的玩法啊。 最主要是在硬盘上,现在buffalo 320G的价格很便宜,可是1T的价格就贵很多,如果自己买320G装1T硬盘的话不知道怎么改机,是否能够实现。 最主要是在硬盘上,现在buffalo 320G的价格很便宜,可是1T的价格就贵很多,如果自己买320G装1T硬盘的话不知道怎么改机,是否能够实现。
wickey 发表于 2009-1-17 11:24 http://www.gebi1.com/images/common/back.gif
可以实现自己换大硬盘,而且还不是很复杂
改天我写个换硬盘教程 locale.tar.gz 之前忘记传了.
共2M多,用winrar 外面又压了一遍分包..
自己先用winrar解压缩得到 locale.tar.gz
收到团购的货了,准备刷固件,中文网上只有pro的1.15,live只有1.02,英文网上有1.06了。 1.06的能刷吗?在不同地区购买的? 1.06的能刷吗?在不同地区购买的?
alanshu 发表于 2009-1-21 08:52 http://www.gebi1.com/images/common/back.gif
能 老大继续翻译完全啊,俺英文不行啊 这个帖子里的方法能用到Linkstation Live LS-CH320L上吗? 这个帖子里的方法能用到Linkstation Live LS-CH320L上吗?
akaaka 发表于 2009-1-31 21:14 http://www.gebi1.com/images/common/back.gif
能 有个问题,装了optware之后,开了RT, 运行一段时间后,web界面会边不进去,
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.39 Server at LinkStation-LSGL Port 80.
navigator找得到,不过提示有问题,ping得通,可能是什么问题?放了3个PT种 楼上的把整个界面截图上来耶,这样清楚点。英文好像说日志错误 就是webmin的界面,只是写了这么个错误。
http://img.album.pchome.net/00/00/89/71/small/0a8810b161c0a70929ddfe9c40d275f4.JPG 本帖最后由 arctg 于 2009-2-9 00:44 编辑
# sh lspro-bootstrap_1.2-5_arm.xsh
Optware Bootstrap for lspro.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1081+1 records in
1081+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Backup your configuration settings, then type:
rm -rf /mnt/disk1/.optware
rm -rf /usr/lib/ipkg
This will remove all existing optware packages.
You must *reboot* and then restart the bootstrap script.
#
运行完 sh lspro-bootstrap_1.2-5_arm.xsh 命令,是否是要按指示rm掉那两个文件然后重启?那么如何restart bootstrap script? 这儿好像都没什么人。。。
我贴些参考的链接,省得到处放狗搜了
http://www.right.com.cn/forum/viewthread.php?tid=13200&extra=page%3D1%26amp%3Bfilter%3Ddigest&page=1 Thank you very much, zhans. This is so details and useful, I've been searching everywhere!
I'll try this out when I received my box in March :) 牛人.... 多谢!mark一下~