國網中心sources.list

每次更新Ubuntu都粉慢嗎?
可以把國網中心加入sources.list即可.

deb http://ftp.twaren.net/ubuntu feisty main restricted universe multiverse
deb http://ftp.twaren.net/ubuntu feisty-updates main restricted universe multiverse
deb http://ftp.twaren.net/ubuntu feisty-security main restricted universe multiverse
deb http://ftp.twaren.net/ubuntu feisty-backports main restricted universe multiverse
deb-src http://ftp.twaren.net/ubuntu feisty main restricted universe multiverse
deb-src http://ftp.twaren.net/ubuntu feisty-updates main restricted universe multiverse
deb-src http://ftp.twaren.net/ubuntu feisty-security main restricted universe multiverse
deb-src http://ftp.twaren.net/ubuntu feisty-backports main restricted universe multiverse

How to use the usb device in VirtualBox

step1:建立usbfs的群組

sudo addgroup usbfs

step2:注意usbfs組的id號,假如是1002,然後修改/etc/fstab,加入一行:

sudo gedit /etc/fstab

將none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0加到最後一行關掉並且存檔。

step3:把當前帳號加入到usbfs組中:

sudo usermod -G usbfs -a your_account

step4:reboot或者重啟X,我是選擇重新開機,注意是重新開機而不是重新進入virtualbox,這樣是沒有結果的(因為我試過!?)

step5:要在virtualbox的作業系統設定中(setting),記得插上你的usb裝置,並且點選+的符號將裝置加入ilter當中。
Continue reading “How to use the usb device in VirtualBox”

ssl_error_ssl2_disabled error

學校的無線有NAC (Network Access Control),設備的SSL是2v(RFC2246),

因為Firefox 3 and IE 7,都只支援新版的ssl 3v.(舊規格被disable)

以至於Firefox 3 and IE 7都會出現『ssl_error_ssl2_disabled error’

這裡提供Firefox 3的解決方法,

請在url key『about:config’

將下面的項目enable即可,

* security.enable_ssl2, to enable SSL2 itself
* security.ssl2.des_64,
* security.ssl2.des_ede3_192,
* security.ssl2.rc2_128,
* security.ssl2.rc2_40,
* security.ssl2.rc4_128 and
* security.ssl2.rc4_40, to enable the different associated cyphers.

啥??IE7…
小弟粉久沒有用IE了…

自己想辦法….(跑)~~囧

screen

cd /usr/ports/sysutils/screen
make install

vi /usr/local/etc/screenrc
#啟動 screen 時不顯示訊息
startup_message off

#在畫面下方顯示視窗資訊
caption always “%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c”

or

caption always “%{= wk} %{= KY} [%n]%t @ %H %{-} %= %{= KR} %l %{-} | %{= KG} %Y-%m-%d %{-} ”
hardstatus alwayslastline ” %-Lw%{= Bw}%n%f %t%{-}%+Lw %=| %0c:%s ”

#關閉錯誤警告
vbell on
vbell_msg ” Wuff —- Wuff!! ”

#login後自動開啟screen
if [ -z “$STY” ]; then

exec screen -dR

fi

Continue reading “screen”