4/03/2009

cisco vpn

/opt/cisco/vpn/bin/

vpn connect [host] user [username]

3/31/2009

Firefox add-ons

DOM Inspector
Firebug
Foxmarks(xmarks)
TwitterFox
User Agent Switcher
Web Developer
New Tong Wen Tang

12/13/2008

Trash can

Location of Ubuntu's trash can.
~/.local/share/Trash

11/08/2008

Notes about setting up a vnc server and account

How to set up a vnc server and account

first you have to create a linux account for the user.
And than edit /etc/sysconfig/vncservers to add a server for the user.
Don't forget to open a port in iptables for vnc remote login.
The must important is, the user have to login by ssh to reset the vnc password before login by vnc.
Setting vnc password will create a .vnc directory and set up some vnc environment configures.

Now, you can login by vnc.

BUT, while login by vnc, users may found they are in a "twm" desktop style.
It's a little ugly and not so esay to use.
If you want to login in a normal desktop, editing ~/.vnc/xstartup.
Add two lines into the file.

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

This can give you login in normal desktop.

10/19/2008

在ubuntu中使用trackpoint的中間滾輪功能

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “Emulate3Buttons” “true”
Option “ZAxisMapping” “4 5″
Option “EmulateWheel” “true” < == add this line
Option “EmulateWheelButton” “2″ <== add this line
EndSection

Configure gnome on ubuntu

Add trash can on the desktop

1. run gconf-editor
2. apps/nautilus/
3. set trash_icon_visible as true

10/18/2008

Android Programming Tutorial

Android程式設計入門: http://blogoscoped.com/archive/2007-11-19-n27.html
Android論壇: http://www.anddev.org/index.php
我的第一支Android程式: http://blog.bumblemachine.com/archives/15

10/09/2008

Install/Update JDK on Linux

  • sh jdk-6u7-linux-i586-rpm.bin
  • alternatives --install /usr/java/jdk1.6.0_07/bin/java java /usr/java/latest/bin/java 2
  • alternatives --config java

8/05/2008

grapevine

grapevine

1. 葡萄藤
2. (常與the連用)消息途徑,祕密來源

eg. I've heard on the grapevine that ......

8/01/2008

使用yum更新、安裝或刪除套件

yum為redhat及fedora之中的套件維護程式。
可幫助使用者執行套件的更新、安裝及刪除等等。
並會自動處理相依性的問題。
其設定檔位於/etc/yum.conf

  • yum update [套件名稱]: 更新套件
  • yum update: 更新系統中所有套件
  • yum search [套件名稱]: 搜尋套件
  • yum install [套件名稱]: 安裝套件
  • yum remove [套件名稱]: 刪除套件
  • yum clean: 清除/var/cache/yum之中的套件暫存檔
  • yum clean all: 清除/var/cache/yum之中的所有套件暫存檔
  • yum list updates: 列出可更新的套件
  • yum list installed: 列出已安裝的套件

7/08/2008

Clustering

Try more clustering size
Taipei: 128(96), 64(192), 32(384), 16(768), 8(1530)
Random: 128(72), 64(144), 32(288), 16(576), 8(1152)