Posts Tagged FreeBSD
FreeNAS 得到iXsystems 支持
前一陣子FreeNAS 說0.7 是最後一版了
以後會轉成Linux 平台上 叫coreNAS
後來 剛剛看到消息說iXsystem 的工程師會大幅度的改寫
而FreeNAS Project 也會繼續下去了
目前會先昇上FreeBSD 8
看起來 可以繼續下去~~
FreeBSD Customized CD(Make your own release)
1 make buildworld
1.1 請先做cvsup 更新src(記得先裝cvsup-with-gui 等等會用到)
# cd /usr/ports/net/cvsup-without-gui; make install clean
1.2
# cd /usr/src; make buildworld
2 make release
2.1
# cp /usr/share/examples/cvsup/cvs-supfile /etc
2.2
# mkdir /home/ncvs /home/releng
2.3
# vi /etc/cvs-supfile *default host=cvsup.tw.FreeBSD.org *default prefix=/home/ncvs
2.4 csup 只能check,所以要裝cvsup
# cvsup /etc/cvs-supfile
2.5
# cd /usr/src/release;
2.6 開始做release
# make release RELEASETAG=RELENG_7_1 PORTSRELEASETAG=HEAD \ BUILDNAME=7.1-RELEASE-p3 CHROOTDIR=/home/releng \ CVSROOT=/home/ncvs NODOC=yes
指令說明:
RELEASETAG:
The CVS tag corresponding to the release that is to be built. If undefined, the release will be built from the HEAD of the CVS tree (a “-CURRENT snapshot”).,
PORTSRELEASETAG:
The CVS tag to use when checking out the ports tree. Usually, the head of the ports tree is used by default. If RELEASETAG specifies a release tag, then the associated release version is used as the default instead.
BUILDNAME:
The name of the release to be built. This is used to set the RELEASE value in sys/conf/newvers.sh, which affects the output of uname(1). If not set, a name with the timestamp and the “-SNAP” suffix will be generated.
CHROOTDIR:
The directory to be used as the chroot(8) environment for the entire release build. This file system should have at least 3.2 gigabytes of free space on the i386 architecture.
CVSROOT:
The location of the FreeBSD CVS repository. This path name is in reference to the real system root, not the root of the chroot(8) directory tree.
NODOC:
If defined, the SGML-based documentation from the FreeBSD Documentation Project will not be built. However, the “doc” distribution will still be created with the minimal documentation set providedin src/share/doc.
2.7 放入你想要額外用的檔案
# cp xxx.tgz /home/ releng/R/cdrom/dvd1/7.1-RELEASE-p3
3 加入install.cfg 至 mfsroot
3.1
# cd /home/releng/R/cdrom/dvd1/boot
3.2
# gunzip /home/releng/R/cdrom/dvd1/boot/mfsroot.gz
3.3
# mdconfig -a -t vnode -f /home/ releng/R/cdrom/dvd1/boot/mfsroot -u 0
3.4
# mount /dev/md0 /mnt
3.5
# cp /usr/src/usr.sbin/sysinstall/install.cfg /mnt
3.6
# vi /mnt/install.cfg (依照每台機器修改)
加入or修改以下資訊
# This is a sample installation configuration file for my test machine, # crate.cdrom.com. # It is included here merely as a sort-of-documented example. # # $FreeBSD: src/usr.sbin/sysinstall/install.cfg,v 1.12.6.1 2008/11/25 02:59:29 kensmith Exp $ # Turn on extra debugging. debug=yes ##partition 互動調整硬碟 diskInteractive=yes diskPartitionEditor ##label互動式調整硬碟 diskInteractive=yes diskLabelEditor ############################### # Select which distributions we want. 設定為最小安裝 ##dists=base doc manpages info src sbase ssys kernels GENERIC distSetMinimum # media 從CD-ROM安裝 mediaSetCDROM # OK, everything is set. Do it! installCommit #解壓 xxx.tgz command=touch /tmp/ok system
指令說明:
command 不能斷行,不然在跑指令的時後會有error
command在安裝時的debug輸出訊息會是這樣
setting variable ‘command=我們打的command的內容’
所以在command 須要用到引號的部份最好都用雙引號
3.7 製作ISO檔
sh /usr/src/release/i386/mkisoimages.sh -b FreeBSD7 /home/7.1-RELEASE-p3.iso /home/releng/R/cdrom/dvd1
3.8 參考資料
# man release
# man sysinstall
http://romana.now.ie/writing/customfreebsdiso.html
http://www.sfc.wide.ad.jp/~watari/FreeBSD/boot.html
http://www.bsdunix.ch/public/docu/freebsd_sysinstall.html
這個是寫滿久了….忙一直忘了放上來….
FreeBSD src 更新—-指正!!
23:51 <@chxxxn> johnpupu: 那個要 make buildworld 跟 make installworld 啊,
23:51 <@chxxxn> 如何升級到7.0-p1
23:51 <@chxxxn> http://phorum.study-area.org/index.php/topic,51783.0.html
23:52 <@chxxxn> “你沒跳大版號…應該不用make world ..”……看了看問題標題:『如何升級到7.0-p1』
23:53 * chxxxn 不常逛 www forum, 也懶得那麼多站一個一個都註冊..以免又收到一些奇怪信件
23:54 <@chxxxn> johnpupu: 某長輩說的好:『至於有沒有大版號, 要不要 buildworld? 這是看到底是為甚麼改版號吧, 有的是 user land library 做 security patch, 關 kernel 鳥事, 只 make kernel 是把頭埋進沙裡的行為.』
Day changed to 04 Jun 2008
00:00 <@jxxxn> security issue 都寫的很清楚啊
00:03 <@chxxxn> 然後日後就會有人在批踢踢上面發問 [問題] 網路寫說『關於 security patch 方面,你沒跳大版號…應該不用make world ..』……
昨天在irc 上 長輩的指正…
記一下..免的以後忘記…
感謝長輩的指正………..
從以前都昨天………….update 都沒buildworld , installworld………….
錯了大蓋一年多了……..
Orz
Freebsd 7.0 Release
如題….
7.0 Released ..
Keyboard doesn’t work for FreeBSD 6.2R on IBM x3105
在用6.2R bootonly 裝IBM X3105 時
開完機進安裝畫面後…
鍵盤就不動了….
我試了一下,發現其實是有反應的…
就是當你不管按了什麼後….只要再按num block 這個按鍵…
他就會動了………..
很suck …
我也用了這樣的方式裝好了6.2R
一步一步 的按num block ::(:
裝好了沒事就算了…..
結果 …
一開機進os後….發現
就算安裝完成…問題還是在..
不過遠端登入,就沒這個問題
但是整個系統都怪怪的
top 出來的畫面很慢才會refresh
然後不能reboot
會卡住要一直按num block
這個按鍵……….
後來換了
FreeBSD 5.5R 就沒這個問題….
有遇到的人….若是解不掉的人
可以換一下Release 版本…
::(:
誤刪 /var/db/pkg 的解救方法!!!
剛剛在irc 看到的~~備忘一下
(17:54:34) weithenn: 請教長輩手賤把 /var/db/pkg 砍了如何 rebuild?
(17:55:18) S3pPoor: 到 /usr/ports/ 裡面開始重新裝… XD
(17:55:49) weithenn: S3pPoor:需要的在重裝一次?
(17:55:54) tys0n: … //pat
(17:55:59) ***S3pPoor 雙手合十,喃喃唸著「阿彌陀佛」。
(17:56:21) S3pPoor: weithenn: /var/db/pkg 裡面的東西沒有第二份啊, 所以就…
(17:56:44) Jedi_: 怎麼辦喔,就從備援機上面 co 回來
(17:56:46) weithenn: S3pPoor:了解了,手賤是要付出代價的
(17:56:48) ***Jedi_ flee
(17:57:14) weithenn: Jedi_:大師說的是啊
(17:57:37) Jedi_: 不過我自己也沒有備援機,嗚
(17:57:49) Jedi_: 我只有松果有做 A/B Backup
(17:57:56) ***weithenn 這台也沒有
(17:58:02) ***weithenn 苦
(17:58:18) Jedi_: 所以我們還是需要 versioned fs
(17:58:38) ***S3pPoor ╮(╯OO╰)╭
(17:59:06) ***weithenn 下次手要先洗乾淨
(18:02:41) chinsan: 先裝上 portupgrade ,然後 mkdir -p /var/db/pkg ; pkgdb -Fu
(18:04:17) plasmaball: chinsan: 好強
(18:06:19) weithenn: chinsan:我試試在來回報
(18:06:30) chinsan: plasmaball: 漿伯長輩,您想太多 @_@
(18:09:07) psilotum 離開聊天室 (quit: “leaving”)。
(18:35:10) candyz [~candyz@dns.kandix.idv.tw] 進入聊天室。
(18:35:59) ***weithenn 回來不少,有些還是漏了
(18:36:07) ***weithenn 在觀察看看吧
h):