Instalasi Java Compiler, Apache Ant, Apache Tomcat, MySQL

| Posted in Apache, GPS, Java, Linux Server, Project

- Implementasi Sistem GPS(Global Positioning System) Tracking berbasis Linux. Tutorial ini dibuat dalam 2 artikel, yang pertama :

1. Instalasi Java Compiler, Apache Ant, Apache Tomcat, MySQL.
2. Instalasi OpenGTS (Open Source GPS Tracking System).

Proyek ini saya kerjakan untuk sebuah perusahaan rental mobil untuk memonitor status semua kendaraannya.  Maklum menjelang lebaran banyak pinjaman mobil kata yang punya.  Ownernya  memang senang IT dan lebih suka memiliki sistem tracking sendiri daripada menyewa jasa perusahaan yang menyewakan perangkat sudah jadi. Disamping untuk memonitor lokasi mobil2 nya, dia juga mau pasang alat GPS pada tas anaknya yang masih sekolah, sehingga dapat mengetahui pergerakan anaknya. Orang tua yang baik nih.  Pasca instalasi pada artikel 1 dan artikel 2 aku mentraining staffnya untuk bisa memasang perangkat GPS pada mobil dan administrasi sistem open GTS ini.

Instalasi pada Artikel pertama ini membutuhkan software :

  • Sistem operasi menggunakan Debian Lenny(5.0.2),

  • Java Compiler Sun’s Java JDK,
    OpenJDK Server VM (build 1.6.0_0-b11, mixed mode).

  • Apache Ant version 1.7.0

  • Apache Tomcat 5.5

  • JAVA MAIL API

  • MySQL 5, MySQL-Connector-Java

  • OpenGTS 2.1.3 (Dijabarkan lebih lanjut pada artikel kedua, implementasi/koneksi device perangkat GPS pada mobil rental ke server GPS Tracking).

Kebutuhan lain pada artikel 1 :  Hardware server IBM, IP Publik dengan internet dedicated, Domain perusahaan. Instalasi live. Pada artikel kedua membutuhkan perangkat GPS dan akan dijelaskan lebih lanjut pada artikel ke 2.

Server IBM yang digunakan sebagai Server GPS Tracking sudah diinstall sistem operasi Debian Lenny 5.0.2.

rentcar:/home/gtoms# uname -a
Linux rentcar 2.6.26-2-686 #1 SMP Sun Jul 26 21:25:33 UTC 2009 i686 GNU/Linux
rentcar:/home/gtoms# cat /etc/debian_version
5.0.2

Selanjutnya memulai Instalasi Java Compiler, Apache Ant, Apache Tomcat, MySQL, MySQL Conector Java, Java Mail API yang berfungsi sebagai rumah/pendukung bisa berjalannya OpenGTS 2.1.3

I. JAVA COMPILER

Java dibutuhkan dalam proses instalasi ini untuk pemrograman applet yang berjalan di web browser menjadi bahasa pemrograman kelas dunia untuk pengembangan aneka ragam aplikasi komputer yang berjalan di bermacam-macam perangkat mulai dari handheld devices seperti, handphone, PDA (Personal Digital Assistant) sampai aplikasi tersebar skala enterprise di beragam komputer server.  Pada sistem Tracking ini hanya dibutuhkan Java Development Kit (JDK) Bundles yang berfungsi untuk mengcompile Java Code.  Di dalam JDK  sudah ada JRE (Java Runtime Environment). JRE ini yang akan memproses byte code yang dihasilkan dari interpenter java. Tugas interprenter java adalah mengcompile source.java menjadi source.class

Berikut proses instalasinya yang didalam sistem Debian Lenny sudah terdapat source program JDK versi 1.6

rentcar:/usr/local# apt-get install openjdk-6-jdk
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
defoma fontconfig fontconfig-config java-common libaccess-bridge-java libasound2 libcups2 libexpat1 libfontconfig1 libfontenc1 libfreetype6 libgif4
libice-dev libice6 libjpeg62 liblcms1 libpng12-0 libpthread-stubs0 libpthread-stubs0-dev libsm-dev libsm6 libx11-dev libxau-dev libxcb-xlib0-dev
libxcb1-dev libxdmcp-dev libxfont1 libxi6 libxt-dev libxt6 libxtst6 openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino ttf-arphic-uming
ttf-baekmuk ttf-bengali-fonts ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-devanagari-fonts ttf-gujarati-fonts ttf-indic-fonts ttf-kannada-fonts
ttf-kochi-gothic ttf-malayalam-fonts ttf-oriya-fonts ttf-punjabi-fonts ttf-sazanami-mincho ttf-tamil-fonts ttf-telugu-fonts tzdata-java x-ttcidfont-conf
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xfonts-encodings xfonts-utils xtrans-dev
Suggested packages:
defoma-doc dfontmgr psfontmgr equivs libasound2-plugins cups-common libfreetype6-dev liblcms-utils openjdk-6-demo openjdk-6-source icedtea-gcjwebplugin
libnss-mdns sun-java6-fonts rhino-doc xserver-xfree86 xserver xfs ttf-kochi-mincho ttf-kochi-mincho-naga10
Recommended packages:

