顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2019年8月25日 星期日

Ubuntu 變啞口 (Audio has dummy output)

uì升級到 Ubuntu 19.04, Disco Dingo, 我的電腦忽然間變啞口. 雖然你會當佇正手頂懸看著喇叭的音量符號, 毋過無聲. 你入去 設定->音效 裏去看伊的輸出裝置, 干焦會看著 Dummy Output. 我小搜揣網路, 有看著這个討論綰:

Fix No Sound (Dummy Output) Issue In Ubuntu With SND HDA Intel

一開始照伊講个步序行, 攏無法度解決我的問題:

檢查

1 先落 lsmod|grep snd_hda_intel 來檢查有這寡 Má-tsìo (module) 無?

結果是有
# lsmod|grep snd_hda_intel
snd_hda_intel          40960  4
snd_hda_codec         131072  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_idt
snd_hda_core           86016  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_idt
snd_pcm               102400  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd                    81920  18 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_idt,snd_rawmidi

2 落 檢查 Audio 晶片的資訊:
確定是 Intel 晶片, 是用 snd_hda_intel 無毋著。精差彼版本無仝, 我的有較新淡薄仔:

# lspci -nnk | grep -A2 Audio
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
 Subsystem: Dell 7 Series/C216 Chipset Family High Definition Audio Controller [1028:0534]
 Kernel driver in use: snd_hda_intel
 Kernel modules: snd_hda_intel

試伊的方法

伊講佇 /etc/modprobe.d/alsa-base.conf 尾溜添一逝: options snd-hda-intel model=auto, 我就用 root 身份, 用文字編輯器 vim (抑是任何你慣勢用个) 共伊添入去. 當然用伊的方法嘛會用得, 這是仝款的意思


# echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf

紲落來重開 (reboot).

毋過按呢無較縒

閣共 model 改做 auto

# echo "options snd-hda-intel model=auto" | sudo tee -a /etc/modprobe.d/alsa-base.conf

嘛無路用。看來是無步矣, 欲按怎呢?


上尾的絕招

當佇頭𢯾佇燒的時陣,佇下面的討論粽捾(discuss thread)巡巡咧, 看著有人講, 愛落:

# pulseaudio -k && sudo alsa force-reload

就免重開機。

我就共伊試看覓, 結果按呢生聲音就走出來矣, 彼 輸出裝置 就成做 喇叭 - 內部音效 矣 。

所以,這的問題對我來講, 解決方式就是修改, alsa-base.conf, 重開機, 閣用這個絕招.

愛特別注意: pulseausio -k 干焦會當佇普通使用者 (normal user), 袂使佇 root  身份.


2018年3月3日 星期六

佇 Ubuntu Artful 17.10 頂仔安裝 rubyripper


因端

我慣勢佇 CD 買--轉來了後, kā 伊內底个歌掠出來, 轉做 MP3 抑是其他个格式, 成做家己个資料庫 (database), 才閣捒起雲頂, 親像 Google Music, 按呢生我用手機就會使隨時聽.

往過我攏是用 itune 來轉. 這當然是因為 Apple 自 ipod 開始, 就是隨身音樂的領導者, itune 嘛誠實好用, 伊 uì 掠音軌, 轉檔, 輸入歌个資料, 親像歌名, 作詞者, 專輯名,甚至專輯封面, 攏真好勢用.

毋過對我來講, 唯一麻煩 ê 所在是: 伊無出 Linux 版本. 較早我攏是開 Virtual Box 安裝窗仔門(Windows), 才佇窗仔門頂仔安裝 itune.

毋過, 近--來 itune 佇 Windows 10 頂仔安裝起來煞袂開--得. 掠規半晡掠無摠. 想講應該離搜揣 Linux 頂懸 ê 物件來取代.

需求

我的需求
  • 會當轉出 MP3, 抑是無失真个格式
  • ài支援 id3v2 版本的 mp3 tag
  • ài 支援圖片來做封面
  • ài 支援 batch process
  • 上好是會使 uì 雲頂个 database 直接掠著歌曲ê資料

Rubyripper


我搜揣ê結果, sound-jucier 會使掠, 毋過 mp3 ê tag 傷簡單. 看--來, 掠 CD 音樂 ê 程式和轉檔ài分開. 而且, uì 網路頂仔 ê 討論, 掠 CD 音軌个品質嘛真重要, uì Ubuntu Community CD Ripping ê 討論看--來, Rubyripper 是真濟論壇(lūn-tuânn) 推薦个軟體. 

