Linux 在 Kernel 2.6 及 Glibc 2.4.x 版以後支援 NPTL (The Native POSIX Thread Library)
在 我的Wiki 有一篇 GentooNPTL 有講到如何讓 Gentoo 支援 NPTL
若是你的系統有用到 MultiThread, 而且 Create/Exit Threads 很頻繁時, 都應該換 NPTL
其實用 LinuxThreads 也不會太慢, 不過就是爽度問題.
個人用的感覺是, 若是系統上有很多 Service , Loading 較輕, 反應時間較快(皆未經嚴格驗證)
目前我自己的系統都是換上了 NPTL…
以下補上兩篇測試報告.
Linux 线程库性能测试与分析
first NPT vs. NGPT vs. LinuxThreads benchmark results
Tags: Gentoo, UNIX
[Read more →]
Tags: Gentoo · UNIX
我換新電腦以後, 在 Thunderbird 內 URL Link 並不會開啟 Mozilla-Firefox 連上 URL
這讓我很困擾, 因為我用 ThunderBird 看 RSS , 常常都會有 Link
今天爬了一下文
在 ThunderBird 的 About:config 內, 加上
network.protocol-handler.app.http
network.protocol-handler.app.https
network.protocol-handler.app.ftp
三個選項, 參數用
/usr/bin/firefox
這樣就可以正常運作了…..
ref . Making hyperlinks work between Firefox and Thunderbird
Tags: Gentoo, Linux, Software
[Read more →]
Tags: Gentoo · Linux · Software
昨天在裝我的 USB-Serial Device 的 Linux Driver.
搞了半天, 也不知道裝那一箇.
最後是這樣搞定的
1. 裝 usbd , 啟動 usbd
2. 看
Device 3 Vendor 067b Product ID 2303 Class bfffb460 Speed 12000 kbps
找出 Vendor ID 和 Product ID
3. 查詢 USB Vendor/Device IDs list
找到 Vendor 067b 是 Prolific Technology, Inc. 而 Device ID 是 2303 PL2303 Serial Port
4. [...]
[Read more →]
Tags: Gentoo · Hardware
KDE 3.4.1 出好久了, 不過本來沒有想要換的, 只是不小心換到 3.4.1
原來只是要加上 “kwifimanager”, 這個在 gentoo 內要 USE=”wifi” emerge kdenetwork.
所以我就重編了一下 kdenetwork, 一時不察, 沒有發現到 unstable version 己經換到 kde 3.4.1 了. artd 己經換到新版, 頭洗一半, 只好換到新版…….
沒有想到在 kdenetwork 的地方 compile 失敗. Error Message 如下.
Interface_wireless_wirelessextensions::poll_device_info()’:
interface_wireless_wirelessextensions.cpp:421: error: `iw_pr_ether’ undeclared
(first use this function)
interface_wireless_wirelessextensions.cpp:421: error: (Each undeclared
identifier is reported only once for each function it appears in.)
Change the wireless-tools [...]
[Read more →]
Tags: Gentoo
我每次要從舊版升級 gcc . 我都要手動改 /etc/env.d/05gcc 這個檔案.
剛剛在 #gentoo 問人,
bum_in_the_sun: 回答用 gcc-config . 試了一下, 果然可以用.
# gcc-config i686-pc-linux-gnu-3.4.3-20050110
* Switching to i686-pc-linux-gnu-3.4.3-20050110 compiler … [ ok ]
Tags: Gentoo
[Read more →]
Tags: Gentoo
最近有一台 X31 (再次強調這一台不是我買的)
最近左灌右灌,不是 lilo 掛點 LI 99,就是 winodws 再起不能,跑 BSOD .
反正搞得我很煩,最後終於有一次 grub 成功了,但是我很高興的處理完以後,才發現 Windows 又進不去.
這樣子持續二個星期.
我第一次碰到這麼難搞的 Notebook. 而在網路上也找不到任何 X31 灌 Linux 會出槌的問題.
在多次的 TEST 之後(將近二個星期的晚上),終於分離出問題,人應該是 kubuntu 殺的,
更正確的說,我因為改用 kubuntu,因為某個步驟,所以造成了這次的問題
我是習慣裝 Gentoo on My Desktop .
以前我開機的步驟
1. 放入 Gentoo 開機碟
2. cfdisk
3. tar xjf stagefile
blah blah blah
這次因為 X31 的外接光碟機是會被認到 usb Device
“剛好” Gentoo 2005.0 會認不到 device
所以,我就去抓了 kubuntu (基於我個人對於 KDE 的情感)
1. 用 kubuntu [...]
[Read more →]
Tags: Gentoo · Linux · UNIX · 垃圾桶
最近入手了一台 IBM X31,算是打連想都不要想牌之前, 最後的 IBM Mark Notebook
這一台不是自己出的錢, 不過有 1G 的 RAM 和 60G 4200rpm 的 HDD(i38 加到 1G)
這一台入手之後, 我才發現我自己有小小的 IBM 怨念?
目前所有的 USB 光學鼠都是 IBM Mark , 兩隻主要工作的 KeyBoard 也都是 IBM 的
(TrackPoint IV 和 UltraNav) …… 接下來應該搞 IBM Server 才對(笑)
目前正在弄 Gentoo LiveCD 開機, 因為 Gentoo LiveCD 沒有辦法從 IBM USB CDROM 開機
然後這時候就被小明長輩討厭了. 說都不向他買 Orz
我對不起小明長輩, 沒有及時告訴採購要向小明長輩購買
在此呼籲想買 X31 的朋友們, [...]
[Read more →]
Tags: Gentoo · Hardware · 敗家誌
前兩天,本人奶油桂花手,搞爛了我 Notebook 的 Linux Root Partition …….
我的 Linux Root Partition 在 /dev/hda3
而爛掉的原因是在 SuperBlock 上有幾個 Bad Sectors … 大概就 128K 左右的大小.
因為我的硬碟是 IBM 的,我去找 DFT 去修….
結果 DFT 碰到有問題的 Sectors 也是過不去.
卡死在那邊……
今天晚上,找來了 PCMCIA 的 USB 2.0 轉卡和 USB2IDE 接一顆外接的 40G HDD 到 notebook 上.
用 Gentoo 2005.0 開機(註 2004.03 有一些問題, USB Driver 怪怪的)
首先先將有問題的 Partition Dump 出來到 40G 的硬碟上
由於 dd [...]
[Read more →]
Tags: Gentoo · Linux · UNIX
Gentoo 的 Kdevelop 預設很多 support 是 disable 的.
難怪我一直找不到那邊可以設定 Subversion 的選項
今天才找到 … -_-!
在 make.conf 的 USE 加上 “php subersion” 就可以啟動 kdevelop 的 subversion 及 php support .
其他還有.
IUSE=”ada clearcase fortran haskell java pascal perforce perl php python ruby sql subversion”
kdevelop 愈用愈順手了 :p
Tags: Gentoo, Programming
[Read more →]
Tags: Gentoo · Programming
這幾天因為有會在資料在 Partition 移來移去, 分割, 整合的需求,
所以就選用用 LVM 做我的 File System
結果比較白爛的事情是, Reiser4 的 resize tool 沒有寫好, 所以我只能先搬到另一
顆 DISK ,將原來的 File System 改成 Reiser3 再搬回來. 又多花了半天.
增大 Partition 到是沒有花很多時間. 就 fdisk 直接切 size 之後
直接用 resize_reiserfs 去修就可以了
懶得打指令集了, 指令如下
624 pvcreate /dev/hde
625 pvdisplay
626 vgdisplay
627 vgextend data /dev/hde
[...]
[Read more →]
Tags: Gentoo · Linux