2008年2月1日 星期五

Imspector

Jamyy's Weblog看來的,「Imspector Web 查詢介面 for Imspector 0.4

Imspector
是一套 IM Proxy ,支援 MSN ICQ YAHOO IRC 的通訊協定, 通常安裝於NAT主機上。

酷!學園上有一篇介紹Imspector的文章「在NAT上面看大家的即時通在聊些什麼

想安裝的話可以參考一下。

看,禁止IM軟體傳檔的功能也在Imspector 0.4版做出來了,對網管應該很有用。

側錄的功能的話…,邪惡的事還是不建議啊 XD

2008年1月9日 星期三

Crontab不同的寫法

從來寫Crontab都是照著寫而已,

沒想到Crontab還可以這樣寫

Crontab一般的格式是

18 10 5 * * * root /usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w
對應到
m h dom mon dow user command

field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
不過還有另一種寫法 ex:
@hourly root /usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w
說明如下 :p
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
詳細的資訊可以 man 5 crontab

2008年1月4日 星期五

Ubuntu瘦身 - 刪除不需要的locale

從Nelson那看到的,替Ubuntu刪除不需要的locale,

1.安裝 localepurge
sudo apt-get install localepurge

挑三個tw的就行了


2.PCMan寫的瘦身code
desktop-purge.cmime-purge.cgconf-purge.c
記得先安裝編譯環境
sudo apt-get install build-essential
接下來就compile這三個檔案
gcc `pkg-config glib-2.0 --cflags --libs` -o desktop-purge desktop-purge.c
gcc `pkg-config glib-2.0 --cflags --libs` -o mime-purge mime-purge.c
gcc `pkg-config glib-2.0 --cflags --libs` -o gconf-purge gconf-purge.c
會有Warning,記得回來看看可不可以把Warning改掉

之後再執行compile好之後的執行檔,

我把它們放到/usr/local/sbin裡。

3. apt-get 安裝軟體後自動進行清理
sudo vi /etc/apt/apt.conf.d/99-transpurge
貼上以下內容並儲存
DPkg
{
Post-Invoke {"if [ $(ps w -p "$PPID" | grep -c remove) != 1 ]; then /usr/local/sbin/desktop-purge > /dev/null; /usr/local/sbin/mime-purge >/dev/null ; /usr/local/sbin/gconf-purge > /dev/null; else exit 0; fi";};
};
執行過這一次以後,之後會在每次安裝軟體時自動再執行

2008年1月3日 星期四

Console下的mp3 player

以前如果要從console底下聽mp3,大概都是用mplayer直接上。

剛剛從LinuxToy那看到新玩具-- Mp3blaster

畫面看起來也ok,如果使用純文字介面,拿這套來聽mp3很適合,

有清單,有功能鍵,可以加入檔案...etc。

也才剛拿來用5分鐘,有問題再補上吧!



2007年12月27日 星期四

70+ IDE tools

Real-Blog這篇文章看來的,

原出處是這裡

看了看,裡面小黑裡有裝的大概就是

c&c++
Code::BlocksDev-C++

java
Eclipse

.NET
Visual Studio .NET

Python
EricSPE IDE

Python的IDE正在亂試中,其實還裝了一堆其它的Python IDE
,之後可能以SPE IDE為主,和gnome主題比較搭的感覺。
因為bug的關係,目前Ubuntu 7.10 apt抓到的版本無法work
,主要是wxPython 2.8的關係,可以用svn版本解決。


列了一堆有裝的,其實還是最常Vim打死…。

2007年12月17日 星期一

ThinkPad在Linux下使用中鍵捲動

把/etc/X11/xorg.con裡
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
加入這三行
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
變成這樣
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
T61的中鍵就可以用了 :p

2007年12月14日 星期五

Bootchart 開機過程分析工具

Bootchar 安裝之後可分析開機過程花費的時間及系統資源

而且還以圖表化,看起來很方便。

sudo apt-get instal bootchar;

詳細設定上官網看吧,看圖檔要花點步驟。