毋過, ubuntu 个程式資料庫 (repository) 無收 Rubyripper. 所以咱無法度用 apt 輕輕鬆鬆來安裝.

紲--落來, 看有法度揣著捌人款好个包袱仔(package) deb 檔, 若按呢, 咱嘛會使用 dpkg 來安裝(an-tsong). 毋過 uì 伊的官方網站搝(giú)--落來个 deb, 煞傷舊, 裝袂--起來. 紲落尾个辦法, 就是家己 uì 原始碼來起造 (build).


欲按怎 build Rubyripper

首先, uì github kā source code 搝落來:

$ git clone https://github.com/bleskodev/rubyripper.git

紲--落來, 愛安裝起造 binary 需要个包袱仔 (dependent pacakges). 佇 ubuntu 17.10 artful 這个環境中方, 我是按呢做:

$ sudo apt install cdparanoia ruby ruby-gettext ruby-gtk2 cd-discid flac  lame wavpack sox \
cdrdao libcdio-utils vorbisgain ruby-gnome2

行看 ./configure 來看欠啥乜物件:

$ cd rubbyripper
$ ./configure --enable-gtk2 --enable-cli --enable-lang-all


CHECKING FORCED DEPENDENCIES

cdparanoia: [OK]

CHECKING OPTIONAL DEPENDENCIES

ruby-gtk2: [OK]
ruby-gettext: [OK]
discid: [NOT OK]
You won't have accurate freedb string calculation unless Cd-discid is installed.
cd-discid: [OK]
eject: [OK]
flac: [OK]
vorbis: [OK]
lame: [OK]
wavegain: [NOT OK]
You won't be able to replaygain WAVE files.
vorbisgain: [OK]
mp3gain: [OK]
normalize: [NOT OK]
You won't be able to normalize audio files.
cdrdao: [OK]
cd-info: [OK]
ls: [OK]
diskutil: [NOT OK]


Creating the Makefile...
A summary of your settings:

Using the following locations for install:
* Executables: /usr/local/bin
* Localization files: /usr/local/share/locale
* Icon file: /usr/local/share/icons/hicolor/128x128/apps
* Desktop file: /usr/local/share/applications
* Library files: /usr/local/lib/rubyripper

Gtk2 frontend will be installed
Cli frontend will be installed
Languages to be installed: nl, de, fr, hu, ru, es, se, bg, it, da

You can now run make install
Make sure you've got the writing privileges

佇遮, 我是盡量予 [NOT OK] 成做 [OK], 若無, 可能有一寡功能會無正常. 若是欲像我連 mp3gain 嘛 OK, 閣愛裝:

$ sudo add-apt-repository ppa:flexiondotorg/audio
$ sudo apt update
$ sudo apt install mp3gain aacgain

因為 Ubuntu Artfulmp3gain, 所以咱愛 uì 捌人抾好个所在去捎. 這步做了, 閣愛行一擺 ./configure.

落尾, 就是來 build 閣安裝囉!

$ sudo make install

這馬, 你會使起行, 伊有兩種介面: 圖形 (GUI) 和命令列 (CLI), 分別是 rrip_guirrip_cli, 咱開 rrip_gui 看覓:


起行了後,  kā 音樂 CD 囥入去, 揤 Scan drive, 伊就會顯示幾塊歌. 較拍損个是: 伊去 freedb 掠歌个資訊, 是掠無. 所以就愛家己共伊添入去, 閣揤 Rip cd now, 伊就開始kā音軌抽出來囉!


欲轉做啥乜格式?

伊預設是 Vorbis. 你若是欲用捌種, 愛去 Preferences->Codecs->Active audio codecs 設定.

伊支援 mp3, aac, 和 flac 編碼. 我佮意用 flac, 佇 Active audio codecs kā flac 揤 "加入" 添入去, 若無用 Vorbis, 就揤 "移除" kā 伊徙掉就好阿!


欲按怎調整加入封面咧?

這愛和另外个程式配合. easytag 和 kid3 攏袂䆀. 我是較佮意 kid3, 因為伊會使 batch process

2017年11月8日 星期三

欲按怎佇 Linux/Ubuntu 頂仔安裝 Spotify 網路版



若是頭一擺來遮,尤其是對遮的文字感覺怪怪的人,請來踏話頭。。


最近阮兜加入 Spotify 家庭共享 Premium ê 會員。阮某佮阮囝是攏用手機仔佇聽音樂,毋過我規工上班都是用 Ubuntu Linux 佇做工課,也是裝一咧 Linux 版較方便。好佳哉,Spotify 官方網站都有提供 Linux ê 收聽程式,真貼心。

