How to install Apache-Tomcat

first-step
download JDK disini
# chmod +x jdk-1_5_0_22-linux-amd64-rpm.bin
# sh jdk-1_5_0_22-linux-amd64-rpm.bin
# ln -s /usr/java/jdk1.5.0_22/ /usr/lib/jdk
# export JAVA_HOME=/usr/lib/jdk/

download apache-tomcat
http://archive.apache.org/dist/tomcat
download tomcat-administration 
download apache-tomcat disini
karena menggunakan JDK download juga
apache-tomcat-compact 

kemudian ekstrak
# tar xvf apache-tomcat-7.0.12.tar.gz
# mv apache-tomcat-7.0.12/* /usr/tomcat/
mkdir /usr/tomcat
export CATALINA_PID=/var/run/tomcat.pid
vim /etc/init.d/tomcat
chmod a+x /etc/init.d/tomcat
chkconfig --add tomcat
chkconfig tomcat on

bridging network IP

Redhat base

paket yang diinstall

# rpm -qa|grep bridge
bridge-utils-1.1-2
# cd /etc/sysconfig/network-scripts
# vi ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BRIDGE=br0
ONBOOT=yes

# vi ifcfg-br0
DEVICE=br0
TYPE=bridge
BOOTPROTO=static
IPADDR=192.168.1.99
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes

setelah configure selesai
restart network
# /etc/init.d/network restart

ubuntu base
paket yang diinstall
$ sudo dpkg -l |grep bridge
ii  bridge-utils      1.4-5ubuntu2    Utilities for configuring the Linux Ethernet bridge

$ sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
        address 192.168.1.99
        netmask 255.255.255.0
        gateway 192.168.1.1

auto br0
iface br0 inet static
        address 192.168.1.99
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth0

restart network
$ sudo /etc/init.d/networking restart
atau
$ sudo /etc/init.d/networking force-reload

VirtualBox: install extension Pack Vbox

download VirtualBox Extension-Pack

http://download.virtualbox.org/virtualbox/4.0.8/Oracle_VM_VirtualBox_Extension_Pack-4.0.8-71778.vbox-extpack

install VirtualBox Extension-Pack
hafiz:~$ vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.8-71778.vbox-extpack


hafiz:~$ vboxmanage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      4.0.8
Revision:     71778
Description:  USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:



untuk delete
hafiz:~$ vboxmanage extpack uninstall 'Oracle VM VirtualBox Extension Pack'