2010年1月21日 星期四

[Note] Ubuntu安裝Virtualbox

修改/etc/apt/source.list
deb http://download.virtualbox.org/virtualbox/debian karmic non-free
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
deb http://download.virtualbox.org/virtualbox/debian intrepid non-free
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
deb http://download.virtualbox.org/virtualbox/debian gutsy non-free
deb http://download.virtualbox.org/virtualbox/debian dapper non-free
deb http://download.virtualbox.org/virtualbox/debian lenny non-free
deb http://download.virtualbox.org/virtualbox/debian etch non-free
deb http://download.virtualbox.org/virtualbox/debian sarge non-free
deb http://download.virtualbox.org/virtualbox/debian xandros4.0-xn non-free
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-3.1

[Note] Ubuntu Server安裝xwindow

sudo apt-get install ubuntu-desktop --no-install-recommends

[Note] Ubuntu下為套件庫加入公鑰

更新/etc/apt/source.list後執行sudo apt-get update時出現
W: GPG error ........由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY xxxxxxxxxx

解決辦法:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com xxxxxxxxx

[Note] Ubuntu9.10 Flash 亂碼

解決辦法:
修改/etc/fonts/conf.avail/49-sansserif.conf
把「sans-serif」sans-serif 改成要的中文字型就可以,或是將中間橫線拿掉,改成 sans serif 。