我這馬用的 Linux 是 Ubuntu 17.10 Art Aardvark 版本。拄好參考伊的 Spotify for Linux 都會振動:

# 1. 共 Spotify 簽過 ê 金鎖匙加入,小等咧咱愛用伊來檢查搝落來个包袱仔
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410

# 2. 共 Spofity ê Repository (就是囥程式ê所在) 添入來
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

# 3. 共咱電腦裡所知影ê程式名單換新个,都是共 Spotify 名添入
sudo apt-get update

# 4. 安裝 Spotify-client
sudo apt-get install spotify-client
裝好了後,佇 terminal 落 spotify,揤 ENTER,都會看著登入畫面:
這時共你的登入資料起入去,理論上就會用得。毋過,阮公司有迵過 Proxy 才連起哩外口ê網路,所以閣愛設 Proxy ê 資料,揤下爿 ê SETTINGS, 進入另外一咧畫面:



普通若是愛入來遮,Auto Detect 定著是失敗--ê。共伊換做 HTTP 抑是其他恁公司所用--ê,共 IP,Port 添予好,我是免 Username 佮 Password 啦,轉去頭一咧畫面登入都成功囉!





2017年9月9日 星期六

欲按怎佇 Ubuntu zesty 安裝 avidemux

Avidemux 是一咧好用的影片編輯器。毋過,對 ubuntu 17.04 無收這咧包袱仔拄好佇網路著這咧文章,就來試看māi:

How-to Install the Latest Avidemux on Ubuntu 17.04 Zesty 32-64bit


1 先安裝 GetDeb 套件:
Ubuntu 無,愛先 uì GetDeb 網站--轉來,照伊 ê 這咧 install 網頁頂仔 ê 1.1 ê getdeb,揤正鈕,共伊--落來:


佇我現此時,儉--落來 ê 檔名是: getdeb-repository_0.1-1-getdeb1_all.deb

 terminal,用 dpkg 安裝 getdeb
$ sudo dpkg -i getdeb-repo*

3 你 ê repository 著時(up to date):

$ sudo apt update

4 安裝 avidemux

$ sudo apt install avidemux2.6-qt

佇第 3, 4 ê 步序,我个和參考彼咧英文版ê文章無仝,我是較慣勢用命令列 ê。另外,我無 GTK ê avidemux,干焦揣著 qt 版本。
另外,getdeb ê 網站干焦無夠定定有這種錯誤:

錯誤:11 http://archive.getdeb.net/ubuntu zesty-getdeb/apps amd64 libavidemux2.6 amd64 1:2.7.0-1~getdeb2~zesty                   
  在讀取伺服器時發生錯誤,遠端主機已關閉連線

我試幾落擺(kuí-lo̍h-pái)才成功。
有時,連 apt update 和安裝其他檔案嘛一直有問題。你若是感覺麻煩,嘛是會當:

$ sudo apt-get remove getdeb-repository


這馬,你會使試開 avidemux:





2017年8月10日 星期四

Ubuntu 17.04 安裝心得

今仔日有機會 uì 頭安裝 Ubuntu 17.04,伊的外號是 Zesty Zapus, 意思是 興奮(hing-hùn) ê 林跳鼠(lîm-thiàu-tshú)。我是先去 ubuntu 的本站伊的 iso 檔轉--來,燒做 DVD,才閣用 DVD 來安裝。

DVD 安裝無問題。毋過,一開機就問題liâu-liâu。

ifconfig 命令無--去阿

ifconfig 是基本ê命令。伊是用來看網路卡 ê 狀況。毋過無--去阿。原來,新的 Debian/Ubuntu 版本,無建議閣用 ifconfig,改用 ip 這咧命令:

root@labrix1:/home/broadcom# ip address
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
valid_lft forever preferred_lft forever
inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host
2: enp3s0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
valid_lft forever preferred_lft forever
link/ether fc:aa:14:a0:14:1b brd ff:ff:ff:ff:ff:ff
inet 192.168.101.110/24 brd 192.168.101.255 scope global enp3s0
valid_lft forever preferred_lft forever
valid_lft forever preferred_lft forever
inet6 fe80::feaa:14ff:fea0:141b/64 scope link
3: wlp2s0: mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 52:3c:06:76:c4:c6 brd ff:ff:ff:ff:ff:ff

