What's polygraph?
"Web Polygraph is a freely available performance testing tool for caching proxies, origin server accelerators, L4/7 switches, content filters, and other Web intermediaries. Polygraph's features include:
high-performance HTTP clients and servers
realistic HTTP and SSL traffic generation
HTTP Basic, NTLM, and Negotiate proxy authentication
LDAP-friendly generation of user credentials
flexible content simulation
ready-to-use standard workloads for benchmarking
powerful domain-specific configuration language
portable open-source implementation
friendly commercial support "
http://www.web-polygraph.org/
在CentOS5.2下編譯polygraph v3.1.5時會發生SslWrap.cc的問題,解決的方法是:
http://www.linuxquestions.org/questions/linux-server-73/problem-compiling-web-polygraph-689766/
./configure;make;make install 好搞定了! Enjoy it!
Thursday, April 02, 2009
Thursday, March 26, 2009
Novell SLES11 Server/Desktop is available to download
哇哈哈~ Novell SLES11 Server/Desktop總算是釋出了,目前家裡一台P4 2.4GHz的老PC跑OpenSUSE 11.0讓我非常滿意,之前有聽說過SLES11是基於OpenSUSE 11.1開發的。
打算先找台NB裝一下看看,BTW Novell SLES11與SLES10一樣提供60天的免費更新,哈!還算ok!
謎之音: 之前在某家公司內部所架設的SLES10 <- 提供挺多services 沒當過,不知還在運作否 XD
Monday, March 16, 2009
Friday, March 13, 2009
Linux管理小技巧: CDPATH
預設上, RHEL5.x與CentOS5.x的bind有chroot的機制, 所以當系統管理者要去更改named.conf或是相關的DNS zonefile時就必需要輸入/var/named/chroot/etc/ or /var/named/chroot/var/named/ 恩... 有點長, tab要按好幾次, 於是乎帽客想到了一個好用的偷懶方法, CDPATH.
透過CDPATH可以設定parent directory然後透過cd指令切入到subdirectories, 看起來有點抽象? 實際看看例子吧:

上面的例子是設定CDPATH為DNS Server chroot的路徑(/var/named/chroot), 並將它變成環境變數, 之後只要輸入cd etc就會切入到/var/named/chroot/etc, 而cd var/named就會切入到/var/named/chroot/var/named.
看起來方便多了吧!

透過CDPATH可以設定parent directory然後透過cd指令切入到subdirectories, 看起來有點抽象? 實際看看例子吧:

上面的例子是設定CDPATH為DNS Server chroot的路徑(/var/named/chroot), 並將它變成環境變數, 之後只要輸入cd etc就會切入到/var/named/chroot/etc, 而cd var/named就會切入到/var/named/chroot/var/named.
看起來方便多了吧!
update:
讓CDPATH重開機時就生效吧:
echo "CDPATH=/var/named/chroot" >> /root/.bash_profile
2009.3.16 update:
今天發現到bash內建的command,pushd與popd也有著類似的功能:

