Currently browsing posts found in July2008
Upgraded to rtorrent 0.8.2
Number of Comments » 0試著把 rtorrent 升級到 0.8.2/libtorrent 0.12.2,新版修正了幾個嚴重的 memory leaks 與 EINTR signal handling 問題,以及 Super-seeding (Initial seeding).
由於 rtorrent 在 Debian sid 中一直都是 0.7.9,於是只好繼續自己維護一個新版本的 debian packages。Ubuntu intrepid 倒是已經是 0.8.2。
編譯的時候,由於我的系統已經升級到 g++ 4.3 的緣故,必須配合 Header dependency streamlining
補入 C++ Headers。這個問題已經已經有人回報到 trac 上,詳細修改可以參考 Gentoo 的 patches. (libtorrent-0.11.9+gcc-4.3.patch, rtorrent-0.8.0+gcc-4.3.patch)。
terminator 0.9
Number of Comments » 1由於時常需要同時開啟數個 Terminal 來作系統設定,因此一直在找一個方便安排視窗位置的軟體或方法。
雖說 GNU Screen 的 regions 機制,可以讓你在同一個 Screen window 中切割出不同的橫向視窗。但是你得熟記指令或熱鍵才好於不同的視窗間切換,無法使用滑鼠切換視窗焦點,當然也無法方便的利用滾動軸查看稍早的指令輸出。且 GNU Screen 目前還不支援垂直分割,必須套上額外的補釘。
另外一個方式是使用 Tiling Tabbed Window Manager,若你習慣純粹使用 CLI 來工作,使用應該沒有甚麼大問題,它會協助你將終端機規矩的置於數個獨立視窗中,你可利用 Window Manager 設定的快速鍵來切換視窗。常見的軟體有 Ion, Aweson, Ratpoison, Stumpwm, Wmii 等。
但若你已經習慣了現有的 Window Manager,或習慣讓大部份的軟體使用浮動視窗的介面。你可以試試 terminator。terminator 是使用 Python 與 VTE Terminal Widget 所寫成,於其他的終端機模擬軟體不同的是,terminator 方便讓你把視窗排列組成格狀,你可以任意對視窗作橫向或垂直分割。於是你可以方便的開啟一堆視窗,並將他們安插在你想要的位置。
由於 terminator 支援 Gnome Terminal 的 Profile (設定組合),我習慣設定一個 coding profile,定義方便閱讀程式碼的小字型 (方便瀏覽更多程式碼),並使用 terminator -f -p coding,開啟一個全螢幕的視窗來工作。這是我查看 terminator [...]
Command Not Found Magic
Number of Comments » 0試著在剛裝好的 Ubuntu 上亂打一些指令時,發現在 CLI 介面,Ubuntu 會聰明的提醒你忘了裝甚麼軟體套件。
user@user-laptop:~$ proxychains
The program ‘proxychains’ is currently not installed.
You can install it by typing:
sudo apt-get install proxychains
-bash: proxychains: command not found
稍微玩了一下,發現是 command-not-found 這個神奇法術。軟體套件包含 /usr/lib/command-not-found 、是一個用 Python 刻的指令稿,此軟體會查詢預先建成的指令/軟體名稱資料庫,只要餵給它指令名稱,他可以迅速的提示如何安裝含有該指令的軟體套件。由於資料庫是 gdbm,且大小只有 2.3M (command-not-found-data 0.2.17ubuntu1),因此查詢的速度相當快,使用者不太感覺到差異。
要使用此功能,尚必須在 bash 中定義一個 command_not_found_handle 函式,在查無指令時自動執行 command-not-found. Ubuntu 已經將這段程式建於 /etc/bash.bashrc.
不過目前使用的套件資料庫是預建的,因此不會依照你所使用的 apt sources 自動更新資料庫。若是可以整合 apt-file 與 dlocate 兩個的功能,應該可以提供較有彈性的功能吧。
Flash Player 10 for Linux
Number of Comments » 0既 Flash Player 9 後又過了一年半,Adobe 終於又將發行支援 Linux 的 Flash Player 10。
新版的 Flash 在各種多媒體處理的能力與效能上都有重大的改進。包含了新的 繪圖/3D API、新的音效處理 API,在 Linux 平台上尚新增了以下功能
Linux WMODE (windowless mode)
Video4Linux v2 Support
unloadAndStop
Limited Fullscreen Keyboard Access
File Reference runtime access
Dynamic Sound Generation
Large Bitmap Support
Context Menu
GB18030 Compliance
Ubuntu OS Support
終於,Flash 不會老是浮起來蓋住 HTML。當然,我最關心的其中一個功能是新的 Flash Player 支援 v4l2,於是我終於有機會不需靠 Flashcam 或 patch libflashsupport.c 使用 Webcam,可以開始玩 Yahoo Live, wooMe 與 seesmic [...]