ip address 會使簡單寫做: ip a 
當然,你若是數念 ifconfig,無 ifconfig 袂用得,嘛是會 i̋ng 共伊用 apt install net-tools --轉來。

DNS 袂振袂動

DNS (台羅:tí-on-es,英文:Domain Name System) 是一種 IP 地址(IP address) 佮域名(台羅:hi̍k-miâ,英文:Domain Name) 會使對準的技術。若是無對予準,你拍 IP address,親像 ping 168.95.1.1 會通,毋過拍 ping www.google.com 袂通。這咧過程,號做 DNS 解破器 (DNS Resolver)
凊彩 Google (kú-kò) 一咧,這是這版 17.04 的大問題。其實,踮 17.04 嘛是換新个 DNS 解破機制,才會問題遐呢濟!

參考這篇: Ubuntu 17.04 無法度解破有 DNSSEC 支援 ê DNS 侍候器(Server)。

sudo mkdir -p /etc/systemd/resolved.conf.d
printf "[Resolve]\nDNSSEC=no\n" | sudo tee /etc/systemd/resolved.conf.d/no-dnssec.conf
頂面 ê 兩,就是叫 Ubuntu 17.04,咱的 DNS 解破器莫去解破 DNSSEC。你會當伊 Copy 了直接去 Terminal 裡運行,結果是:

cat /etc/systemd/resolved.conf.d/no-dnssec.conf
[Resolve]
DNSSEC=no
你愛看有 /etc/systemd/resolved.conf.d/no-dnssec.conf 這咧檔案,和伊的內容。
--落來,咱重開 DNS 解破器:

sudo dpkg-reconfigure resolvconf
按呢,伊就正常囉!


若是閣無法度

就共 systemd 个 dns 禁khiah, 直接用 Google 个 DNS 侍候器:
sudo systemctl disable systemd-resolved.service
sudo service systemd-resolved stop
vi /etc/resolv.conf
添一逝:
nameserver 8.8.8.8

2010年4月18日 星期日

Using BlackBarry Bold 9000 as 3G modem on Linux

Recently I got the BlackBerry Bold 9000 and it can work as 3G modem by using the BlackBerry Desktop Software. Since I used to work under the environment of Linux, I want to make it work on Linux.

In ubuntu 9.10, I do the following steps
$ sudo apt-get install pkg-config libusb-dev libssl-dev libboost-serialization-dev libtar-dev libgtkmm-2.4-dev libglibmm-2.4-dev libglademm-2.4-dev zlib1g-dev

And then download and install the "libbarry" and "barry-util" from Source Forge: http://sourceforge.net/projects/barry/files/

But it could not work.

After trial for awhile, I finally make it works from the recompiling and debug from the ppp package.

In the debugging, I found that it looks when using the IPCP to get the local IP adderss, BlackBerry cannot provide it immediately and pppd daemon polling for many times, so that ppp get the many NAK's from Barry. Finally it provides but the pppd complains and exit.

The quickfix to it is to increase the max number of IPCP NAK tolerance to reject the NAK's information. From the the ppp source tree:

vi pppd/ipcp.c

and the line:

f->maxnakloops = 100;

and change it to larger number, I use the 2000;

And it works well,

Also, my telecom company is Taiwan Mobile, attach the ppp script and chat for reference:
/etc/ppp/peers/barry-taiwan_mobile:

-------------
pty "/usr/sbin/pppob"
connect "/usr/sbin/chat -f /etc/chatscripts/barry-taiwan_mobile.chat"
#noauth
user ""
password ""

defaultroute
usepeerdns
noipdefault
nodetach
novj
nocrtscts
nomultilink
ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote
lcp-echo-interval 0
lcp-echo-failure 999
mtu 1492
ipcp-max-configure 100
nopcomp
noaccomp
nomagic
--------------
/etc/chatscripts/barry-taiwan_mobile.chat:
------------
ABORT ERROR
OK ATZ
OK ATI
OK AT+CGDCONT=1,"IP","internet"
OK ATD*99#
CONNECT
------------
The workable command is:

pppd call barry-taiwan_mobile


-- Enjoy

2007年8月14日 星期二

ubuntu feisty amd64 安裝筆記 3 - 在 Ubuntu 下設立 IA32 的環境

後來想想, 除了把 kernel compile 成 64 dual-core 外, 還有 library 和 application 也最好要跟著改, 才能發揮它的效用. 後來發現 Ubuntu feisty 有 amd64 的 image, 於是就把它下載燒成光碟, 然後把我的系統重灌!

