You have to install some .so files to make the vpn works on Ubuntu 9.10 64-bit version
Follow the following steps:
1. sudo apt-get install ia32-libs lib32nss-mdns
2. Download firefox from www.mozilla.com, we need so lib in the package.
3. Copy the following .so files to /opt/cisco/vpn/lib
# cd firefox
# sudo cp libnssutil3.so /opt/cisco/vpn/lib/
# sudo cp libplc4.so /opt/cisco/vpn/lib/
# sudo cp libplds4.so /opt/cisco/vpn/lib/
# sudo cp libnspr4.so /opt/cisco/vpn/lib/
# sudo cp libsqlite3.so /opt/cisco/vpn/lib/
# sudo cp libnssdbm3.so /opt/cisco/vpn/lib/
# sudo cp libfreebl3.so /opt/cisco/vpn/lib/
4. Lastly, copy entire folder of firefox to /usr/local/
Try vpn connect again.
11/08/2009
How to make Cisco AnyConnect vpn works on Ubuntu 9.10 64-bit
11/05/2009
Forget Ubunto login password
What to do when you forget the login password in Ubuntu
Root privilege is required to reset the password. But in generally, Ubuntu not allow you to login as a root. You can use recovery boot to get the root privilege using the following steps.
1. Reboot the computer.
2. In Grub boot menu, press "e" key. If the menu was not show defaultly, press "ESC" when booting will go to Grub boot menu if your system is pre 9.10 or hold "SHIFT" key when booting will invoke the menu if the system is 9.10 or after.
3. In boot menu, select recovery mode.
4. After boot up, it will show some options, select "root prompt"
5. Now you will get a shell with root privilege, use passwd "username" to reset the password.
11/04/2009
Enable New Lenovo ThinkPad USB Keyboard with Trackpoint on Ubuntu 9.10
How to enable the middle key scrolling function of Lenovo ThinkPad USB Keyboard with Trackpoint on Ubuntu 9.10?
Add a file named mouse-wheel.fdi at /etc/hal/fdi/policy/ with the following content.
<match key="info.product" string="Lite-On Technology Corp. ThinkPad USB Keyboard>
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>
Restart the computer!
7/21/2009
Android 1.5 source code build error in Ubuntu 9.04
Issue:
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/sockets.o] Error 1
Solution:
Modify "external/qemu/Makefile.android"
Original:
# this is needed to build the emulator on 64-bit Linux systems
ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
MY_CFLAGS += -Wa,--32
endif
Modified:
# this is needed to build the emulator on 64-bit Linux systems
ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
MY_CFLAGS += -Wa,--32 -D_GNU_SOURCE
endif
4/03/2009
12/13/2008
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/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/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: 列出已安裝的套件
9/02/2007
在Linux中使用Trackpoint中間滾輪功能
- 在/etc/X11/xorg.conf之中加入以下文字
- Restart X
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "on"
Option "Emulate3TimeOut" "50"
Option "EmulateWheel" "on"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "ZAxisMapping" "4 5"
EndSection

