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
最近釋出的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』
(本篇適用於已支援完整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的字體
這兩天設定好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位置不對所導致
裝了那麼多次都沒有出問題,這一次竟然出這種奇怪的問題…=_=
在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