先將/var/named/chroot 透過pushd新增至stack中,並用dirs確定目前stack的內容(第一筆永遠是current directory),之後透過cd就可以切換到subdirectories。
Thursday, March 12, 2009
Tuesday, March 10, 2009
Compile Linux kernel "2.6.28.7" on CentOS5.2
想玩看看EXT4,所以下載了最新版有支援EXT4的kernel於CentOS5.2上,以下是compile的雜記:
1. 於/usr/src/kernels/解開2.6.28.7的kernel source (download: www.kernel.org)
2. 將目前的kernel config 從/boot下copy到/usr/src/kernels/2.6.28.7/.config
2. 將目前的kernel config 從/boot下copy到/usr/src/kernels/2.6.28.7/.config
3. 於/usr/src/kernels/2.6.28.7執行make menuconfig
-> Add EXT4
-> Remove Bluetooth
-> Remove wireless
4. 執行make bzImage
5. 執行make modules
6. 執行make modules_install
7. 執行make install
8. 檢查/boot/*, /boot/grub/grub.conf
-> 開機選用kernel 2.6.28.7開機。
2009.3.25 update:
Tested ext3 and ext4 performance on kernel 2.6.29 and result as below:
It looks like ext4 is better than ext3.
Note: To clean HD cache for each test processing by hdparm -f command.
Note: To clean HD cache for each test processing by hdparm -f command.
Tuesday, February 24, 2009
列印出每個使用者登入至Linux主機的總次數
這麼下達就可以得到結果了 :
# last|awk -F" " '{print $1}'|grep -v "^$"|grep -v reboot|grep -v wtmp|sort|uniq -c
Monday, February 16, 2009
Check Linux NIC driver
工作需求所以用到了, 在此記錄:
#ethtool -i eth0
driver: e1000e
version: 0.3.3.3-k6
firmware-version: 5.7-6
bus-info: 0000:0c:00.0
#ethtool -i eth0
driver: e1000e
version: 0.3.3.3-k6
firmware-version: 5.7-6
bus-info: 0000:0c:00.0
Linux liveUSB creator
發現了一套可執行於Linux與Windows的Linux liveUSB creator: liveusb-creator 透過它, 可以很方便的透過iso檔製作出liveusb, usb開機比DVD/CD-ROM開機不僅來得快也來得方便多了, 畢竟現在很多notebook/netbook預設都不搭配DVD/CD-ROM.
安裝:
-如果你要運行於Windows在可於此下載, 解開並執行liveusb-creator.exe: liveusb-creator-3.2.zip
-然而如果要運行於Linux的話, 以Fedora9/10來說, 可直接透過yum安裝: # yum install liveusb-creator
測試:
Under Windows XP SP3
1. 插入USB device
2. Fdisk/Format USB device 為單一主要分割區, 格式為FAT32 (目前只能運作於FAT32/EXT)
3. 執行liveusb-creator.exe
4. 選擇來源ISO: systemrescuecd-x86-1.1.5.iso
5. 選擇Target Device為USB device partition
-> Completed
之後透過USB device開機, systemrescuecd Linux正常開機且運作順利.
更多的資訊可參考官方的FAQ: https://fedorahosted.org/liveusb-creator/wiki/FAQ
安裝:
-如果你要運行於Windows在可於此下載, 解開並執行liveusb-creator.exe: liveusb-creator-3.2.zip
-然而如果要運行於Linux的話, 以Fedora9/10來說, 可直接透過yum安裝: # yum install liveusb-creator
測試:
Under Windows XP SP3
1. 插入USB device
2. Fdisk/Format USB device 為單一主要分割區, 格式為FAT32 (目前只能運作於FAT32/EXT)
3. 執行liveusb-creator.exe
4. 選擇來源ISO: systemrescuecd-x86-1.1.5.iso
5. 選擇Target Device為USB device partition
-> Completed
之後透過USB device開機, systemrescuecd Linux正常開機且運作順利.
更多的資訊可參考官方的FAQ: https://fedorahosted.org/liveusb-creator/wiki/FAQ
Thursday, January 22, 2009
Disable bug buddy in OpenSUSE11.1
這幾天OpenSUSE在X環境下(GNOME)不斷跳出bug buddy的popup message, 而我也已經將系統錯誤訊息回傳給OpenSUSE研發團隊了,但是它還是不斷地popup,有點惱人,決定先行關掉它了:
Disable bug buddy message method:
編輯家目錄下的 .profile:
vi ~/.profile
#Disable bug buddy message
export GNOME_DISABLE_CRASH_DIALOG=1
重新登入或重開機後就不再popup了.
Disable bug buddy message method:
編輯家目錄下的 .profile:
vi ~/.profile
#Disable bug buddy message
export GNOME_DISABLE_CRASH_DIALOG=1
重新登入或重開機後就不再popup了.
Tuesday, January 20, 2009
iptstate tools
利用iptstate tools你可以觀察到netfilter中每一筆connection的狀況, 真是隻好工具! 使用時請先記得將ip_conntrack kernel module 掛載起來, 否則將無任何資料顯示出來.
# modprobe ip_conntrack
http://phildev.net/iptstate/
# modprobe ip_conntrack
http://phildev.net/iptstate/
Tuesday, December 30, 2008
Linux4One for Acer Aspire One
有小萬朋友可以考慮安裝此發行版本Linux4One, 它針對小萬做了最佳化, 並包含了所有的硬體驅動程式, 且是基於Ubuntu加以修改.
http://www.linux4one.it/
http://downloads.agrilan.net/Linux4one_RC_1.iso
http://www.linux4one.it/
http://downloads.agrilan.net/Linux4one_RC_1.iso
Thursday, December 25, 2008
一樣的blog name?
最近在google search自己的blog時(不是自戀,只是在別台電腦要找一下自己以前寫的文章參考),發現到竟然有人跟我用雷同的Blog name?! 只是他是熱愛Linux的電腦癡漢,而不是同時熱愛Linux與Mac OSX的電腦癡漢 XD。
在此想聲明一下那個人不是我唷!呵呵~那不是我的私生活呀~~~ 大家千萬別誤會。
Wednesday, December 24, 2008
Monday, December 22, 2008
Add third-party repository for openSUSE 11.1
Step:
# zypper addrepo --repo http://packman.mirrors.skynet.be/pub/packman/suse/11.1/Packman.repo
# zypper addrepo --repo http://packman.mirrors.skynet.be/pub/packman/suse/11.1/Packman.repo
Packman is the most popular third-party repository available for openSUSE. It contains many packages that aren't in the openSUSE version; either because they cannot be included for legal reasons, because the distribution contains an older version, or simply because it was never packaged for the distribution release.
This is the repository where you can acquire the relevant mp3 and other codecs, as well as many multimedia applications (such as mplayer), torrent clients, games, etc...
之後透過yast的Software/Software Management來安裝所需要的套件就方便了許多.Thursday, December 18, 2008
Monitor Linux machine status (cpu, memory, traffic) via MRTG
有興趣的朋友, 請到以下的連結download小弟拙作:
http://www.nakido.com/B8DD850DCFA3C65697D5C5371559FBE6E6EA2E55
Note: 文章中的cpu.cfg與mem.cfg是參考阿駕零零壹 © 學習筆記 加以修改.
http://www.nakido.com/B8DD850DCFA3C65697D5C5371559FBE6E6EA2E55
Note: 文章中的cpu.cfg與mem.cfg是參考阿駕零零壹 © 學習筆記 加以修改.
Tuesday, December 16, 2008
Friday, December 05, 2008
Fedora10: 在滑鼠右鍵中增加"終端機"
Thursday, December 04, 2008
Clonezilla
昨天在逛Linux today時, 無意中發現到有篇介紹Clonezilla的文章, 看完後感到非常有興趣, 所以就連到Clonezilla official website, 猛然發覺這套軟體是"MIT"的, 台灣人製造的哩! 當然要給它推一下.
Clonezilla經過帽客實際的測試過後, 的確是非常好用又簡單, 我採用的備份政策是backup full HD to remote samba server, 並用Virtualbox故意建立一個比原本HD還大容量的HD來測試從Samba server restore full HD, 結果完全沒有出錯.
測試的作業系統是Fedora10, file system是ext3與swap.
下一次我想試看看:
-Backup/restore specify partition via remote file server.
-Backup/restore OSX10.5.5 (HFS+)
Clonezilla經過帽客實際的測試過後, 的確是非常好用又簡單, 我採用的備份政策是backup full HD to remote samba server, 並用Virtualbox故意建立一個比原本HD還大容量的HD來測試從Samba server restore full HD, 結果完全沒有出錯.
測試的作業系統是Fedora10, file system是ext3與swap.
下一次我想試看看:
-Backup/restore specify partition via remote file server.
-Backup/restore OSX10.5.5 (HFS+)
Subscribe to:
Posts (Atom)






