Default starting Federa session

To make KDE the dominant Desktop Environment instead of GNOME

edit /etc/inittab
at the bottom you’ll find a line that reads x:5:respawn and so on
it’ll probably point at prefdm
make it point at /usr/bin/kdm instead

Another solution:

Edit /etc/sysconfig/desktop to contain

DESKTOP=KDE
DISPLAYMANAGER=KDE

This will make KDE the default desktop and kdm the default login manager.

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]