Zip a Folder in Unix

zip -9 -r {zip file} {folder name}

To zip a single file:

zip -9 {zip file} {filename}

Use “-9” for best compression. The compressed file works fine with Windows XP compression tool.


How to run VNC server on Android mobile device

There are two familiar VNC servers for Android devices:

Droid VNC server

FB VNC server

to run fbvncserver on real not rooted device you must do:

1. copy fbvncserver to /data/local
2. run fbvncserver: type adb shell data/local/fbvncserver (now server is running on port 5901). Maybe you will see permission denied error, so type adb shell, than cd to data/local and type chmod 777 fbvncserver
3. run adb forward tcp:5901 tcp:5901
4. run for example xvncviewer or any VNC viewer, and connect to localhost::5901