2009年5月12日 星期二

Install Sun Java 6

1.Install sun java6 sdk
# sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

2.Setup java6 as default java version
# sudo update-java-alternatives -s java-6-sun

3.defines the default system JVM search order
# vim /etc/jvm
insert the line at top of the file /etc/jvm
/usr/lib/jvm/java-6-sun

4.Setup the environment variable
# sudo vi $HOME/.bash_profile
add lines at the bottom of the file
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin

5.confirm jdk version
#java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

6.write HelloWorld.java to test java runtime environment
# vim HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

7. compile and run java program
# javac HelloWorld.java
# java HelloWorld
Hello, World!

Installing Aptana Studio Standalone on Ubuntu gaunty 32bit

1.Download aptana linux version and unzip it in to /Aptana folder
2.create a txt file named aptana.sh and chmod 700 for it
#vim aptana.sh

insert lines below
#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1.3
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
~/aptana/AptanaStudio -vm /usr/lib/jvm/java-6-sun/jre/bin/java
#chmod 700 aptana.sh

3.goto the url to download xulrunner 1.8
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.1.3/contrib/linux-i686/xulrunner-1.8.1.3.en-US.linux-i686-20080128.tar.gz

4.mkdir a folder in aptana folder and tar the xulrunner-1.8.1.3.en-US.linux-i686-20080128.tar.gz
#sudo mkdir /Aptana/xulrunner-1.8.1.3

5.copy all contents from xulrunner to /usr/lib/xulrunner-1.8.1.3
#sudo cp -r xulrunner/* /usr/lib/xulrunner-1.8.1.3

xine dvd player

#sudo apt-get install xine-ui
install xine lib

#sudo aptitude install gxine
install xine interface for gui control

Install inkscape for panel svg icon

#sudo apt-get install inkscape
installion inkscape software to make icon of svg style

2009年5月10日 星期日

install messager for ubuntu

#sudo apt-get install kopete

The best messagener for kde with camera and transfer.

2009年5月8日 星期五

mount windows 2003 share folder

#mount -t cifs -o username=$user,password=$pass //$windows/share /mnt/smb

$user== username in windows platform
$pass== username's password

2009年5月3日 星期日

install ruby on interpid version

#sudo sudo apt-get install ruby irb rdoc ri

#ruby -v
confirm ruby version

#irb
enter ruby interpreter