以下文章內容轉貼及修改jiadingren的文章: http://bbs.baoyinet.com/viewthread.php?tid=1552
MSS的硬碟實體位址: /dev/ide/host2/bus0/target0/lun0/disc
如果系統firmware已經是openmss2.6.6以上了, 可以考慮跳過以下的步驟
Step1. 硬碟清零 :
dd if=/dev/zero of=/dev/ide/host2/bus0/target0/lun0/disc
Step2. 更新 openmss_cn_2.6.6.bin
先将下载好的:bcm47xx_debian_20070420.gz ,和 busybox 通过网上邻居传到mss上
我是放在Public下的Other目录下的然后再作下面的操作。
開啟cmd並用telnet登入到mss, 並接著輸入以下命令
# cd /
# mkdir /opt/debian
# cp /shares/mss-hdd/Public/Other/bcm47xx_debian_20070420.gz /opt/debian
# cd /
# cp /shares/mss-hdd/Public/Other/busybox /opt/bin/
# cd /
# cd /opt/debian/
# /opt/bin/busybox tar xzvf bcm47xx_debian_20070420.gz
# cd /opt/debian
# /opt/bin/busybox chroot . /bin/sh
這時你會發現你已經進入debian的系統了, 會停在sh-3.1# 的提示
掛載proc檔案系統, 用以觀察系統的運行狀態, 像是cpu, memory的使用率...網站狀態...磁碟的掛載狀況...等
sh-3.1# mount -t proc proc /proc
啟動SSH服務
sh-3.1# /etc/init.d/ssh start
使用putty程式,以SSH的模式登入到mss...
(注:不要关闭超级终端窗口..最小化好了同时再用Putty登入到mss)
username : root
password : 111111
此時你的MSS已經裝好Debian, 且已經正常進入系統
****************************************************************************
更改DNS Server的設定(optional)
sh-3.1# vi /etc/resolv.conf
如果你的所在地是在Taiwan, 你可以去除掉原內容直接換成當地網路服務的DNS這個
nameserver 168.95.1.1
在China, 例如:
nameserver 202.101.172.35
nameserver 202.101.172.47
檢查DNS是否解析正常, 利用ping來檢查網路是否連通
sh-3.1# ping www.google.com
修改/etc/apt/sources.list 以修改apt server的更新服務器
sh-3.1# vi /etc/apt/sources.list
將原來的源址前加個「#」並加入以下網址
deb http://mirrors.shlug.org/debian/ etch main contrib non-free
deb http://mirrors.shlug.org/debian-security etch/updates main contrib non-free
deb http://mirrors.shlug.org/debian/ proposed-updates main non-free contrib
deb http://debian.linux.org.tw/debian etch main
deb http://mirrors.kernel.org/debian etch main
deb http://debian-bcm47xx.googlecode.com files/
進行相關套件的升級
sh-3.1# apt-get update
sh-3.1# apt-get upgrade
(時間可能有點長, 請耐心等待....)
等到下載完成後, 就有新的debian系統了
接著設定成「一開機就能夠進入debian並開啟SSH服務」
在openmss下修改 /opt/etc/init.d/S99local
# cd /
# /opt/bin/busybox vi /opt/etc/init.d/S99local
增加二行用來進入debian並掛載proc系統及開啟SSH服務
/opt/bin/busybox chroot /opt/debian /bin/bash -c "mount -t proc proc /proc"
/opt/bin/busybox chroot /opt/debian /bin/bash -c "/etc/init.d/ssh start &"
待編輯完成後,直接reboot
# reboot
您可以利用「passwd」來進行debian的密碼, 或用原密碼進行登入
修改SSH的認證設定
sh-3.1# vi /etc/ssh/sshd_config
將PasswordAuthentication設定成 yes (預設是no)
預設系統編碼是使用en_US.UTF-8的, 如果您想設定成其它語系妳可以使用以下令命進行設定
sh-3.1# dpkg-reconfigure locales
這時會彈出個選擇視窗,你可以選擇您想要的語言
其它建議安裝的套件「rcconf, bzip2, ocaml」
套件程式安裝:
附記:
如果MSS已經自行升級記憶體至128m, 可以參考「MSS記憶體大升級」先進行設定
Recent comments
18 hours 20 min ago
1 week 1 day ago
7 weeks 1 day ago
7 weeks 2 days ago
10 weeks 6 hours ago
10 weeks 4 days ago
10 weeks 6 days ago
11 weeks 12 hours ago
17 weeks 1 day ago
17 weeks 3 days ago