Install phpBB language

1) Download packages from the following page
http://www.phpbb.com/downloads.php

Two files: language files and skin files
http://prdownloads.sourceforge.net/phpbb/lang_chinese_simplified.tar.gz
http://prdownloads.sourceforge.net/phpbb/subSilver_chinese_simplified.tar.gz

2) Uncompress the language file

$ tar -xvzf lang_chinese_simplified.tar.gz
$ tar -xvzf subSilver_chinese_simplified.tar.gz

3) Install the language files

$ cp -R lang_chinese_simplified phpBB2/language
$ cp -R /tmp/subSilver/images/lang_chinese_simplified templates/subSilver/images/

Awk

Single quote in awk
[sourcecode]awk ‘{ print ",", foo$1foo }’ foo="’" file[/sourcecode]

Delimiter in awk -F, and the last column $NF
cat /etc/passwd | awk -F: ‘{print $5}’ | awk -F, ‘{print $NF}’

Field separator
[sourcecode]awk ‘{ FS = "\t"; print $3 }’ file[/sourcecode]

Line number: NR

Sum the number in a column, say column 1
[sourcecode]awk ‘{ sum+=$1 } END {print sum}’ file[/sourcecode]

VNC

Here are the three steps that I run VNC at my home.

1. Your Linux system might already have the software installed (type “which vncpasswd” to tell). If not, download the software from http://www.realvnc.com, and install it on your Linux and windows, respectively.

2. Launch from the server side (Linux)
$ vncpasswd
$ vncserver

3. Lanuch from the client (windows)
when prompted the server name, type linux_host_name:1, where linux_host_name is your linux box name and 1 is the port number for the vncserver, which could be a different port number sometime (you can tell it from the “vncserver” output at the previous step).

4. set kde

$ vi .vnc/xstartup

replace
twm &
with
startkde &