I just noticed that it could be more effective if I wrote scripts on my Cellphone rather than PC.
1. Installing software we need (The Perl shipped with N900 is 5.8.3 and do not contain the perl-modules. Please enable
SDK repo to install the whole perl).
apt-get install bash vim
2. Change the enviroment.
1) bash
Change /etc/passwd first as root to let "user" got bash as default shell.
As x-term start a bash in non-interactive mode. So we need edit .profile file to change PS1 and enable the colorful ls output.
PS1='[\u@\W]\$ '
umask 022
2) vim
vim .vimrc
set nu
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
syntax on
filetype plugin off
filetype indent off
set grepprg=grep\ -nH\ $*
set shellslash
set mouse =
set nohlsearch
set noincsearch
set tw=0
set formatoptions=l
set lbr
3. Enable FN + Arrow to input {} and []
Replace the last closure of /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 as below:
xkb_symbols "arrows_4btns" {
key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Up, braceleft ] };
key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Left, bracketleft ] };
key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Down, braceright] };
key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Right, bracketright ] };
};
If you want to ues another key instead of [] and {}. Please check
http://cgit.freedesktop.org/xkeyboard-config/tree/symbols/us for the keyname.
4. Modify the softkey in the x-term as this picture:

Just execute the following commands as user account in shell:
gconftool-2 -s /apps/osso/xterm/keys \
-t list --list-type=string \
"[Tab,Escape,bar,greater,dead_grave,percent,dead_tilde]"
gconftool-2 -s /apps/osso/xterm/key_labels \
-t list --list-type=string "[Tab,Esc,|,>,\`,%,~]"
If you want to ues another key. Please check
http://cgit.freedesktop.org/xkeyboard-config/tree/symbols/us for the keyname.