libft-perl ca-certificates-java
The following NEW packages will be installed:
defoma fontconfig fontconfig-config java-common libaccess-bridge-java libasound2 libcups2 libexpat1 libfontconfig1 libfontenc1 libfreetype6 libgif4
libice-dev libice6 libjpeg62 liblcms1 libpng12-0 libpthread-stubs0 libpthread-stubs0-dev libsm-dev libsm6 libx11-dev libxau-dev libxcb-xlib0-dev
libxcb1-dev libxdmcp-dev libxfont1 libxi6 libxt-dev libxt6 libxtst6 openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino
ttf-arphic-uming ttf-baekmuk ttf-bengali-fonts ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-devanagari-fonts ttf-gujarati-fonts ttf-indic-fonts
ttf-kannada-fonts ttf-kochi-gothic ttf-malayalam-fonts ttf-oriya-fonts ttf-punjabi-fonts ttf-sazanami-mincho ttf-tamil-fonts ttf-telugu-fonts tzdata-java
x-ttcidfont-conf x11proto-core-dev x11proto-input-dev x11proto-kb-dev xfonts-encodings xfonts-utils xtrans-dev
0 upgraded, 61 newly installed, 0 to remove and 2 not upgraded.
Need to get 86.4MB of archives.
After this operation, 224MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://kebo.vlsm.org lenny/main libice6 2:1.0.4-1 [46.6kB]
Get:2 http://security.debian.org lenny/updates/main openjdk-6-jre-lib 6b11-9.1+lenny2 [5271kB]
Get:3 http://kebo.vlsm.org lenny/main x11proto-core-dev 7.0.12-1 [89.6kB]
Get:4 http://kebo.vlsm.org lenny/main libice-dev 2:1.0.4-1 [55.1kB]
Get:5 http://kebo.vlsm.org lenny/main libsm6 2:1.0.3-2 [22.3kB]
Get:6 http://kebo.vlsm.org lenny/main libsm-dev 2:1.0.3-2 [24.7kB]
Get:7 http://kebo.vlsm.org lenny/main libxau-dev 1:1.0.3-3 [15.4kB]
Get:8 http://kebo.vlsm.org lenny/main libxdmcp-dev 1:1.0.2-3 [19.9kB]
Get:9 http://kebo.vlsm.org lenny/main x11proto-input-dev 1.4.3-2 [16.0kB]
Get:10 http://kebo.vlsm.org lenny/main x11proto-kb-dev 1.0.3-3 [27.1kB]
Get:11 http://kebo.vlsm.org lenny/main xtrans-dev 1.2-2 [75.4kB]
Get:12 http://kebo.vlsm.org lenny/main libpthread-stubs0 0.1-2 [2770B]
Get:13 http://kebo.vlsm.org lenny/main libpthread-stubs0-dev 0.1-2 [3048B]
Get:14 http://kebo.vlsm.org lenny/main libxcb1-dev 1.1-1.2 [77.7kB]
Get:15 http://kebo.vlsm.org lenny/main libxcb-xlib0-dev 1.1-1.2 [14.8kB]
Get:16 http://kebo.vlsm.org lenny/main libx11-dev 2:1.1.5-2 [1700kB]
Get:17 http://security.debian.org lenny/updates/main openjdk-6-jre-headless 6b11-9.1+lenny2 [23.6MB]
Get:18 http://kebo.vlsm.org lenny/main libxt6 1:1.0.5-3 [166kB]
Get:19 http://kebo.vlsm.org lenny/main libxt-dev 1:1.0.5-3 [480kB]
Get:20 http://kebo.vlsm.org lenny/main defoma 0.11.10-0.2 [101kB]
Get:21 http://kebo.vlsm.org lenny/main ttf-arphic-uming 0.2.20080216.1-1 [9678kB]
Get:22 http://security.debian.org lenny/updates/main openjdk-6-jre 6b11-9.1+lenny2 [219kB]
Get:23 http://security.debian.org lenny/updates/main openjdk-6-jdk 6b11-9.1+lenny2 [9667kB]
Get:24 http://kebo.vlsm.org lenny/main rhino 1.7R1-2 [635kB]
Get:25 http://kebo.vlsm.org lenny/main libaccess-bridge-java 1.23.0-3 [426kB]
Get:26 http://kebo.vlsm.org lenny/main java-common 0.30 [77.0kB]
Get:27 http://kebo.vlsm.org lenny/main libcups2 1.3.8-1+lenny6 [165kB]
Get:28 http://kebo.vlsm.org lenny/main liblcms1 1.17.dfsg-1+lenny2 [103kB]
Get:29 http://kebo.vlsm.org lenny/main libfreetype6 2.3.7-2+lenny1 [372kB]
Get:30 http://kebo.vlsm.org lenny/main libasound2 1.0.16-2 [356kB]
Get:31 http://kebo.vlsm.org lenny/main libgif4 4.1.6-6 [39.4kB]
Get:32 http://kebo.vlsm.org lenny/main libjpeg62 6b-14 [86.0kB]
Get:33 http://kebo.vlsm.org lenny/main libpng12-0 1.2.27-2+lenny2 [166kB]
Get:34 http://kebo.vlsm.org lenny/main libxi6 2:1.1.4-1 [25.3kB]
Get:35 http://kebo.vlsm.org lenny/main libxtst6 2:1.0.3-1 [12.3kB]
Get:36 http://kebo.vlsm.org lenny/main libexpat1 2.0.1-4 [132kB]
Get:37 http://kebo.vlsm.org lenny/main ttf-dejavu-core 2.25-3 [1360kB]
Get:38 http://kebo.vlsm.org lenny/main ttf-dejavu-extra 2.25-3 [2982kB]
Get:39 http://kebo.vlsm.org lenny/main ttf-dejavu 2.25-3 [25.8kB]
Get:40 http://kebo.vlsm.org lenny/main fontconfig-config 2.6.0-3 [64.7kB]
Get:41 http://kebo.vlsm.org lenny/main libfontconfig1 2.6.0-3 [233kB]
Get:42 http://kebo.vlsm.org lenny/main fontconfig 2.6.0-3 [280kB]
Get:43 http://kebo.vlsm.org lenny/main libfontenc1 1:1.0.4-3 [18.0kB]
Get:44 http://kebo.vlsm.org lenny/main libxfont1 1:1.3.3-1 [146kB]
Get:45 http://kebo.vlsm.org lenny/main ttf-baekmuk 2.2-2 [11.5MB]
Get:46 http://kebo.vlsm.org lenny/main ttf-bengali-fonts 1:0.5.4 [439kB]
Get:47 http://kebo.vlsm.org lenny/main ttf-devanagari-fonts 1:0.5.4 [1647kB]
Get:48 http://kebo.vlsm.org lenny/main ttf-gujarati-fonts 1:0.5.4 [288kB]
Get:49 http://kebo.vlsm.org lenny/main ttf-kannada-fonts 1:0.5.4 [513kB]
Get:50 http://kebo.vlsm.org lenny/main ttf-malayalam-fonts 1:0.5.4 [777kB]
Get:51 http://kebo.vlsm.org lenny/main ttf-oriya-fonts 1:0.5.4 [200kB]
Get:52 http://kebo.vlsm.org lenny/main ttf-punjabi-fonts 1:0.5.4 [69.6kB]
Get:53 http://kebo.vlsm.org lenny/main ttf-tamil-fonts 1:0.5.4 [398kB]
Get:54 http://kebo.vlsm.org lenny/main ttf-telugu-fonts 1:0.5.4 [275kB]
Get:55 http://kebo.vlsm.org lenny/main ttf-indic-fonts 1:0.5.4 [6686B]
Get:56 http://kebo.vlsm.org lenny/main ttf-kochi-gothic 1.0.20030809-8 [4578kB]
Get:57 http://kebo.vlsm.org lenny/main ttf-sazanami-mincho 20040629-2 [5843kB]
Get:58 http://kebo.vlsm.org lenny/main tzdata-java 2009g-0lenny1 [147kB]
Get:59 http://kebo.vlsm.org lenny/main xfonts-encodings 1:1.0.2-3 [584kB]
Get:60 http://kebo.vlsm.org lenny/main xfonts-utils 1:7.4+1 [82.0kB]
Get:61 http://kebo.vlsm.org lenny/main x-ttcidfont-conf 31 [23.4kB]
Fetched 86.4MB in 10min7s (142kB/s)
Extracting templates from packages: 100%
Preconfiguring packages …
Selecting previously deselected package libice6.
(Reading database … 24127 files and directories currently installed.)
Unpacking libice6 (from …/libice6_2%3a1.0.4-1_i386.deb) ...
Selecting previously deselected package x11proto-core-dev.
Unpacking x11proto-core-dev (from …/x11proto-core-dev_7.0.12-1_all.deb) ...
Selecting previously deselected package libice-dev.
Unpacking libice-dev (from …/libice-dev_2%3a1.0.4-1_i386.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from …/libsm6_2%3a1.0.3-2_i386.deb) ...
Selecting previously deselected package libsm-dev.
Unpacking libsm-dev (from …/libsm-dev_2%3a1.0.3-2_i386.deb) ...
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from …/libxau-dev_1%3a1.0.3-3_i386.deb) ...
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from …/libxdmcp-dev_1%3a1.0.2-3_i386.deb) ...
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from …/x11proto-input-dev_1.4.3-2_all.deb) ...
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from …/x11proto-kb-dev_1.0.3-3_all.deb) ...
Selecting previously deselected package xtrans-dev.
Unpacking xtrans-dev (from …/xtrans-dev_1.2-2_all.deb) ...
Selecting previously deselected package libpthread-stubs0.
Unpacking libpthread-stubs0 (from …/libpthread-stubs0_0.1-2_i386.deb) ...
Selecting previously deselected package libpthread-stubs0-dev.
Unpacking libpthread-stubs0-dev (from …/libpthread-stubs0-dev_0.1-2_i386.deb) ...
Selecting previously deselected package libxcb1-dev.
Unpacking libxcb1-dev (from …/libxcb1-dev_1.1-1.2_i386.deb) ...
Selecting previously deselected package libxcb-xlib0-dev.
Unpacking libxcb-xlib0-dev (from …/libxcb-xlib0-dev_1.1-1.2_i386.deb) ...
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from …/libx11-dev_2%3a1.1.5-2_i386.deb) ...
Selecting previously deselected package libxt6.
Unpacking libxt6 (from …/libxt6_1%3a1.0.5-3_i386.deb) ...
Selecting previously deselected package libxt-dev.
Unpacking libxt-dev (from …/libxt-dev_1%3a1.0.5-3_i386.deb) ...
Selecting previously deselected package defoma.
Unpacking defoma (from …/defoma_0.11.10-0.2_all.deb) ...
Selecting previously deselected package ttf-arphic-uming.
Unpacking ttf-arphic-uming (from …/ttf-arphic-uming_0.2.20080216.1-1_all.deb) ...
Selecting previously deselected package openjdk-6-jre-lib.
Unpacking openjdk-6-jre-lib (from …/openjdk-6-jre-lib_6b11-9.1+lenny2_all.deb) ...
Selecting previously deselected package rhino.
Unpacking rhino (from …/archives/rhino_1.7R1-2_all.deb) ...
Selecting previously deselected package libaccess-bridge-java.
Unpacking libaccess-bridge-java (from …/libaccess-bridge-java_1.23.0-3_all.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from …/java-common_0.30_all.deb) ...
Selecting previously deselected package libcups2.
Unpacking libcups2 (from …/libcups2_1.3.8-1+lenny6_i386.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from …/liblcms1_1.17.dfsg-1+lenny2_i386.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from …/libfreetype6_2.3.7-2+lenny1_i386.deb) ...
Selecting previously deselected package openjdk-6-jre-headless.
Unpacking openjdk-6-jre-headless (from …/openjdk-6-jre-headless_6b11-9.1+lenny2_i386.deb) ...
Selecting previously deselected package libasound2.
Unpacking libasound2 (from …/libasound2_1.0.16-2_i386.deb) ...
Selecting previously deselected package libgif4.
Unpacking libgif4 (from …/libgif4_4.1.6-6_i386.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from …/libjpeg62_6b-14_i386.deb) ...
Selecting previously deselected package libpng12-0.
Unpacking libpng12-0 (from …/libpng12-0_1.2.27-2+lenny2_i386.deb) ...
Selecting previously deselected package libxi6.
Unpacking libxi6 (from …/libxi6_2%3a1.1.4-1_i386.deb) ...
Selecting previously deselected package libxtst6.
Unpacking libxtst6 (from …/libxtst6_2%3a1.0.3-1_i386.deb) ...
Selecting previously deselected package openjdk-6-jre.
Unpacking openjdk-6-jre (from …/openjdk-6-jre_6b11-9.1+lenny2_i386.deb) ...
Selecting previously deselected package openjdk-6-jdk.
Unpacking openjdk-6-jdk (from …/openjdk-6-jdk_6b11-9.1+lenny2_i386.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from …/libexpat1_2.0.1-4_i386.deb) ...
Selecting previously deselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from …/ttf-dejavu-core_2.25-3_all.deb) ...
Selecting previously deselected package ttf-dejavu-extra.
Unpacking ttf-dejavu-extra (from …/ttf-dejavu-extra_2.25-3_all.deb) ...
Selecting previously deselected package ttf-dejavu.
Unpacking ttf-dejavu (from …/ttf-dejavu_2.25-3_all.deb) ...
Selecting previously deselected package fontconfig-config.
Unpacking fontconfig-config (from …/fontconfig-config_2.6.0-3_all.deb) ...
Selecting previously deselected package libfontconfig1.
Unpacking libfontconfig1 (from …/libfontconfig1_2.6.0-3_i386.deb) ...
Selecting previously deselected package fontconfig.
Unpacking fontconfig (from …/fontconfig_2.6.0-3_i386.deb) ...
Selecting previously deselected package libfontenc1.
Unpacking libfontenc1 (from …/libfontenc1_1%3a1.0.4-3_i386.deb) ...
Selecting previously deselected package libxfont1.
Unpacking libxfont1 (from …/libxfont1_1%3a1.3.3-1_i386.deb) ...
Selecting previously deselected package ttf-baekmuk.
Unpacking ttf-baekmuk (from …/ttf-baekmuk_2.2-2_all.deb) ...
Selecting previously deselected package ttf-bengali-fonts.
Unpacking ttf-bengali-fonts (from …/ttf-bengali-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-devanagari-fonts.
Unpacking ttf-devanagari-fonts (from …/ttf-devanagari-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-gujarati-fonts.
Unpacking ttf-gujarati-fonts (from …/ttf-gujarati-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-kannada-fonts.
Unpacking ttf-kannada-fonts (from …/ttf-kannada-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-malayalam-fonts.
Unpacking ttf-malayalam-fonts (from …/ttf-malayalam-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-oriya-fonts.
Unpacking ttf-oriya-fonts (from …/ttf-oriya-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-punjabi-fonts.
Unpacking ttf-punjabi-fonts (from …/ttf-punjabi-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-tamil-fonts.
Unpacking ttf-tamil-fonts (from …/ttf-tamil-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-telugu-fonts.
Unpacking ttf-telugu-fonts (from …/ttf-telugu-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-indic-fonts.
Unpacking ttf-indic-fonts (from …/ttf-indic-fonts_1%3a0.5.4_all.deb) ...
Selecting previously deselected package ttf-kochi-gothic.
Unpacking ttf-kochi-gothic (from …/ttf-kochi-gothic_1.0.20030809-8_all.deb) ...
Selecting previously deselected package ttf-sazanami-mincho.
Unpacking ttf-sazanami-mincho (from …/ttf-sazanami-mincho_20040629-2_all.deb) ...
Selecting previously deselected package tzdata-java.
Unpacking tzdata-java (from …/tzdata-java_2009g-0lenny1_all.deb) ...
Selecting previously deselected package xfonts-encodings.
Unpacking xfonts-encodings (from …/xfonts-encodings_1%3a1.0.2-3_all.deb) ...
Selecting previously deselected package xfonts-utils.
Unpacking xfonts-utils (from …/xfonts-utils_1%3a7.4+1_i386.deb) ...
Selecting previously deselected package x-ttcidfont-conf.
Unpacking x-ttcidfont-conf (from …/x-ttcidfont-conf_31_all.deb) ...
Processing triggers for man-db …
Setting up libice6 (2:1.0.4-1) ...
Setting up x11proto-core-dev (7.0.12-1) ...
Setting up libice-dev (2:1.0.4-1) ...
Setting up libsm6 (2:1.0.3-2) ...
Setting up libsm-dev (2:1.0.3-2) ...
Setting up libxau-dev (1:1.0.3-3) ...
Setting up libxdmcp-dev (1:1.0.2-3) ...
Setting up x11proto-input-dev (1.4.3-2) ...
Setting up x11proto-kb-dev (1.0.3-3) ...
Setting up xtrans-dev (1.2-2) ...
Setting up libpthread-stubs0 (0.1-2) ...
Setting up libpthread-stubs0-dev (0.1-2) ...
Setting up libxcb1-dev (1.1-1.2) ...
Setting up libxcb-xlib0-dev (1.1-1.2) ...
Setting up libx11-dev (2:1.1.5-2) ...
Setting up libxt6 (1:1.0.5-3) ...
Setting up libxt-dev (1:1.0.5-3) ...
Setting up defoma (0.11.10-0.2) ...
Setting up ttf-arphic-uming (0.2.20080216.1-1) ...
Setting up libasound2 (1.0.16-2) ...
Setting up libgif4 (4.1.6-6) ...
Setting up libjpeg62 (6b-14) ...
Setting up libpng12-0 (1.2.27-2+lenny2) ...
Setting up libxi6 (2:1.1.4-1) ...
Setting up libxtst6 (2:1.0.3-1) ...
Setting up java-common (0.30) ...
Setting up libcups2 (1.3.8-1+lenny6) ...
Setting up liblcms1 (1.17.dfsg-1+lenny2) ...
Setting up libfreetype6 (2.3.7-2+lenny1) ...
Setting up libexpat1 (2.0.1-4) ...
Setting up ttf-dejavu-core (2.25-3) ...
Setting up ttf-dejavu-extra (2.25-3) ...
Setting up ttf-dejavu (2.25-3) ...
Setting up fontconfig-config (2.6.0-3) ...
Setting up libfontconfig1 (2.6.0-3) ...
Setting up fontconfig (2.6.0-3) ...
Updating font configuration of fontconfig…
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/arphic
Cleaning up old fontconfig caches… done.
Regenerating fonts cache… done.
Setting up libfontenc1 (1:1.0.4-3) ...
Setting up libxfont1 (1:1.3.3-1) ...
Setting up ttf-baekmuk (2.2-2) ...
Updating fontconfig cache for /usr/share/fonts/truetype/baekmuk
Setting up ttf-bengali-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-bengali-fonts
Regenerating fonts cache… done.
Setting up ttf-devanagari-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-devanagari-fonts
Regenerating fonts cache… done.
Setting up ttf-gujarati-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-gujarati-fonts
Regenerating fonts cache… done.
Setting up ttf-kannada-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-kannada-fonts
Regenerating fonts cache… done.
Setting up ttf-malayalam-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-malayalam-fonts
Regenerating fonts cache… done.
Setting up ttf-oriya-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-oriya-fonts
Regenerating fonts cache… done.
Setting up ttf-punjabi-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-punjabi-fonts
Regenerating fonts cache… done.
Setting up ttf-tamil-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-tamil-fonts
Regenerating fonts cache… done.
Setting up ttf-telugu-fonts (1:0.5.4) ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-telugu-fonts
Regenerating fonts cache… done.
Setting up ttf-indic-fonts (1:0.5.4) ...
Setting up ttf-kochi-gothic (1.0.20030809-8) ...
Updating fontconfig cache for /usr/share/fonts/truetype/kochi
Setting up ttf-sazanami-mincho (20040629-2) ...
Updating fontconfig cache for /usr/share/fonts/truetype/sazanami
Setting up tzdata-java (2009g-0lenny1) ...
Setting up xfonts-encodings (1:1.0.2-3) ...
Setting up xfonts-utils (1:7.4+1) ...
Setting up x-ttcidfont-conf (31) ...
Updating font configuration of x-ttcidfont-conf…
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Updating category truetype..
Updating category cid..
Updating category cmap..
Setting up openjdk-6-jre-lib (6b11-9.1+lenny2) ...
Setting up libaccess-bridge-java (1.23.0-3) ...
Setting up openjdk-6-jre-headless (6b11-9.1+lenny2) ...
Setting up openjdk-6-jre (6b11-9.1+lenny2) ...
Setting up rhino (1.7R1-2) ...
Setting up openjdk-6-jdk (6b11-9.1+lenny2) ...
rentcar:/usr/local#

melihat status versi java yang sudah diinstall

rentcar:/usr/local# java -version
java version “1.6.0_0”
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)
rentcar:/usr/local#

II. APACHE ANT

Fungsi Apache Ant dalam instalasi ini adalah untuk otomatisasi proses kompilasi dan eksekusi program yang dibuat menggunakan Java. Ant menggunakan perintah XML untuk membuat proses konfigurasinya. Secara default nama file XML-nya adalah build.xml dan konfigurasi folder di build.properties.

Dalam sebuah file build.xml berisi:

  • Folder tempat menyimpan source code, biasanya bernama “src”

  • Folder tempat menyimpan hasil kompilasi, biasanya bernama “classes”

  • Lokasi pustaka tambahan

  • Classpath

  • Pekerjaan tambahan lain, misalnya eksekusi file

Sedangkan build.properties berisi:

  • Konfigurasi folder yang akan diakses

  • Daftar variabel yang digunakan dalam build.xml

Berikut proses instalasi Apache Ant:

rentcar:/usr/local# apt-get install ant
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
ant-gcj ant-optional ant-optional-gcj gcj-4.3-base hicolor-icon-theme libatk1.0-0 libatk1.0-data libcairo2 libdatrie0 libdirectfb-1.0-0 libgcj-bc
libgcj-common libgcj9-0 libgcj9-0-awt libgcj9-jar libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libjaxp1.3-java libjaxp1.3-java-gcj libpango1.0-0
libpango1.0-common libpixman-1-0 libsysfs2 libthai-data libthai0 libtiff4 libts-0.0-0 libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1
libxdamage1 libxerces2-java libxerces2-java-gcj libxfixes3 libxft2 libxinerama1 libxrandr2 libxrender1
Suggested packages:
ant-doc libbsf-java liboro-java libxalan2-java junit liblog4j1.2-java libregexp-java jython antlr libbcel-java libcommons-logging-java libjdepend-java
libgnumail-java libxml-commons-resolver1.1-java libcommons-net-java libjsch-java javacc libgcj9-dbg librsvg2-common ttf-kochi-mincho ttf-thryomanes
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp libxerces2-java-doc
The following NEW packages will be installed:
ant ant-gcj ant-optional ant-optional-gcj gcj-4.3-base hicolor-icon-theme libatk1.0-0 libatk1.0-data libcairo2 libdatrie0 libdirectfb-1.0-0 libgcj-bc
libgcj-common libgcj9-0 libgcj9-0-awt libgcj9-jar libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libjaxp1.3-java libjaxp1.3-java-gcj libpango1.0-0
libpango1.0-common libpixman-1-0 libsysfs2 libthai-data libthai0 libtiff4 libts-0.0-0 libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1
libxdamage1 libxerces2-java libxerces2-java-gcj libxfixes3 libxft2 libxinerama1 libxrandr2 libxrender1
0 upgraded, 41 newly installed, 0 to remove and 2 not upgraded.
Need to get 38.3MB of archives.
After this operation, 95.6MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://kebo.vlsm.org lenny/main libxfixes3 1:4.0.3-2 [9572B]
Get:2 http://kebo.vlsm.org lenny/main libjaxp1.3-java 1.3.04-3 [180kB]
Get:3 http://security.debian.org lenny/updates/main libtiff4 3.8.2-11.2 [161kB]
Get:4 http://kebo.vlsm.org lenny/main libxerces2-java 2.9.1-2 [1127kB]
Get:5 http://kebo.vlsm.org lenny/main ant 1.7.0-6 [1281kB]
Get:6 http://kebo.vlsm.org lenny/main libgcj-common 1:4.3.2-2 [13.7kB]
Get:7 http://kebo.vlsm.org lenny/main gcj-4.3-base 4.3.2-2 [103kB]
Get:8 http://kebo.vlsm.org lenny/main libgcj9-0 4.3.2-2 [10.4MB]
Get:9 http://kebo.vlsm.org lenny/main libgcj-bc 4.3.2-2 [1132B]
Get:10 http://kebo.vlsm.org lenny/main ant-gcj 1.7.0-6 [1173kB]
Get:11 http://kebo.vlsm.org lenny/main ant-optional 1.7.0-6 [694kB]
Get:12 http://kebo.vlsm.org lenny/main ant-optional-gcj 1.7.0-6 [653kB]
Get:13 http://kebo.vlsm.org lenny/main hicolor-icon-theme 0.10-1 [10.1kB]
Get:14 http://kebo.vlsm.org lenny/main libatk1.0-0 1.22.0-1 [79.2kB]
Get:15 http://kebo.vlsm.org lenny/main libatk1.0-data 1.22.0-1 [188kB]
Get:16 http://kebo.vlsm.org lenny/main libsysfs2 2.1.0-5 [28.3kB]
Get:17 http://kebo.vlsm.org lenny/main libts-0.0-0 1.0-4 [27.1kB]
Get:18 http://kebo.vlsm.org lenny/main libdirectfb-1.0-0 1.0.1-11 [1148kB]
Get:19 http://kebo.vlsm.org lenny/main libpixman-1-0 0.10.0-2 [71.0kB]
Get:20 http://kebo.vlsm.org lenny/main libxcb-render0 1.1-1.2 [20.8kB]
Get:21 http://kebo.vlsm.org lenny/main libxcb-render-util0 0.2.1+git1-1 [9300B]
Get:22 http://kebo.vlsm.org lenny/main libxrender1 1:0.9.4-2 [26.6kB]
Get:23 http://kebo.vlsm.org lenny/main libcairo2 1.6.4-7 [547kB]
Get:24 http://kebo.vlsm.org lenny/main libdatrie0 0.1.3-2 [18.7kB]
Get:25 http://kebo.vlsm.org lenny/main libgtk2.0-common 2.12.12-1~lenny1 [5488kB]
Get:26 http://kebo.vlsm.org lenny/main libpango1.0-common 1.20.5-5 [64.6kB]
Get:27 http://kebo.vlsm.org lenny/main libthai-data 0.1.9-4 [162kB]
Get:28 http://kebo.vlsm.org lenny/main libthai0 0.1.9-4 [31.6kB]
Get:29 http://kebo.vlsm.org lenny/main libxft2 2.1.12-3 [49.0kB]
Get:30 http://kebo.vlsm.org lenny/main libpango1.0-0 1.20.5-5 [288kB]
Get:31 http://kebo.vlsm.org lenny/main libxcomposite1 1:0.4.0-3 [11.1kB]
Get:32 http://kebo.vlsm.org lenny/main libxcursor1 1:1.1.9-1 [24.0kB]
Get:33 http://kebo.vlsm.org lenny/main libxdamage1 1:1.1.1-4 [9980B]
Get:34 http://kebo.vlsm.org lenny/main libxinerama1 2:1.0.3-2 [10.1kB]
Get:35 http://kebo.vlsm.org lenny/main libxrandr2 2:1.2.3-1 [22.4kB]
Get:36 http://kebo.vlsm.org lenny/main libgtk2.0-0 2.12.12-1~lenny1 [2110kB]
Get:37 http://kebo.vlsm.org lenny/main libgcj9-0-awt 4.3.2-2 [81.8kB]
Get:38 http://kebo.vlsm.org lenny/main libgcj9-jar 4.3.2-2 [10.1MB]
Get:39 http://kebo.vlsm.org lenny/main libgtk2.0-bin 2.12.12-1~lenny1 [147kB]
Get:40 http://kebo.vlsm.org lenny/main libjaxp1.3-java-gcj 1.3.04-3 [161kB]
Get:41 http://kebo.vlsm.org lenny/main libxerces2-java-gcj 2.9.1-2 [1551kB]
Fetched 38.3MB in 8min27s (75.4kB/s)
Extracting templates from packages: 100%
Selecting previously deselected package libxfixes3.
(Reading database … 27529 files and directories currently installed.)
Unpacking libxfixes3 (from …/libxfixes3_1%3a4.0.3-2_i386.deb) ...
Selecting previously deselected package libjaxp1.3-java.
Unpacking libjaxp1.3-java (from …/libjaxp1.3-java_1.3.04-3_all.deb) ...
Selecting previously deselected package libxerces2-java.
Unpacking libxerces2-java (from …/libxerces2-java_2.9.1-2_all.deb) ...
Selecting previously deselected package ant.
Unpacking ant (from …/archives/ant_1.7.0-6_all.deb) ...
Selecting previously deselected package libgcj-common.
Unpacking libgcj-common (from …/libgcj-common_1%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package gcj-4.3-base.
Unpacking gcj-4.3-base (from …/gcj-4.3-base_4.3.2-2_i386.deb) ...
Selecting previously deselected package libgcj9-0.
Unpacking libgcj9-0 (from …/libgcj9-0_4.3.2-2_i386.deb) ...
Selecting previously deselected package libgcj-bc.
Unpacking libgcj-bc (from …/libgcj-bc_4.3.2-2_i386.deb) ...
Selecting previously deselected package ant-gcj.
Unpacking ant-gcj (from …/ant-gcj_1.7.0-6_i386.deb) ...
Selecting previously deselected package ant-optional.
Unpacking ant-optional (from …/ant-optional_1.7.0-6_all.deb) ...
Selecting previously deselected package ant-optional-gcj.
Unpacking ant-optional-gcj (from …/ant-optional-gcj_1.7.0-6_i386.deb) ...
Selecting previously deselected package hicolor-icon-theme.
Unpacking hicolor-icon-theme (from …/hicolor-icon-theme_0.10-1_all.deb) ...
Selecting previously deselected package libatk1.0-0.
Unpacking libatk1.0-0 (from …/libatk1.0-0_1.22.0-1_i386.deb) ...
Selecting previously deselected package libatk1.0-data.
Unpacking libatk1.0-data (from …/libatk1.0-data_1.22.0-1_all.deb) ...
Selecting previously deselected package libsysfs2.
Unpacking libsysfs2 (from …/libsysfs2_2.1.0-5_i386.deb) ...
Selecting previously deselected package libts-0.0-0.
Unpacking libts-0.0-0 (from …/libts-0.0-0_1.0-4_i386.deb) ...
Selecting previously deselected package libdirectfb-1.0-0.
Unpacking libdirectfb-1.0-0 (from …/libdirectfb-1.0-0_1.0.1-11_i386.deb) ...
Selecting previously deselected package libpixman-1-0.
Unpacking libpixman-1-0 (from …/libpixman-1-0_0.10.0-2_i386.deb) ...
Selecting previously deselected package libxcb-render0.
Unpacking libxcb-render0 (from …/libxcb-render0_1.1-1.2_i386.deb) ...
Selecting previously deselected package libxcb-render-util0.
Unpacking libxcb-render-util0 (from …/libxcb-render-util0_0.2.1+git1-1_i386.deb) ...
Selecting previously deselected package libxrender1.
Unpacking libxrender1 (from …/libxrender1_1%3a0.9.4-2_i386.deb) ...
Selecting previously deselected package libcairo2.
Unpacking libcairo2 (from …/libcairo2_1.6.4-7_i386.deb) ...
Selecting previously deselected package libdatrie0.
Unpacking libdatrie0 (from …/libdatrie0_0.1.3-2_i386.deb) ...
Selecting previously deselected package libgtk2.0-common.
Unpacking libgtk2.0-common (from …/libgtk2.0-common_2.12.12-1~lenny1_all.deb) ...
Selecting previously deselected package libpango1.0-common.
Unpacking libpango1.0-common (from …/libpango1.0-common_1.20.5-5_all.deb) ...
Selecting previously deselected package libthai-data.
Unpacking libthai-data (from …/libthai-data_0.1.9-4_all.deb) ...
Selecting previously deselected package libthai0.
Unpacking libthai0 (from …/libthai0_0.1.9-4_i386.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from …/libxft2_2.1.12-3_i386.deb) ...
Selecting previously deselected package libpango1.0-0.
Unpacking libpango1.0-0 (from …/libpango1.0-0_1.20.5-5_i386.deb) ...
Selecting previously deselected package libtiff4.
Unpacking libtiff4 (from …/libtiff4_3.8.2-11.2_i386.deb) ...
Selecting previously deselected package libxcomposite1.
Unpacking libxcomposite1 (from …/libxcomposite1_1%3a0.4.0-3_i386.deb) ...
Selecting previously deselected package libxcursor1.
Unpacking libxcursor1 (from …/libxcursor1_1%3a1.1.9-1_i386.deb) ...
Selecting previously deselected package libxdamage1.
Unpacking libxdamage1 (from …/libxdamage1_1%3a1.1.1-4_i386.deb) ...
Selecting previously deselected package libxinerama1.
Unpacking libxinerama1 (from …/libxinerama1_2%3a1.0.3-2_i386.deb) ...
Selecting previously deselected package libxrandr2.
Unpacking libxrandr2 (from …/libxrandr2_2%3a1.2.3-1_i386.deb) ...
Selecting previously deselected package libgtk2.0-0.
Unpacking libgtk2.0-0 (from …/libgtk2.0-0_2.12.12-1~lenny1_i386.deb) ...
Selecting previously deselected package libgcj9-0-awt.
Unpacking libgcj9-0-awt (from …/libgcj9-0-awt_4.3.2-2_i386.deb) ...
Selecting previously deselected package libgcj9-jar.
Unpacking libgcj9-jar (from …/libgcj9-jar_4.3.2-2_all.deb) ...
Selecting previously deselected package libgtk2.0-bin.
Unpacking libgtk2.0-bin (from …/libgtk2.0-bin_2.12.12-1~lenny1_all.deb) ...
Selecting previously deselected package libjaxp1.3-java-gcj.
Unpacking libjaxp1.3-java-gcj (from …/libjaxp1.3-java-gcj_1.3.04-3_i386.deb) ...
Selecting previously deselected package libxerces2-java-gcj.
Unpacking libxerces2-java-gcj (from …/libxerces2-java-gcj_2.9.1-2_i386.deb) ...
Processing triggers for man-db …
Setting up libxfixes3 (1:4.0.3-2) ...
Setting up libjaxp1.3-java (1.3.04-3) ...
Setting up libxerces2-java (2.9.1-2) ...
Setting up ant (1.7.0-6) ...
Setting up libgcj-common (1:4.3.2-2) ...
Setting up gcj-4.3-base (4.3.2-2) ...
Setting up libgcj9-0 (4.3.2-2) ...
Setting up libgcj-bc (4.3.2-2) ...
Setting up ant-gcj (1.7.0-6) ...
Setting up ant-optional (1.7.0-6) ...
Setting up ant-optional-gcj (1.7.0-6) ...
Setting up hicolor-icon-theme (0.10-1) ...
Setting up libatk1.0-0 (1.22.0-1) ...
Setting up libatk1.0-data (1.22.0-1) ...
Setting up libsysfs2 (2.1.0-5) ...
Setting up libts-0.0-0 (1.0-4) ...
Setting up libdirectfb-1.0-0 (1.0.1-11) ...
Setting up libpixman-1-0 (0.10.0-2) ...
Setting up libxcb-render0 (1.1-1.2) ...
Setting up libxcb-render-util0 (0.2.1+git1-1) ...
Setting up libxrender1 (1:0.9.4-2) ...
Setting up libcairo2 (1.6.4-7) ...
Setting up libdatrie0 (0.1.3-2) ...
Setting up libgtk2.0-common (2.12.12-1~lenny1) ...
Setting up libpango1.0-common (1.20.5-5) ...
I: Purging /etc/pango/pango.modules
Cleaning up font configuration of pango…
Updating font configuration of pango…
Cleaning up category xfont..
Updating category xfont..
Setting up libthai-data (0.1.9-4) ...
Setting up libthai0 (0.1.9-4) ...
Setting up libxft2 (2.1.12-3) ...
Setting up libpango1.0-0 (1.20.5-5) ...
Setting up libtiff4 (3.8.2-11.2) ...
Setting up libxcomposite1 (1:0.4.0-3) ...
Setting up libxcursor1 (1:1.1.9-1) ...
Setting up libxdamage1 (1:1.1.1-4) ...
Setting up libxinerama1 (2:1.0.3-2) ...
Setting up libxrandr2 (2:1.2.3-1) ...
Setting up libgtk2.0-0 (2.12.12-1~lenny1) ...
Setting up libgcj9-0-awt (4.3.2-2) ...
Setting up libgcj9-jar (4.3.2-2) ...
Setting up libgtk2.0-bin (2.12.12-1~lenny1) ...
Setting up libjaxp1.3-java-gcj (1.3.04-3) ...
Setting up libxerces2-java-gcj (2.9.1-2) ...
rentcar:/usr/local#

melihat versi Apache Ant

rentcar:/usr/local# ant -version
Apache Ant version 1.7.0 compiled on April 29 2008
rentcar:/usr/local#

III. APACHE TOMCAT

Apache Tomcat adalah servlet container dibuat oleh Apache Software Foundation (ASF). Tomcat dapat menjalankan Java Servlet dan JavaServer Pages (JSP) , Apache tomcat merupakan murni Java” HTTP web server untuk menjalankan Java code, yang dalam proyek ini menjalankan fungsi-fungsi java pada sistem tracking OpenGTS. Berikut instalasi Tomcat 5.5 pada Debian Lenny.

rentcar:/usr/local# apt-get install tomcat5.5
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
jsvc libbcel-java libcommons-beanutils-java libcommons-collections-java libcommons-collections3-java libcommons-daemon-java libcommons-dbcp-java
libcommons-digester-java libcommons-el-java libcommons-launcher-java libcommons-logging-java libcommons-modeler-java libcommons-pool-java libecj-java
libecj-java-gcj liblog4j1.2-java liblog4j1.2-java-gcj libmx4j-java libregexp-java libservlet2.3-java libservlet2.4-java libtomcat5.5-java
Suggested packages:
libbcel-java-doc libcommons-beanutils-java-doc libcommons-collections3-java-doc libavalon-framework-java liblogkit-java classpath-doc ecj libgnumail-java
jython libservlet2.4-java-gcj libapache2-mod-jk tomcat5.5-webapps tomcat5.5-admin
The following NEW packages will be installed:
jsvc libbcel-java libcommons-beanutils-java libcommons-collections-java libcommons-collections3-java libcommons-daemon-java libcommons-dbcp-java
libcommons-digester-java libcommons-el-java libcommons-launcher-java libcommons-logging-java libcommons-modeler-java libcommons-pool-java libecj-java
libecj-java-gcj liblog4j1.2-java liblog4j1.2-java-gcj libmx4j-java libregexp-java libservlet2.3-java libservlet2.4-java libtomcat5.5-java tomcat5.5
0 upgraded, 23 newly installed, 0 to remove and 2 not upgraded.
Need to get 11.0MB of archives.
After this operation, 30.8MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://kebo.vlsm.org lenny/main libcommons-daemon-java 1.0.2~svn20061127-9 [37.7kB]
Get:2 http://kebo.vlsm.org lenny/main jsvc 1.0.2~svn20061127-9 [23.6kB]
Get:3 http://kebo.vlsm.org lenny/main libregexp-java 1.4-5 [89.7kB]
Get:4 http://kebo.vlsm.org lenny/main libbcel-java 5.2-3 [483kB]
Get:5 http://kebo.vlsm.org lenny/main libcommons-collections3-java 3.2.1-1 [603kB]
Get:6 http://kebo.vlsm.org lenny/main libservlet2.3-java 4.0-10 [256kB]
Get:7 http://kebo.vlsm.org lenny/main libcommons-logging-java 1.1.1-1 [210kB]
Get:8 http://kebo.vlsm.org lenny/main libcommons-beanutils-java 1.8.0~beta-1 [201kB]
Get:9 http://kebo.vlsm.org lenny/main libcommons-collections-java 2.1.1-8 [335kB]
Get:10 http://kebo.vlsm.org lenny/main libcommons-pool-java 1.3-1 [129kB]
Get:11 http://kebo.vlsm.org lenny/main libcommons-dbcp-java 1.2.2-1 [229kB]
Get:12 http://kebo.vlsm.org lenny/main libcommons-digester-java 1.8-1 [389kB]
Get:13 http://kebo.vlsm.org lenny/main libservlet2.4-java 5.0.30-8 [958kB]
Get:14 http://kebo.vlsm.org lenny/main libcommons-el-java 1.0-4 [111kB]
Get:15 http://kebo.vlsm.org lenny/main libcommons-launcher-java 1.1-3 [133kB]
Get:16 http://kebo.vlsm.org lenny/main liblog4j1.2-java 1.2.15-4 [313kB]
Get:17 http://kebo.vlsm.org lenny/main libmx4j-java 3.0.2-4 [905kB]
Get:18 http://kebo.vlsm.org lenny/main libcommons-modeler-java 2.0.1-4 [121kB]
Get:19 http://kebo.vlsm.org lenny/main libecj-java 3.3.0+0728-9 [1158kB]
Get:20 http://kebo.vlsm.org lenny/main libecj-java-gcj 3.3.0+0728-9 [1434kB]
Get:21 http://kebo.vlsm.org lenny/main liblog4j1.2-java-gcj 1.2.15-4 [301kB]
Get:22 http://kebo.vlsm.org lenny/main libtomcat5.5-java 5.5.26-5 [2484kB]
Get:23 http://kebo.vlsm.org lenny/main tomcat5.5 5.5.26-5 [57.3kB]
Fetched 11.0MB in 2min18s (79.2kB/s)
Selecting previously deselected package libcommons-daemon-java.
(Reading database … 28719 files and directories currently installed.)
Unpacking libcommons-daemon-java (from …/libcommons-daemon-java_1.0.2~svn20061127-9_all.deb) ...
Selecting previously deselected package jsvc.
Unpacking jsvc (from …/jsvc_1.0.2~svn20061127-9_i386.deb) ...
Selecting previously deselected package libregexp-java.
Unpacking libregexp-java (from …/libregexp-java_1.4-5_all.deb) ...
Selecting previously deselected package libbcel-java.
Unpacking libbcel-java (from …/libbcel-java_5.2-3_all.deb) ...
Selecting previously deselected package libcommons-collections3-java.
Unpacking libcommons-collections3-java (from …/libcommons-collections3-java_3.2.1-1_all.deb) ...
Selecting previously deselected package libservlet2.3-java.
Unpacking libservlet2.3-java (from …/libservlet2.3-java_4.0-10_all.deb) ...
Selecting previously deselected package libcommons-logging-java.
Unpacking libcommons-logging-java (from …/libcommons-logging-java_1.1.1-1_all.deb) ...
Selecting previously deselected package libcommons-beanutils-java.
Unpacking libcommons-beanutils-java (from …/libcommons-beanutils-java_1.8.0~beta-1_all.deb) ...
Selecting previously deselected package libcommons-collections-java.
Unpacking libcommons-collections-java (from …/libcommons-collections-java_2.1.1-8_all.deb) ...
Selecting previously deselected package libcommons-pool-java.
Unpacking libcommons-pool-java (from …/libcommons-pool-java_1.3-1_all.deb) ...
Selecting previously deselected package libcommons-dbcp-java.
Unpacking libcommons-dbcp-java (from …/libcommons-dbcp-java_1.2.2-1_all.deb) ...
Selecting previously deselected package libcommons-digester-java.
Unpacking libcommons-digester-java (from …/libcommons-digester-java_1.8-1_all.deb) ...
Selecting previously deselected package libservlet2.4-java.
Unpacking libservlet2.4-java (from …/libservlet2.4-java_5.0.30-8_all.deb) ...
Selecting previously deselected package libcommons-el-java.
Unpacking libcommons-el-java (from …/libcommons-el-java_1.0-4_all.deb) ...
Selecting previously deselected package libcommons-launcher-java.
Unpacking libcommons-launcher-java (from …/libcommons-launcher-java_1.1-3_all.deb) ...
Selecting previously deselected package liblog4j1.2-java.
Unpacking liblog4j1.2-java (from …/liblog4j1.2-java_1.2.15-4_all.deb) ...
Selecting previously deselected package libmx4j-java.
Unpacking libmx4j-java (from …/libmx4j-java_3.0.2-4_all.deb) ...
Selecting previously deselected package libcommons-modeler-java.
Unpacking libcommons-modeler-java (from …/libcommons-modeler-java_2.0.1-4_all.deb) ...
Selecting previously deselected package libecj-java.
Unpacking libecj-java (from …/libecj-java_3.3.0+0728-9_all.deb) ...
Selecting previously deselected package libecj-java-gcj.
Unpacking libecj-java-gcj (from …/libecj-java-gcj_3.3.0+0728-9_i386.deb) ...
Selecting previously deselected package liblog4j1.2-java-gcj.
Unpacking liblog4j1.2-java-gcj (from …/liblog4j1.2-java-gcj_1.2.15-4_i386.deb) ...
Selecting previously deselected package libtomcat5.5-java.
Unpacking libtomcat5.5-java (from …/libtomcat5.5-java_5.5.26-5_all.deb) ...
Selecting previously deselected package tomcat5.5.
Unpacking tomcat5.5 (from …/tomcat5.5_5.5.26-5_all.deb) ...
Processing triggers for man-db …
Setting up libcommons-daemon-java (1.0.2~svn20061127-9) ...
Setting up jsvc (1.0.2~svn20061127-9) ...
Setting up libregexp-java (1.4-5) ...
Setting up libbcel-java (5.2-3) ...
Setting up libcommons-collections3-java (3.2.1-1) ...
Setting up libservlet2.3-java (4.0-10) ...
Setting up libcommons-logging-java (1.1.1-1) ...
Setting up libcommons-beanutils-java (1.8.0~beta-1) ...
Setting up libcommons-collections-java (2.1.1-8) ...
Setting up libcommons-pool-java (1.3-1) ...
Setting up libcommons-dbcp-java (1.2.2-1) ...
Setting up libcommons-digester-java (1.8-1) ...
Setting up libservlet2.4-java (5.0.30-8) ...
Setting up libcommons-el-java (1.0-4) ...
Setting up libcommons-launcher-java (1.1-3) ...
Setting up liblog4j1.2-java (1.2.15-4) ...
Setting up libmx4j-java (3.0.2-4) ...
Setting up libcommons-modeler-java (2.0.1-4) ...
Setting up libecj-java (3.3.0+0728-9) ...
Setting up libecj-java-gcj (3.3.0+0728-9) ...
Setting up liblog4j1.2-java-gcj (1.2.15-4) ...
Setting up libtomcat5.5-java (5.5.26-5) ...
Setting up tomcat5.5 (5.5.26-5) ...
Adding system user `tomcat55’ (UID 107) ...
Adding new user `tomcat55’ (UID 107) with group `nogroup’ ...
Not creating home directory `/usr/share/tomcat5.5’.
Starting Tomcat servlet engine: tomcat5.5.
rentcar:/usr/local#

rentcar:/usr/local# apt-get install tomcat5.5-admin
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libcommons-fileupload-java libcommons-io-java libcommons-validator-java liboro-java libstruts1.2-java sgml-base
Suggested packages:
libcommons-io-java-doc sgml-base-doc
The following NEW packages will be installed:
libcommons-fileupload-java libcommons-io-java libcommons-validator-java liboro-java libstruts1.2-java sgml-base tomcat5.5-admin
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 2181kB of archives.
After this operation, 4395kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://kebo.vlsm.org lenny/main libcommons-io-java 1.4-1 [106kB]
Get:2 http://kebo.vlsm.org lenny/main libcommons-fileupload-java 1.2.1-1 [47.0kB]
Get:3 http://kebo.vlsm.org lenny/main liboro-java 2.0.8a-4 [69.1kB]
Get:4 http://kebo.vlsm.org lenny/main sgml-base 1.26 [11.7kB]
Get:5 http://kebo.vlsm.org lenny/main libcommons-validator-java 1:1.3.1-1 [137kB]
Get:6 http://kebo.vlsm.org lenny/main libstruts1.2-java 1.2.9-3 [672kB]
Get:7 http://kebo.vlsm.org lenny/main tomcat5.5-admin 5.5.26-5 [1139kB]
Fetched 2181kB in 23s (92.1kB/s)
Selecting previously deselected package libcommons-io-java.
(Reading database … 29874 files and directories currently installed.)
Unpacking libcommons-io-java (from …/libcommons-io-java_1.4-1_all.deb) ...
Selecting previously deselected package libcommons-fileupload-java.
Unpacking libcommons-fileupload-java (from …/libcommons-fileupload-java_1.2.1-1_all.deb) ...
Selecting previously deselected package liboro-java.
Unpacking liboro-java (from …/liboro-java_2.0.8a-4_all.deb) ...
Selecting previously deselected package sgml-base.
Unpacking sgml-base (from …/sgml-base_1.26_all.deb) ...
Selecting previously deselected package libcommons-validator-java.
Unpacking libcommons-validator-java (from …/libcommons-validator-java_1%3a1.3.1-1_all.deb) ...
Selecting previously deselected package libstruts1.2-java.
Unpacking libstruts1.2-java (from …/libstruts1.2-java_1.2.9-3_all.deb) ...
Selecting previously deselected package tomcat5.5-admin.
Unpacking tomcat5.5-admin (from …/tomcat5.5-admin_5.5.26-5_all.deb) ...
Processing triggers for man-db …
Setting up libcommons-io-java (1.4-1) ...
Setting up libcommons-fileupload-java (1.2.1-1) ...
Setting up liboro-java (2.0.8a-4) ...
Setting up sgml-base (1.26) ...
Setting up libcommons-validator-java (1:1.3.1-1) ...
Setting up libstruts1.2-java (1.2.9-3) ...
Setting up tomcat5.5-admin (5.5.26-5) ...
Stopping Tomcat servlet engine: tomcat5.5.
Starting Tomcat servlet engine: tomcat5.5.
rentcar:/usr/local#

rentcar:/usr/local# apt-get install tomcat5.5-webapps
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
tomcat5.5-webapps
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 1489kB of archives.
After this operation, 10.0MB of additional disk space will be used.
Get:1 http://kebo.vlsm.org lenny/main tomcat5.5-webapps 5.5.26-5 [1489kB]
Fetched 1489kB in 17s (85.7kB/s)
Selecting previously deselected package tomcat5.5-webapps.
(Reading database … 30213 files and directories currently installed.)
Unpacking tomcat5.5-webapps (from …/tomcat5.5-webapps_5.5.26-5_all.deb) ...
Setting up tomcat5.5-webapps (5.5.26-5) ...
Stopping Tomcat servlet engine: tomcat5.5.
Starting Tomcat servlet engine: tomcat5.5.
rentcar:/usr/local#

IV. MySQL & MySQL Conector To Java

Sistem tracking GPS ini menggunakan database MySQL.

rentcar:/etc/tomcat5.5/policy.d# apt-get install mysql-server

-Setting username dan password root mysql.  Diperlukan untuk pembuatan table database OpenGTS.

mysql-connector-java

MySQL Connector/J adalah Java driver untuk mengconverts JDBC (Java Database Connectivity). Disebut juga network protocol yang digunakan MySQL database.  Dengan instalasi ini maka dapat berfungsi untuk menghubungkan antara program java dengan MySQL yang sudah diinstalasi diatas.

rentcar:/etc/tomcat5.5/policy.d# apt-get install libmysql-java
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
libmysql-java
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 718kB of archives.
After this operation, 791kB of additional disk space will be used.
Get:1 http://kebo.vlsm.org lenny/main libmysql-java 5.1.6+dfsg-1 [718kB]
Fetched 718kB in 9s (79.2kB/s)
Selecting previously deselected package libmysql-java.
(Reading database … 42863 files and directories currently installed.)
Unpacking libmysql-java (from …/libmysql-java_5.1.6+dfsg-1_all.deb) ...
Setting up libmysql-java (5.1.6+dfsg-1) ...
rentcar:/etc/tomcat5.5/policy.d#

V. JAVA MAIL API

JavaMail Application Programming Interface (API) adalah sebuah spesifikasi yang memungkinkan untuk mengirim dan menerima e-mail. Dalam Sistem Tracking ini berfungsi sebagai Message Delivery Notifications.

rentcar:/etc/tomcat5.5/policy.d# apt-get install libgnumail-java
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libgnuinet-java libgnujaf-java
Suggested packages:
libgnumail-java-doc
The following NEW packages will be installed:
libgnuinet-java libgnujaf-java libgnumail-java
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 716kB of archives.
After this operation, 3977kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://kebo.vlsm.org lenny/main libgnuinet-java 1.1.1-3 [368kB]
Get:2 http://kebo.vlsm.org lenny/main libgnujaf-java 1.1.1-4 [60.4kB]
Get:3 http://kebo.vlsm.org lenny/main libgnumail-java 1.1.2-2 [287kB]
Fetched 716kB in 7s (93.6kB/s)
Selecting previously deselected package libgnuinet-java.
(Reading database … 31092 files and directories currently installed.)
Unpacking libgnuinet-java (from …/libgnuinet-java_1.1.1-3_all.deb) ...
Selecting previously deselected package libgnujaf-java.
Unpacking libgnujaf-java (from …/libgnujaf-java_1.1.1-4_all.deb) ...
Selecting previously deselected package libgnumail-java.
Unpacking libgnumail-java (from …/libgnumail-java_1.1.2-2_all.deb) ...
Setting up libgnuinet-java (1.1.1-3) ...
Setting up libgnujaf-java (1.1.1-4) ...
Setting up libgnumail-java (1.1.2-2) ...
rentcar:/etc/tomcat5.5/policy.d#

rentcar:/etc/tomcat5.5/policy.d# apt-get install  libgnumail-java-doc
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
classpath-doc
The following NEW packages will be installed:
classpath-doc libgnumail-java-doc
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 30.7MB of archives.
After this operation, 327MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://kebo.vlsm.org lenny/main classpath-doc 2:0.97.1-5+lenny1 [30.3MB]
Get:2 http://kebo.vlsm.org lenny/main libgnumail-java-doc 1.1.2-2 [338kB]
Fetched 30.7MB in 5min45s (88.7kB/s)
Selecting previously deselected package classpath-doc.
(Reading database … 31398 files and directories currently installed.)
Unpacking classpath-doc (from …/classpath-doc_2%3a0.97.1-5+lenny1_all.deb) ...
Selecting previously deselected package libgnumail-java-doc.
Unpacking libgnumail-java-doc (from …/libgnumail-java-doc_1.1.2-2_all.deb) ...
Setting up classpath-doc (2:0.97.1-5+lenny1) ...
Setting up libgnumail-java-doc (1.1.2-2) ...
rentcar:/etc/tomcat5.5/policy.d#

Apache Tomcat running pada port 8180, bisa dicek pada status servicesnya :

rentcar:/usr/local# netstat -nltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      3895/mysqld
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1898/portmap
tcp        0      0 0.0.0.0:53778           0.0.0.0:*               LISTEN      1909/rpc.statd
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      2903/inetd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2141/sshd
tcp6       0      0 :::8009                 :::*                    LISTEN      22560/jsvc
tcp6       0      0 :::8180                 :::*                    LISTEN      22560/jsvc
tcp6       0      0 :::22                   :::*                    LISTEN      2141/sshd
udp        0      0 0.0.0.0:49693           0.0.0.0:*                           1909/rpc.statd
udp        0      0 0.0.0.0:813             0.0.0.0:*                           1909/rpc.statd
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1898/portmap
rentcar:/usr/local#

SETTING ENVIRONMENT VARIABLES

Setelah proses instalasi semua software pendukung kita perlu mensetting Environment PATH :

rentcar:/usr/local#nano /etc/environment

isi dengan data sebagai berikut :

CATALINA_HOME=/usr/share/tomcat5.5
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
ANT_HOME=/usr/share/ant
MYSQL_HOME=/usr/share/mysql

Bisa juga dengan cara sebagai berikut :

rentcar:/usr/local# export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
rentcar:/usr/local# export CATALINA_HOME=/usr/share/tomcat5.5
rentcar:/usr/local# export MYSQL_HOME=/usr/share/mysql
rentcar:/usr/local# export ANT_HOME=/usr/share/ant

Testing browser Apache Tomcat :

http://ipataunamadomain:8180/

Apache Tomcat-5.5

Tomcat Server Administration

rentcar:/usr/local# tail -f /var/log/syslog
Aug 19 02:35:59 rentcar jsvc.exec[23048]: Aug 19, 2009 2:35:59 AM org.apache.coyote.http11.Http11BaseProtocol init#012INFO: Initializing Coyote HTTP/1.1 on http-8180
Aug 19 02:35:59 rentcar jsvc.exec[23048]: Aug 19, 2009 2:35:59 AM org.apache.catalina.startup.Catalina load#012INFO: Initialization processed in 283 ms
Aug 19 02:35:59 rentcar jsvc.exec[23048]: Aug 19, 2009 2:35:59 AM org.apache.catalina.core.StandardService start#012INFO: Starting service Catalina
Aug 19 02:35:59 rentcar jsvc.exec[23048]: Aug 19, 2009 2:35:59 AM org.apache.catalina.core.StandardEngine start#012INFO: Starting Servlet Engine: Apache Tomcat/5.5
Aug 19 02:35:59 rentcar jsvc.exec[23048]: Aug 19, 2009 2:35:59 AM org.apache.catalina.core.StandardHost start#012INFO: XML validation disabled
Aug 19 02:36:00 rentcar jsvc.exec[23048]: Aug 19, 2009 2:36:00 AM org.apache.coyote.http11.Http11BaseProtocol start#012INFO: Starting Coyote HTTP/1.1 on http-8180
Aug 19 02:36:00 rentcar jsvc.exec[23048]: Aug 19, 2009 2:36:00 AM org.apache.jk.common.ChannelSocket init#012INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 19 02:36:00 rentcar jsvc.exec[23048]: Aug 19, 2009 2:36:00 AM org.apache.jk.server.JkMain start#012INFO: Jk running ID=0 time=0/10  config=null
Aug 19 02:36:00 rentcar jsvc.exec[23048]: Aug 19, 2009 2:36:00 AM org.apache.catalina.storeconfig.StoreLoader load#012INFO: Find registry server-registry.xml at classpath resource
Aug 19 02:36:00 rentcar jsvc.exec[23048]: Aug 19, 2009 2:36:00 AM org.apache.catalina.startup.Catalina start#012INFO: Server startup in 773 ms
^C
rentcar:/usr/local#

Selesai menginstall software pendukung sistem tracking OpenGTS, Bersambung ke artikel ke 2 yang lebih penting untuk menghasilkan sistem GPS Tracking dapat digunakan.

Comments (15)

Di Miror KAMBING.UI.EDU ada gak mas? Dai UGM VLSM tuh lumayan lemot kalau download…

Berikut daftar untuk repository DEBIAN lokal :

Repo.ugm.ac.id
deb http://repo.ugm.ac.id/debian/ stable main contrib non-free

Kambing.ui.edu
deb http://kambing.ui.edu/debian etch main contrib non-free
deb http://kambing.ui.edu/debian etch/volatile main contrib non-free
deb http://kambing.ui.edu/debian-security etch/updates main contrib non-free

mirror.its.ac.id
deb http://mirror.its.ac.id/debian etch main non-free contrib
deb http://mirror.its.ac.id/debian stable-proposed-updates main non-free contrib
deb http://mirror.its.ac.id/debian-security etch/updates main non-free contrib

komo.vlsm.org
deb http://komo.vlsm.org/debian etch main non-free contrib
deb http://komo.vlsm.org/debian etch-proposed-updates main non-free contrib
debian.indika.net.id
deb http://debian.indika.net.id/debian etch main non-free contrib
deb http://debian.indika.net.id/debian etch-proposed-updates main non-free contrib

ftp://ftp.itb.ac.id
deb ftp://ftp.itb.ac.id/pub/debian etch main non-free contrib
deb ftp://ftp.itb.ac.id/pub/debian etch-proposed-updates main non-free contrib

oh ya domain KAMBING.UI.EDU sudah ganti menjadi KAMBING.UI.AC.ID mohon segera diupdate sources.list APT anda.

Salam kenal mas Henry, saya lagi nyoba open GTS di window xp dan mapnya pake server geoserver yang di install pada pc yang sama. yang saya mau tanyakan gimana caranya biar open GTS ngambil OpenLayers.js dari server geoservernya ga dari openlayers.org. karena kalau komputer ga connect internet map yg di geoserver ga tampil, kalau di connect ke internet mapnya tampil. Terimakasih sebelumnya.

Hallo .. mas bagus banget nih artikel nya, tapi artikel ke 2 belum ada ya mas ?

slam kenal mas henry.. mas mau.. gmn cara instalasi OPENGTS pada windows ya… sy sdh coba2… kok gak bs…2… maap sy newbie bgt….mhn pencerahannya.. di tgg ya mas : ketatap@gmail.com

belum mencoba opengts dengan windows,sebaiknya menggunakan linux sesuai tutorial diatas.

Bermanfaat sx. ditunggu artikel lanjutannnya !

mas mohon lanjutan tutorialnnya dong mas

mas mohon artikel lanjutanya

mohon artikel lanjutannya.
kalo opengts di install di ubuntu bisa gak?

mz maff ya ane newbi dowload Java Compiler Sun’s Java JDK,
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode).
dimna ya

Dear Mas herry,,

untuk tutorial lanjutannya bagaimana,saya sedang belajar cara menghubungkannya ke device2 seperti ke hp agar dapat berfungsi mohon artikel lanjutannya mas..atau bisa kirim ke email saya ..

Terima Kasih…

Kang … lanjutannya kog kgak ada ???? ... nice post nihh ….

cialis radical prostatectomy

cheap cialis

bula do cialis 20mg

buy cialis online

Write a comment