Archive for January 13th, 2007

PC-BSD on IBM X40

Saturday, January 13th, 2007

經過了許久,終於重新投入 BSD 的懷抱。

PC-BSD 簡單說就是 FreeBSD 桌機版,將安裝過程與預設選項弄得非常簡單,滑鼠點一點就裝好了。裝好後重開機馬上就自動登入 KDE,整個的確有簡單化的感覺。PC-BSD 的網站很強烈的強調,”PC-BSD IS FreeBSD“,也就是說,在 PC-BSD 裡面除了可以用它包的很小白-friendly 的 PBI 套件可用外,FreeBSD 內建的 ports 也是完全 ok 的。紀錄一下安裝筆記。

Disable FreeBSD bootloader BEEP
FreeBSD bootloader 在開機時候會 BEEP 一聲超級大聲,保證在安靜的教室裡面會吸引全體的怒視。

You can fetch it with:

cd /tmp
fetch http://people.freebsd.org/~keramida/diff/boot0_beep.diff

Patching your source tree, since this patch has been generated from the top level src/ tree should be as easy as:

cd /usr/src
patch -p0 < /tmp/boot0_beep.diff

Then rebuild your boot0 block, and install the new boot0 file in /boot:

cd /usr/src/sys/boot/i386/boot0
make cleandir
make obj
make all && make install

[Source]

Disable IDE2
IDE2 在沒有詳細研究估計是 UltraBay 拿來接 CD-ROM 或 HDD 用的。UltraBay 接著的時候好好的,但是一拔掉後,只要一有 ACPI Event 的時候,FreeBSD 就給我死當。電源由插頭換為電池 -> 死當。電池換為插頭 -> 死當。關機關到最後面 -> 死當。Suspend -> 死當。

  1. 去 [這裡] 下載 Configuration utility for DOS - ThinkPad。
  2. 執行 7iu601us.exe 後會把一些檔案解壓縮到某目錄,進入該目錄下會找到 PS2.EXE。
  3. Start -> Run -> command.com 進入 DOS 視窗,找到 PS2.EXE 所在目錄,打入 ps2 ide2 disable。
  4. Restart :)

Wireless NIC
修改以下檔案:

/boot/loader.conf
if_ath_load="YES"

/etc/rc.conf
ifconfig_ath0="DHCP"

FreeBSD Ports Collection
預設沒有裝,反正指令很簡單。

cd /root
cvsup -g -L 2 ports-supfile

其他單純是個人偏好的東西:

Color LS
setenv CLICOLOR "YES"
setenv LSCOLORS "ExGxFxdxCxDxDxhbadExEx"

CD-ROM in fstab (must disable when UltraBay is not present)
# /dev/acd0 /cdrom cd9660 ro 0 0

MS Font
Microsoft Fonts (Self-contained)

All Rights Reserved Copyright © 2008 Design by StyleShout and Clazh