2009年3月30日 星期一

Dell NB inspiron 1420 換裝 Ubuntu 8.04

2009-03-30
        我的Dell NB inspiron 1420已過保固,裡頭附的是肥大的Vista Home Basic, 160GB HDD, 早想把它踢掉。於是買了個隨身硬碟 Fujitsu Wyvo, 320GB, $2350NT, 帶保固。店員聽我說是要替換NB內之硬碟,力勸我買零售的硬碟, 加USB盒(200NT),買了後才發現他的說法是正確的。第一, Fujitsu隨身硬碟拆了即不保固,第二,還真不好拆。事後,也懶得更換,就用吧。於是,Vista硬碟就被我換到USB盒裡了。

        "Taiwan Ubuntu 正體中文站"提供不少中文資訊,及國內下載點。剛開始裝的是 Kbuntu 8.10 64 bit,試用後發現kde 4 桌面過於華麗,且有軟體相容問題(如Skype官方只提供i386版本)。故還是回到Ubuntu 8.04.2 GNOME。

以下是安裝筆記:

1. System SW Update, 系統自動更新。

2. 取得lazybuntu懶人包,內含中文支援,某些常用軟體,及部份版權軟體(如Skype)。

3. Adobe Flash Player
用火狐進bbc news 看新聞,少 Adobe Flash Player,按連結至官網下載。影音測試ok。

4. 下載文鼎字體
http://www.opendesktop.org.tw/
打開terminal執行如下的命令
>>>
wget ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/opendesktop-fonts-1.4.2.tar.gz
tar xvzf opendesktop-fonts-1.4.2.tar.gz
cd opendesktop-fonts-1.4.2
sudo cp odosung.ttc odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf /usr/local/share/fonts
sudo fc-cache -v
<<<

5. 選中文為預設語言 system > preference > appearance > font
將語言改成中文後,預設的輸入法會變成scim,欲使用gcin,下指令
im-switch -s gcin

6. Okular
以Synaptic套件管理程式下載 KDE doc reader program:
一個不錯的pdf reader 可畫線,螢光筆功能

7.新同文堂
http://of.openfoundry.org 下載用於firefox內繁簡轉換,碰到簡體中文網頁時很方便的。


8. Intel driver 依Google大仙指示如下:

如何安裝Intel顯示卡最新驅動 下載最新libdrm 2.4.5 (打了patch,不需要在xorg設置DRI了) http://myubuntu.ca/download/libdrm-2.4.5.tar.bz2 和最新Intel Video Driver 2.5.1 (打了patch的) http://myubuntu.dreamhosters.com/download/xf86-video-intel-2.5.1.tar.bz2 編譯準備: sudo apt-get install build-essential xorg-dev mesa-common-dev 編譯: tar xvjf libdrm-2.4.5.tar.bz2 cd libdrm-2.4.5 ./configure --prefix=/usr make sudo make install cd .. tar xvjf xf86-video-intel-2.5.1.tar.bz2 cd xf86-video-intel-2.5.1 ./configure --prefix=/usr make sudo make install 驅動還原: sudo apt-get install libdrm2 --reinstall sudo apt-get install xserver-xorg-video-intel --reinstall P.S. xorg.conf的section "Device"裡,最好有一項Driver "intel",但不一定需要的。(如3d
用不了,就把Driver "intel"加到那個section) 如果glxgears提示DRI問題,就在xorg.conf的最後,加入: Section "DRI" Mode 0666 EndSection 為了防止Ubuntu更新時,更換了驅動。 請在synaptic鎖定xserver-xorg-video-intel和libdrm2的版本!
在編譯準備時碰到依存關係的麻煩:
>> sudo apt-get install build-essential xorg-dev mesa-common-dev
....下列的套件有無法滿足的依存關係:
....

解法是source list 加入deb http://fr.archive.ubuntu.com/ubuntu hardy-updates main
修改/etc/X11/xorg.conf,這樣就可以設定1280*800解析度。


9. Skype 語音輸入
Google 來的:Skype 測試ok
Some of the new Dell Inspiron laptops (the 1420n, 1520, and 1525 are the ones I know of) come with a digital microphone array above the screen, but a fresh install of Ubuntu 8.04 will not have the array enabled by default.

