部署 Entware 倉庫軟件到IMTNAS星際魔盒
前言: |
星際魔盒(MCS7)的內核是Linux3.10!Debian Wheezy系統(官方早已停止支援)算得上是中古時代的產物了, 嘗試換源, 還是各種報錯, 不得不放棄. 最後想到Entware倉庫軟件.
什麼是Entware: |
Entware 是一個嵌入式 Linux 設備的軟件倉庫集成工具,也就是傳統 Linux 上的包管理工具,例如 Debian 的 dpkg、CentOS 的 yum 等。
它們可以通過網絡在遠程倉庫上拉取並安裝所需要的包,同時自動解決依賴問題,是系統上不可或缺的一部分。
Entware部署: |
用戶名: admin
密碼: admin
sudo -i
mv /opt/ ./opt.bak
刪除或備份原/opt
資料夾
mkdir -p /mnt/hdd1/opt
ln -sf /mnt/hdd1/opt/ /opt
建立一個空白的/opt資料夾 (用於安裝entware套件) 並建立符號連結
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | /bin/sh
據處理器執行安裝(星際魔盒是armv7)
加入到開機自啟動文件/etc/rc.local
sed -i -e '/# By default this script does nothing./a\ln -sf /mnt/hdd1/opt/ /opt\
opt/etc/init.d/rc.unslung start' /etc/rc.local
添加到 PATH 的環境變量。即/opt/bin
/opt/sbin
echo '. /opt/etc/profile' >> /etc/profile
更新環境變量
source /etc/profile
reboot
重新啟動 NAS
opkg update
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/packages.
舉個例子 |
例子1:
利用opkg安裝網路速度測試工具 iPerf3
例子2:
通過opkg安裝 shellinabox可以不需要安裝類似於xShell或Putty的通訊工具(瀏覽器模擬一個遠程系統的Shell )
結語: |
我們可以愉快地使用 opkg 包管理系統,在官方的源上已經有超過2000個軟件包,非常的豐富.
參考網站: |
555
1

1

1

1

1

1

1

1

1

1

With thanks. Awesome stuff!
casino en ligne
Seriously tons of wonderful data!
casino en ligne
Beneficial tips Appreciate it!
casino en ligne
With thanks, An abundance of information!
casino en ligne
You reported it well!
casino en ligne
You definitely made your point.
casino en ligne
Very well spoken certainly. .
casino en ligne
Well expressed really. !
casino en ligne
You actually said it superbly!
casino en ligne
Truly all kinds of amazing material!
casino en ligne
1

1

1

1

1

1
