Install Adempiere on Ubuntu 8.04
leave a comment »
Kali ini saya gunakan Ubuntu 8.04 untuk menginstall Adempiere, karena keterbatasan sumber daya saya instal melalui VirtualBox, ya.. jadi saya bikin server Adempiere dengan Ubuntu 8.04 yang saya instal di VirtualBox
Edit file hosts
$ sudo vim /etc/hosts
127.0.0.1 localhost.localhostadmin localhost
192.168.0.2 ubuntu.accounting ubuntu
Install Java
$ sudo apt-get install sun-java5-jdk sun-java5-jre sun-java5-plugin
Cek versi Java anda untuk memudahkan dalam mengedit parameter
$ java -version
java version “1.5.0_15″
Edit file enviroment
$ sudo vi /etc/environment
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/bin”
LANG=”en_US.UTF-8″
JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/”
ADEMPIERE_HOME=”/home/useranda/Adempiere”
Edit file ./profile
Tambahkan pada bagian terakhir sebelum “fi”
$ sudo vi /home/useranda/.profile
export JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/”
export ADEMPIERE_HOME=/home/useranda/Adempiere/
Install Postgresql
$ sudo apt-get install postgresql-8.3 postgresql-client-8.3
$ sudo vi /etc/postgresql/8.3/main/pg_hba.conf
# Database administrative login by UNIX sockets
local all postgres trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# “local” is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 192.168.0.2/32 trust
Download pljava di http://www.posterita.org/share/pljava.zip
$ sudo unzip pljava.zip -d /opt/`
$ sudo vi /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = ‘*’
dynamic_library_path = ‘\$libdir:/opt/pljava’
custom_variable_classes = ‘pljava’
pljava.classpath = ‘/opt/pljava/pljava.jar’
$ sudo vi /etc/ld.so.conf
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/native_threads
$ sudo ldconfig
$ sudo /etc/init.d/postgresql-8.3 restart
$ su – postgres
Password:
$ createuser -P -E -d adempiere
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y
CREATE ROLE
$ createdb -E UTF8 -O adempiere adempiere
CREATE DATABASE
$ sudo cp /home/useranda/Adempiere/lib/postgresql.jar /opt/pljava/
$ cd /opt/pljava
Install Jboss
Download jboss di http://www.jboss.org/jbossas/downloads/
$ sudo cp jboss-4.2.1.GA-src.tar.gz /usr/local/src/
$ sudo cd /usr/local/src/
$ sudo tar zxvf jboss-4.2.1.GA-src.tar.gz
$ sudo cd /usr/local/src/jboss-4.2.1.GA-src/build
$ sudo chmod +x build.sh
$ sudo ./build.sh
Download Adempiere terbaru di Adempiere dan Paduan Instalasi http://www.adempiere.org
$ cp Adempiere_354a.tar.gz /home/useranda
$ tar zxvf Adempiere_354a.tar.gz
$ su – postgres
$ psql -d adempiere </home/useranda/Adempiere/data/Adempiere_pg.dmp
$ cd Adempiere/
$ chmod a+x RUN_*
cd /home/useranda/Adempiere/utils/
$ ln -s RUN_UnixEnvTemplate.sh RUN_UnixEnv.sh
$ cd /home/useranda/Adempiere
$ ./RUN_setup.sh
Kemudian Jalankan server
$ cd /home/useranda/Adempiere/utils
$ ./RUN_Server2.sh
………
sampai muncul
11:39:22,583 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 2m:57s:63ms
Jalankan aplikasi Adempiere
$ ./RUN_adempiere.sh
Selamat mencoba