Archive

2006年2月 的Archive

[Postfix] 基礎安裝設定篇

2006年2月20日 ceciltsai 尚無評論

cd /usr/ports/mail/postfix
enable SASL2 and TLS
cd /usr/ports/security/cyrus-sas2-saslauthd
make install clean

main.cf中,
要把inet_ineterfaces = all 打開

接下來的參考:
Freebsd+postfix+sasl2
FreeBSD + Postfix & Maildir + Courier-imap + Squirrelmail

Categories: Uncategorized Tags:

[FireFox]1.5版的memory leak改善法之一

2006年2月18日 ceciltsai 尚無評論

最近釋出的FireFox1.5版,一直有著很吃記憶體的問題
接續推出的1.5.0.1版,雖然在自動釋放上有改善
但是記憶體還是吃很大

要改善的話,可以從關掉每個tab所留住的history下手(about:config):

關掉history功能(-1為開啟、0為關閉):

browser.sessionhistory.max_total_viewers

減少保留的history數:

browser.sessionhistory.max_entries

ref:
About the Firefox 『memory leak』

Categories: Uncategorized Tags:

FreeBSD遠端Console設定UTF-8環境

2006年2月14日 ceciltsai 尚無評論

(本篇適用於已支援完整l18n的FreeBSD5以上版本)

首先,在login shell中加入UTF-8的設定:
bash:

修改.bashrc,加入
LANG=zh_TW.UTF-8 ; export LANG
LC_CTYPE=zh_TW.UTF-8 ; export LC_CTYPE
MM_CHARSET=utf8 ; export MM_CHARSET
LC_ALL=zh_TW.UTF-8 ; export LC_ALL

tcsh/csh:

修改.cshrc,加入:
setenv LC_ALL=zh_TW.UTF-8

screen中加入:

defutf8 on

最後是修改putty中的UTF-8設定:

Windows→Translation→charset,改為UTF-8
Windows→Appreance→FontSettings,改成有big5的字體

Categories: Uncategorized Tags:

mrtg "Can't Execute '/rateup'"

2006年2月9日 ceciltsai 尚無評論

這兩天設定好MRTG之後,出現了奇怪的問題:

2006-02-09 17:45:01 — Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 775.
2006-02-09 17:45:01 — Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 775.
2006-02-09 17:45:01 — ERROR: Can’t Execute ‘/rateup’

後來在google上面找了一陣子,找到以下的解法:

*/5 * * * * mrtg cd /tmp; /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg –logging /var/log/mrtg.log

症狀就莫名其妙的好了…

研判可能是因為mrtg的initial login位置不對所導致
裝了那麼多次都沒有出問題,這一次竟然出這種奇怪的問題…=_=

Categories: Uncategorized Tags:

防火牆:ipf(ipfilter)篇

2006年2月8日 ceciltsai 尚無評論

在kernel中加入下面幾行:

options ipfilter
options ipfilter_log

在rc.conf中加入以下幾行啟動ipf:

ipfilter_enable=』YES』
ipnat_enable=』YES』
ipmon_enable=』YES』

參考資料
FreeBSD HandBook:The IPFILTER (IPF) Firewall
IPNAT+Ipfilter+Bridge 超級防火牆
IPFilter-利用IPfilter輕鬆達成NAT

Categories: Uncategorized Tags: