Currently browsing tag

Linux, Page 15

Kerberos logs rotate

One day, I found one of our Kerberos servers was out of space. I found Kerberos does not handle logs rotate by …

HOWTO Compile PECL json extensions?

Step 1 : Download json extensions from http://pecl.php.net/package/json Step 2 : Extracting json-1.2.1.tgz Step 3 : Compiling PECL json extensions by following …

FreeRADIUS and Kerberos

When I use freeradius-1.1.3-1.2.el5 on SL5(RHEL5) to authenticate with Kerberos, it always displayed “Segmentation fault”. The error messages like below: modcall: group …

追蹤某程式執行狀態

#strace ./localtime execve(“./localtime”, [“./localtime”], [/* 41 vars */]) = 0 brk(0) = 0x1dc7d000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7b22dd2000 uname({sys=”Linux”, …

Show shared library dependency in Linux

在Linux內找某程式所依賴的 library. #ldd /usr/bin/w libproc-3.2.7.so => /lib64/libproc-3.2.7.so (0x00000037afa00000) libc.so.6 => /lib64/libc.so.6 (0x00000037b0800000) /lib64/ld-linux-x86-64.so.2 (0x00000037af600000)

設定 OpenAFS 備份 Volume

#vos addsite -server XXXXX3 -partition a -id root.afs #vos release -id root.afs #vos examine -i root.afs root.afs 536870912 RW 4 K On-line …

設定 OpenAFS 快取的大小

如果我要設定2GB快取. 就修改 /etc/rc.d/init.d/afs 檔案.設定 $CACHESIZE 值為 2 * 1024 * 1024. 如下 : # vi /etc/rc.d/init.d/afs …(omit) CACHEINFO=${CACHEINFO:-/usr/vice/etc/cacheinfo} CACHE=${CACHEDIR:-/usr/vice/cache} AFS=${AFSDIR:-/afs} CACHESIZE=2097152 …(omit)

設定 OpenAFS 加密

可以用 fs getcrypt 指令檢查目前你的 OpenAFS 是否有加密. # fs getcrypt Security level is currently clear. 如果出現上列訊息就代表沒加密. 可以使用 fs setcrypt on 指令加密. # fs …

Bash Guide for Beginners

記錄一下這幾個連結 http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html http://ppewww.physics.gla.ac.uk/~chrisc/SUPA/lecturenotes/bash/bash.html 常有機會寫 bash 但是bash還是不熟悉.