Fortunately, it wasn't too difficult to enable, and now I can use Audacity, Skype, etc., without any peripherals. Although Hardy's usage of the new Pulseaudio system is causing problems with many audio applications, the problem in this case seemed to be alsa-based

Right-click the volume applet in the top-right of your screen and click Open Volume Control.
Click File > Change Device and change the device to the alsa device.
Now click Edit > Preferences and select both Digital and Digital Input Source.
In the Recording tab, make sure the digital device's volume is all the way up and that the device is not muted.
In the Options tab, change Digital Input Source: to Digital Mic 1.

10. Power Management
Modify /etc/X11/xorg.conf

>> Section "Monitor"
>> ...
>> Option "DPMS" "true"

>> Section "ServerLayout"
>> ...
>> Option "BlankTime" "5" # Blank the screen after 5 minutes (Fake)
>> Option "StandbyTime" "10" # Turn off screen after 10 minutes (DPMS)
>> Option "SuspendTime" "20" # Full suspend after 20 minutes
>> Option "OffTime" "30" # Turn off after half an hour

11. Firefox profile copy
還原vista上之firefox bookmark及Scrapbook內容
exit firefox

cd .. ~/.mozilla/firefox
// copy Vista system 內原有的 profile
cp -r /media/OS/Users/ron/AppData/Roaming/Mozilla/Firefox/Profiles/kdor1wuy.default/ .
mkdir test.default // 製作一個新的profile dir
cp -r ../xw41as5s.default/* . // 複製現有的

cd test.default // 合併檔案
for each file { places.sqlite key3.db signons3.txt permissions.sqlite formhistory.sqlite cookies.sqlite cert8.db }
cat $file ../kdor1wuy.default/$file > 111
mv 111 $file

cd Scrapbook // copy original data of Scrapbook
cp -r ../../kdor1wuy.default/ScrapBook/* .

// modify profile.ini so path = test.default

restart firefox // done

12. wine + evernote // 執行windows program 之環境
用Synaptic 加入 wine
mkdir ~/wine-app
cp EverNote_2.2.1.386_Installer.exe
wine EverNote_2.2.1.386_Installer.exe
// 執行 安裝 後桌面產生程式 icon
// copy my original note to ~/
// done
winecfg // wine 環境設定,調大dpi ~ 130

// workaround for preloaderPageZero
sudo gedit /etc/sysctl.conf
change "vm.mmap_min_addr = 65536" to vm.mmap_min_addr = 0

12. freemind on linux, mind manager
用Synaptic 加入 sun-java6-jre, javahelp2, freemind
> 系統 > 偏好設定 > 主選單 // 加入 Freemind 到 選單 應用程式 > 辦公
mkdir ~/MyMap
cp original data
// done


13. VMWARE 至VMWARE.COM register and download vmware workstation 32bit rpm ver
alien -k pkg.rpm //用alien 轉換 rpm to deb
dpkg -i // install the deb package
// not yet ready, use synaptic to see where the file is, /var/cache/vmware
cd /var/cache/vmware // to start the installer
sh VMware-Workstation-6.5.1-126130.i386.bundle

// 如果要固定MAC address 要修改 *.vmx configuration file
ethernet.addressType="static"
ethernet.address = 00:50:56:3F:FF:FF
// 去掉以下兩項
#ethernet0.generatedAddress = "00:0c:29:c1:73:9a"
#ethernet0.generatedAddressOffset = "0"
// done

14. Edraw Mind Map
download the free ver from edrawsoft.com
got trouble while installed by Wine
放棄吧!

15. XMIND installation 聽說不錯,介面功能似乎更勝 freemind

16. 升級Openoffice 3.0.0
// 取得 OOo_3.0.0_LinuxIntel_install_zh-tw_deb.tar.gz
tar xvfz OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz

cd OOO300_m9_native_packed-1_zh-TW.9358
sudo dpkg -i *.deb

// 修改啟動程式,系統 > 偏好設定> 主選單 >
// 從 /opt/openoffice.org3/program 加入 soffice, swriter, simpress, scalc

// done

這樣 2.4 與 3.0 將共存。