Notes: March 2004 Archives

好用的 X window 字型管理工具 ttfm

| | Comments (0)

http://www.study-area.org/tips/setfont/index.html

wget ftp://cle.linux.org.tw/pub/CLE/i386/RedHat/RPMS/ttfm-1.0-6.i386.rpm
rpm -ivh ttfm-1.0-6.i386.rpm

自 MS Windows 取得 mingliu.ttc
ttfm --add mingliu.ttc

編輯 /etc/X11/XF86Config-4
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/ja/TrueType"
FontPath "/usr/share/fonts/zh_TW/TrueType"
# FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "GLcore"
Load "dri"
Load "glx"
Load "extmod"
# Load "freetype"
# Load "type1"
Load "xtt" #←加入這一列
EndSection

裝完細明體, 設好後, 字會糊糊的, 若是用 GNOME, 要修改
/etc/gnome/gnomerc
把 XFT 拿掉...
在 gnome-session 前加入
export GDK_USE_XFT=0

修改預設輸入法為倉頡
編輯 /etc/chinese/xcin/xcinrc
把 DEFAULT_IM 改為 cj

(define zh_TW.Big5
'((DEFAULT_IM "cj")

先準備一張 intersil chip 的 pcmcia wireless 卡
以下是從 hostap driver 裡的 hostap_cs.conf 裡面列舉的卡(參考文章最後)

編譯 kernel
kernel 不要用 patch 的方式 (我沒試成功過), 獨立 make modules, 用 load modules 方式載入
make menuconfig
開啟 General setup ---> PCMCIA/CardBus support
開啟 Network device support ---> Wireless LAN (non-hamradio) ---> [*] Wireless LAN (non-hamradio) 其下設定不要勾選(因為要用模組載入)

編譯 hostap driver
wget http://hostap.epitest.fi/releases/hostap-driver-0.3.7.tar.gz
解開 make
make KERNEL_PATH=/usr/src/linux-2.4.xx
在 driver/modules 會產生所需的 hostap .o 檔
將 .o 檔 copy 至 /lib/modules/`uname -r`
cp driver/etc/hostap_cs.conf /etc/pcmcia

安裝 wireless tools
可直接使用 wireless-tools rpm 或到 Wireless Tools for Linux 下載 tar ball 安裝

使用新編好的 kernel 開機, 啟動 pcmcia (service pcmcia start)

AP 的 prototype 就出來了

使用 iwpriv 作 ACL
iwpriv wlan0 maccmd
   0: open policy for ACL (default)
   1: allow policy for ACL
   2: deny policy for ACL
   3: flush MAC access control list
   4: kick all authenticated stations

iwpriv wlan0 addmac
   add mac addr into access control list

iwpriv wlan0 delmac
   remove mac addr from access control list

ref. Host AP website | Host AP readme

2005-04-08 update

imap make procedure

| | Comments (0)

make ipop3d imapd
make slx SSLTYPE=nopwd

make ipop3sd imapsd
make slx SSLTYPE=none

fatal: no SASL authentication mechanisms

| | Comments (0)

缺少 plugin
裝上 libsasl2-plug-plain-2.1.12-1mdk.i586.rpm
libsasl2-plug-crammd5-2.1.12-1mdk.i586.rpm
即可

-rw-r--r-- 1 nobody nogroup 11101 3月 6 2003 libsasl2-plug-anonymous-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 12813 3月 6 2003 libsasl2-plug-crammd5-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 25606 3月 6 2003 libsasl2-plug-digestmd5-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 15567 3月 6 2003 libsasl2-plug-gssapi-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 11382 3月 6 2003 libsasl2-plug-login-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 14042 3月 6 2003 libsasl2-plug-ntlm-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 32779 3月 6 2003 libsasl2-plug-otp-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 11435 3月 6 2003 libsasl2-plug-plain-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 12723 3月 6 2003 libsasl2-plug-sasldb-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 29700 3月 6 2003 libsasl2-plug-srp-2.1.12-1mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 26794 3月 6 2003 libsasl7-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 8294 3月 6 2003 libsasl7-plug-anonymous-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 11149 3月 6 2003 libsasl7-plug-crammd5-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 19790 3月 6 2003 libsasl7-plug-digestmd5-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 11964 3月 6 2003 libsasl7-plug-gssapi-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 9317 3月 6 2003 libsasl7-plug-login-1.5.28-5mdk.i586.rpm
-rw-r--r-- 1 nobody nogroup 9345 3月 6 2003 libsasl7-plug-plain-1.5.28-5mdk.i586.rpm

Pre-requisites
The first thing you need to do is have a version of postfix installed that has SASL support enabled. Recently, MandrakeSoft issued updates to postfix that provided fixed SASL support for 8.1 and introduced SASL support in 8.0 (for more information, view the advisory, MDKA-2002:003). These versions of postfix (postfix-20010228-6.2mdk for 8.0 and postfix-200102280-15.2mdk for 8.1) provide proper SASL support and can be upgraded via MandrakeUpdate. You will also need the Cyrus SASL library files, which you can also obtain from updates due to a security fix (MDKSA-2002:018). These updates are available for 8.0 and 8.1 also.

You will need to have the basic components installed: cyrus-sasl and libsasl7. To enable the authentication methods, you will need the appropriate plugin. For example, to enable CRAM-MD5 authentication, you will need to install the libsasl7-plug-crammd5 package; for PLAIN authentication, you will need the libsasl7-plug-plain package. You can install the specific plugin you wish, or simply download and install all of the plugins (anonymous, crammd5, digestmd5, login, or plain).

Once you have upgraded and/or installed the appropriate packages, you're ready to configure postfix and Cyrus SASL. 8.2 users can install postfix and the SASL packages from their install CDs.

smtp auth check

| | Comments (0)

[root@test root]# printf 'pank\0pank\0test' | mmencode
cGFuawBwYW5rAHRlc3Q=
[root @test root]# telnet localhost 25
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 teco-ia.com.tw ESMTP Postfix
ehlo 0
250-teco-ia.com.tw
250-PIPELINING
250-SIZE 20971520
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5
250-XVERP
250 8BITMIME
auth plain cGFuawBwYW5rAHRlc3Q=
235 Authentication successful <==如果出現這一行就表示你的 SMTP 已經運作正常
quit

(使用這個方法測試時, 用數字 0-7 開頭的密碼會認證錯誤, 原因不明.
而事實上, 使用上述密碼在 smtp auth 上是沒問題的)

ref.
http://pank.org/blog/archives/000170.html

Postfix SASL

| | Comments (0)

master.conf 裡

smtp inet 這一行的參數, 第二個和第三個為 n, sasl 功能才會正常

smtp inet n n n - -

Pages

March 2008

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

About this Archive

This page is a archive of entries in the Notes category from March 2004.

Notes: February 2004 is the previous archive.

Notes: April 2004 is the next archive.

Find recent content on the main index or look in the archives to find all content.