最近拿到一顆 Hitachi 7K3000 3TB 的硬碟做 Linux 環境的測試,先說明一下我的 Target system。
AMD64 PC
OS: Debian wheezy/sid
Kernel: linux-image-2.6.39-2-amd64
CPU: AMD AlthonII 250
Motherboard: Gigabyte GA-MA78GM-UD2H(無 UEFI Bios)
Hitachi 3TB 安裝在 sata_2
Asho's Blog - 阿信的部落格
Life is Simple, You make choices and DON'T look back !!
2011年4月18日星期一
rtorrent停頓的問題[已解決]
最近 Squeeze 的 rtorrent 不知道是不是瘋掉了,一直會有停頓的現象產生,一直找不出原因,一度跳槽到 transmission-daemon,但因為不支援 DHT port setting以及傳輸不快,所以就硬著頭皮找出 rtorrent 停頓的問題。
2010年11月29日星期一
2010年10月19日星期二
[筆記]再論如何安裝 lighttpd + PHP with Debian way
上一篇Debian Squeeze 安裝 lighttpd + php + gitweb說明如何安裝 lighttpd + PHP,雖然只要修改 lighttpd.conf 就能達成功效,但事實上 Debian Maintainer 已經考慮到 PHP 的支援。試過之後,完全不用修改任何檔案就能完成 lighttpd + PHP,所以再寫一篇來記錄。
安裝方式依舊,不再論述,要掛上 PHP 的支援只要執行
安裝方式依舊,不再論述,要掛上 PHP 的支援只要執行
sudo /usr/sbin/lighty-enable-mod fastcgi fastcgi-php搞定收工!應用 Maintainer 所製作的方法,省去自行 K doc 的時間,特此感謝辛苦的 Maintainer
sudo /etc/init.d/lighttpd restart
[筆記] Debian Squeeze 安裝 lighttpd + php + gitweb
因為工作需要使用 Web Server,Apache的肥大已經造成速度不夠快,於是就找起了替代方案。
本來的候選是 thttpd, 但是要搭配 PHP 又裝不起來,速度上是稍比 Apache 快一點。繼續 google 後,發現有人推薦了 lighttpd(Youtube就是用它),試用後發現瀏灠速度上快上不少,PHP的部份也好安裝,所以就一併換掉 git server 的 Apache 改用 lighttpd + gitweb。
本來的候選是 thttpd, 但是要搭配 PHP 又裝不起來,速度上是稍比 Apache 快一點。繼續 google 後,發現有人推薦了 lighttpd(Youtube就是用它),試用後發現瀏灠速度上快上不少,PHP的部份也好安裝,所以就一併換掉 git server 的 Apache 改用 lighttpd + gitweb。
2010年8月4日星期三
Debian testing 的 flashplayer-mozilla
最近Flash Plugin更新後,一直沒有64bit釋出,Marillat有包裝出一個flashplayer-mozilla的deb,它會自動設定nspluginwrapper來使用32bit的flash plugin。然而在安裝該套件時並不是那麼順利,由aptitude install flashplayer-mozilla會出現下述的錯誤訊息。
nspluginwrapper: no appropriate viewer found for /usr/lib/flashplayer/libflashplayer.so這並不是我們要的,呼叫 ldd 大神檢查 plugin 缺少的library 吧。
ldd /usr/lib/flashplayer/libflashplayer.so
linux-gate.so.1 => (0xf7798000)
...
...
libnss3.so => not found
libsmime3.so => not found
libssl3.so => not found
libplds4.so => not found
libplc4.so => not found
libnspr4.so => not found
主要是這四個 so 檔案找不到,雖然 aptitude 自動解決了套件的相依性,依舊找不到 so 的原因出於 ia32-libs-libnss3 的套件將 so 放置在:
/emul/ia32-linux/usr/lib/libnss3.so
/emul/ia32-linux/usr/lib/libsmime3.so
/emul/ia32-linux/usr/lib/libnssutil3.so
/emul/ia32-linux/usr/lib/libssl3.so
答案就揭曉了,我們只需將 /emul/ia32-linux/usr/lib 加入到 /etc/ld.so.conf 再執行 ldconfig,就能讓系統找到這個路徑下的 so 檔案。
再度重裝 flashplayer-mozilla,就一切正常了。
2010年7月20日星期二
訂閱:
文章 (Atom)