Archive for January, 2007

vimrc for FreeBSD

Sunday, January 14th, 2007

Default behavior of FreeBSD’s vim is retarded. To get Linux behavior and some other features, append the following text into ~/.vimrc:

set nocompatible
set backspace=indent,eol,start
set autoindent
set number
set nowrap
set nobackup
set ruler
syntax on

Now it behaves like what you think it should.

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)

iPhone

Wednesday, January 10th, 2007

iPhone

不寫太對不起了。

昨晚睡前忽然間想到 2007 Mac World ExpoKeynote 好像已經結束了齁,上網看了一下,果然 QT 版已經貼上去了。如大家所預料的,iPhone 出現了 XD

詳細介紹: 省了吧,反正還要半年才會出來。總之,敗定了!

Fascinating CG about cell

Sunday, January 7th, 2007

Link to the Video

Believe it or not, I see stuff I learned from Molecular Biology!!!

2007

Monday, January 1st, 2007

A year has passed. Many things changed. But I’m still in UCSD, and I’m still a student. For all the important things, I remain the same. But for things that’s also considered important, though might not be agreed otherwise, have changed significantly. Good memories are kept and sealed deep inside where it should be, and new memories are built taking in both happiness and sorrow. Looking back in year 2006 from 2007, how did I do?

Regardless of how others might have thought, I am not regretting. There might be time where I think I could’ve done better, but so what’s the point of crying over spoiled milk? What happened happened. I can’t go back and retake that test or redo that conversation. What remained significant is the event itself. The important thing is not to regret over a history but rather learn from it. I try hard. Probably do ok.

Looking at this new one-way street 2007, I don’t know what people I will meet on the way, what stores I will pass by, what events might pop up just at the next corner. Good luck.

All Rights Reserved Copyright © 2008 Design by StyleShout and Clazh