然而在 64-bit, 還是有一些零星的小問題. 大體上都很順, 連 X windows 都不需要另外安裝 fglrx driver 就可以開了. 比較麻煩是 firefox 無法使用 java plugin. Java 和 firefox 都是 64-bit 而且 OK. freemind 一 apt-get install 完就可以 run 而且中文也 OK.

查 sun 的官方網頁好像目前還無解, 於是就試試 "Ubuntu AMD64 IA32 Howto", 以下是隨手筆記:


# apt-get install debootstrap
# debootstrap --arch i386 feisty /hda3/feisty-i386 http://tw.archive.ubuntu.com/ubuntu
# chroot /chroot/feisty-i386
從以下是進入 IA32 環境下操作:
# vi /etc/apt/sources.list
# apt-get update && apt-get upgrade
# apt-get install libx11-
#共享 64 環境中的 home, tmp, proc 在 /etc/fstab 中加入:
----------------------------
/home /chrrot/feisty-i386/home none bind 0 0
/tmp /chroot/feisty-i386/tmp none bind 0 0 proc
/chroot/feisty-i386/proc proc defaults 0 0
----------------------------
在當下可以運作, 但是重新開機後, tmp 和 proc 好像無法 bind, 可能是因為我的 tmp 也是經過 bind 到 /dev/shm/tmp, fstab 應是比較早執行,
我把它移到自己寫的 bind_dir script 中:
------------------
echo "Start to setup IA32 environment"
mount --bind /dev/shm/tmp /hda3/chroot/feisty-i386/tmp
echo "The IA32 /tmp is mouted to /dev/shm/tmp"
mount -t proc proc /chroot/feisty-i386/proc
echo "The IA32 proc is mouted"
mount --bind /home /chroot/feisty-i386/home
echo "The IA32 home is mounted"
echo "The IA32 environment is OK"
----------------
# cp /etc/passwd /chroot/feisty-i386/etc/
# cp /etc/shadow /chroot/feisty-i386/etc/
# cp /etc/group /chroot/feisty-i386/etc/

# apt-get install language-support-zh
?? 無法設定 locale, 並沒有出現 configuration 的畫面.
# apt-get install gnome-icon-theme gnome-themes ttf-arphic-uming
原來是用 ttf-arphic-newsung, 但是找不到, 我改用 ttf-arphic-uming

在 ia32-chroot 中執行應用程式
# chroot /hda3/chroot/feisty-i386
# su - export DISPLAY=:0 <執行應用程式>
使用 dchroot 執行 32bit 應用程式
$ apt-get install dchroot
# gedit /etc/dchroot.conf 在檔案最後面加上:
# ia32 chroot ia32 /chroot/breezy-i386 以後只要用以下方式即可執行應用程式
# dchroot -c ia32 -d <應用程式>
建立啟動圖示 在安裝完應用程式之後,將 ia32-chroot 中的應用程式啟動圖示複製到 AMD64 系統中。

