« Source Insight | Main | Spacey »

hack FreeNAS

由於FreeNAS除在 /conf/config.xml 可存檔紀錄 其餘設定檔or程式皆在開機時才由 mfsroot.gz 解出or啟動時建立, webCGI 可設定部分不夠進階需自行更改 mfsroot.gz 增設

1. 新增群組&使用者
2. 啟動 FTPD、SSHD
3. 使用FTP連入抓取 /cf/mfsroot.gz
4. mfsroot.gz 傳到 FreeBSD Server (kernel 6.2-PRERELEASE 版本同 FreeNAS 0.68)
5. 解開 mfsroot.gz
gzip -d mfsroot.gz
6. 以建立RAM DISK方式將 mfsroot 載入 /dev/md1
mdconfig -a -t vnode -f /home/XXX/mfsroot
7. mount md1
mount /dev/md1 /mnt/
8. 複製編輯所需
增加繁體中文語系檔 lang-TraditionalChinese.inc
增加 csh.cshrc
增加 ee、grep....工具程式
/etc/inc/services.inc 服務設定檔 增加修改設定, 如 samba 要增加 ACC INFO MS WIN 等相關分享
9. umount md1
10. /dev/md1 卸除
mdconfig -d -u 1
11. 壓縮回 .gz
gzip -9 mfsroot
12. 使用putty連入FreeNAS
13. umount /cf
14. 將 /dev/ad0s1 mount 到臨時資料夾
15. 用FTP傳回 mfsroot.gz 蓋掉原本的
16. FreeNAS reboot

From:http://locy.blogspot.com/2007/02/hack-freenas.html

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on November 30, 2007 7:12 PM.

The previous post in this blog was Source Insight.

The next post in this blog is Spacey.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.