在 Ubuntu 中應用程式的啟動圖示會被放到 /usr/share/applications 目錄,啟動圖示的 icon 則放在 /usr/share/pixmaps 目錄,
因此只要將 ia32-chroot 中這兩個資料夾的 *.desktop/*.xpm/*.png 項目複製到系統中的相同位置即可:
# cp /chroot/breezy-i386/usr/share/applications/*.desktop /usr/share/applications/
# cp /chroot/breezy-i386/usr/share/pixmaps/*.xpm /usr/share/pixmaps/
# cp /chroot/breezy-i386/usr/share/pixmaps/*.png /usr/share/pixmaps/

其中最後的建立啟動圖式我並沒有試, 單純留個記錄. 基本上我也不會常用 dchroot, 我自己是習慣用一個 workspace, 開一個 IA32
的 terminal, 然後所有 IA32 的行為都在裏面執行就好了!

然後在這個環境中 apt-get install firefox, apt-get install sun-java6-XXXX, 基本上就 OK 了

2007年8月9日 星期四

ubuntu feisty amd64 安裝筆記 2 - RAM disk 測試

將投資在 CPU 效能的錢移到 RAM, 當然就是想看看 RAM disk 的威力了. 我打算先買 2G, 日後等 DDR2 RAM 2G 一條價錢降到很便宜, 再一次把它加到 6G
在此先研究一下 ramdisk 怎麼做:

1 重 build kernel, 在 Kernel 中設定 ramdisk 的 default size 之後, 我設得很大, 將近 3GB,
可是我試了一下:
dd if=/dev/zero of=/dev/ram1 bs=1G count=1
整個系統卻掛掉!! 於是我改了幾個設定, bs=1024, count=XXx 云云, 後來發現到了 800MB 還 可以跑, 可是到了 900MB 系統就會掛了!

經查是 Kernel 的最大 ramdisk 大小為系統記憶體的一半!! 所以我有 2G, 最大只可以到 1G.
可是實際上比一半還小一些呢? 以後還是找出打破找出打破這一限制的方法, 否則以後如果 我加到 8GB 的 DRAM, 我相信系統記憶體也用不到 4GB!
2. 後來發現好像在 linux 2.6 使用 ramdisk 的方法更簡便了:
a) 使用 tmpfs 的方法:
在 /etc/fstab 中加上
tmpfs /tmp tmpfs size=950m,mode=1777 0 0
就可以把 /tmp mount 到 ramdisk 了!!
b) 直接使用 /dev/shm :
mkdir /dev/shm/tmp
chmod 1777 /dev/shm/tmp
mount --bind /dev/shm/tmp /tmp
就可以讓 /dev/shm/tmp binding 到 /tmp, 完全不需要 format, 看來 /dev/shm 是架在 tmpfs 之上的!

接下來只要找到方法在開機和關機 script 自動作以上的動作以及資料的同步即可

Ubuntu feisty amd64 安裝筆記 1 - 690G driver 安裝

最近我那台老電腦終於掛了, 我念了好久的組裝夢幻電腦的工作也變成勢在必行. 在幾經成本的考量下, 我決定只換掉主板, CPU, 和記憶體. 我的目標是:
1. 不超過一萬元
2. 要省電
3. 雙核
4. 記憶體要 2G
5. 要能播放 HDTV
原先我鎖定的 Core2 Duo, 怎麼算光 CPU + 主機板就要 8~9000 元. Intel 的 965G 系列內建顯示又沒有支援 HDTV, 且效能評價不佳, 我勢必要再買一塊顯示卡. 一旦加上顯卡成本和耗電又都加上來了. 因此, AMD 690G 系列主板成了我的選凙!!

最後我選擇了:
AMD BE-2350 45W NT 3100
Gigabyte GA-MA69G-S3H NT 2900
威剛ddr2 800 1G x2 NT 2900

總價約 8900, 再加上舊的主板顯卡DRAM回收, 實際花了 8000 元. 其中 BE-2350
是我在最後變更的. 本來用 x2 4000+ 或 x2 3800+ 又要再便宜 700 多! 這顆 CPU 在台灣還很新, 一開始還沒有現貨. 我覺得等到台灣每個地方都舖了還會更便宜. 但是, 以 45 W 和 65 W 比起來, 我相信長期的電費省下來還是划算, 也算是對環保盡小小心力!!

因為保留原來的硬碟, 所以一開完機, 原來的 Ubuntu feisty 就可以開機. 只是 X window 開不起來!
出現以下的錯誤:
(WW) RADEON: No matching Device section for instance (BusID PCI:1:5:0) found
(EE) No devices detected.
在網路上找一下資料, 似乎有許多人有很多問題, 有說要把 BIOS 的 HEPT 關掉云云. 但是我是單純顯示的問題. 後來參考 "ATI卡,成功安装的个人经验分享", 雖然它是獨立顯卡, 但對 690G 也適用:
1. apt-get install xorg-driver-fglrx # Video driver for ATI graphics drivers
2. ati-config --initial
3. modprobe -a
4. vi /etc/modules, 加入
fglrx
之後直接打 startx, 就成功了!!

記得有人說用 Hiweed Linux 直接就 OK!! 還有人先裝
apt-get install linux-restricted-modules-$(uname -r)
但這個我已經先裝了, 還有人用
sed -i -e 's/"ati"/"fglrx"/' /etc/X11/xorg.conf
這個我沒有執行! 也有人說在 configure X windows 時, 不要選 ati, 選 vesa, 進入後再用 ati 去設定!!

佇 Linux 來看GPX 檔案

最近定定有戶外活動。使用𤆬路機 (GPS) 來記錄行過的路線。普通我記錄路線,攏是用手機仔抑是專門个𤆬路機,罕得用電腦來看。 毋過,"仙人拍鼓有時錯,跤步踏差啥人無"。有一擺我無細膩,袂記得共一擺活動的路線收煞起來,閣直接開始記錄下一擺的活動,按呢共幾落...