Powered by Blogger.
RSS

Install OpenBravo di Ubuntu

*** —————————— ***
Install OpenBravo di Ubuntu
*** —————————— ***
Requirements
————-
Hardware : 1024MB of RAM
Software    : Tomcat 6 commons
apache Ant
PostgreSQL 8.3
Sun Java 6 JDK
Apa sih Openbravo itu ?
Openbravo adalah suatu sistem manajemen bisnis (ERP) yg merupakan software opensource , sistem pengelolaan informasi untuk otomatisasi dari proses operasi, dan produktif dari sebuah perusahaan.
Sistem ini ditujukan untuk usaha kecil dan menengah yang mencari solusi yang terintegrasi dengan manajemen perusahaan bisnis, yang akan memungkinkan mereka menyelesaikan administrasi harian operasi, optimasi dari proses operasi, peningkatan pada kepuasan pelanggan, dan akhirnya, sebuah peningkatan keuntungan mereka. Openbravo terbuka untuk kodenya, selain berada di Indonesia, menawarkan banyak struktur yang ada untuk dikembangan lebih lanjut.

Dan sebelum melakukan langkah – langkah berikut pastikan ubuntu di update dan upgrade , karena saya asumsikan ubuntu server masih fresh install .
Langkah pertama (update ubuntu):
agar lebih cepat tambahkan repositori lokal (backup dulu repo lama)
update dan upgrade ubuntu
$ sudo apt-get update && sudo apt-get upgrade
Langkah Kedua (install dan konfigurasi sun java 6 jdk) :
gunakan sun java 6 jdk terbaru (jdk-6u23-linux-i586.bin)
download jdk terbaru disini : http://www.oracle.com/technetwork/java/javase/downloads/index.html
Install sun java 6 jdk (saya asumsikan di install di /opt/jdk)
$ sudo -i
Download Sun Java 6 JDK kemudian install di /opt/jdk
# ls
jdk-6u23-linux-i586.bin
# mv jdk-6u23-linux-i586.bin /opt
# ./jdk-6u23-linux-i586.bin
tunggu hingga proses intallasi selesai
# ls
jdk1.6.0_23
agar mudah di ingat ganti jdk1.6.0_23 dengan jdk
# mv jdk1.6.0_23 jdk
setelah itu setting path $JAVA_HOME
# cd /opt/jdk
# touch javapath.sh
# nano javapath.sh
export PATH=$PATH:/opt/jdk/bin
tambahkan javapath.sh agar di ekskusi pada saat startup
# nano /etc/profile
. /opt/jdk/javapath.sh
kemudian reboot server
# reboot


stelah login kembali cek apakah java sudah di kenali oleh sistem
$ java -version
java version “1.6.0_23″
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
$ javac -version
javac 1.6.0_23

Langkah ketiga (install tomcat)
gunakan tomcat 6 bisa download di : http://tomcat.apache.org/download-60.cgi
Install tomcat dengan cara sebagai berikut
Download tomcat 6 dan unzip ke direktori /opt
$ sudo -i
# cp apache-tomcat-6.0.26.tar.gz /opt
# cd /opt
# tar -zxvf apache-tomcat-6.0.26.tar.gz

# ls
apache-tomcat-6.0.26
agar lebih mudah di ingat ganti apache-tomcat-6.0.26 dengan tomcat
# mv apache-tomcat-6.0.26 tomcat
kemudian ganti chmod nya dengn 777
# chmod 777 -R tomcat
Langkah keempat (install postgresql-8.3)
sebelumnya pindahkan repo nya memakai karmic dan aktifkan repo sebelumnya
* openbarvo hanya bisa di install dengan database postgresql-8.3 atau oracle
$ sudo apt-get install postgresql-8.3


buat password untuk admin postgresql-8.3
$ sudo sed -i ‘s/ident sameuser$/trust/’ /etc/postgresql/8.3/main/pg_hba.conf
$ sudo /etc/init.d/postgresql-8.3 restart
$ psql -U postgres
Welcome to psql 8.3.8, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

postgres=# alter role postgres with password ‘admin’ ;
ALTER ROLE
postgres=# \q
$ sudo sed -i ‘s/trust$/md5/’ /etc/postgresql/8.3/main/pg_hba.conf
$ sudo /etc/init.d/postgresql-8.3 reload
kemudian cek apakah password sudah berubah
$ psql -U postgres
Password for user postgres: admin
Langkah ke Lima (install apache ant)
$ sudo apt-get install ant ant-optional

$ echo ‘ANT_HOME=”/usr/share/ant”‘ | sudo tee -a /etc/environment

$ source /etc/environment
cek apakah ant sudah dikenali system
$ ant -version
Apache Ant version 1.7.1 compiled on July 2 2010
Langkah ke Enam (install Openbranvo)
gunakan openbravo 2.4
download openbravo terlebih dahulu
$ wget -c http://dfn.dl.sourceforge.net/sourceforge/openbravo/OpenbravoERP_2.40-linux-x64-installer.bin
$ sudo -i
# chmod +x OpenbravoERP_2.40-linux-installer.bin
# ./OpenbravoERP_2.40-linux-installer.bin

enter terus kemudian ikuti petunjuk berikut
Do you accept this license? [y/n]: [y]

Installation directory
Please specify the directory where Openbravo ERP will be installed
[/opt/OpenbravoERP]: [enter]
—————————————————————————-
Attachments directory
Please specify a directory for the Openbravo ERP attachments
[/opt/OpenbravoERP/AppsOpenbravo/attachments]: [enter]
—————————————————————————-
Installation mode
Please select the installation mode you wish to perform
[1] Complete
The database and the application server in the same computer
[2] Distributed
The database and the application server in different computers
Please choose an option [1] : [enter]
—————————————————————————-
Complete installation
Please select the installation type you wish to perform
[1] Standard
Installs the database and sets up the application server.
Recommended.
[2] Development
Installs the database and and sets up the application server
through a compilation process.
Recommended for developers.
Please choose an option [1] : [enter]
—————————————————————————-
Stack: Java home directory
Please specify the directory where the JDK is located
[/opt/jdk]: [enter]
—————————————————————————-
Stack: Ant executable
Please specify the location where the Ant executable is located
[]: /usr/bin/ant
—————————————————————————-
Stack: Tomcat directory
Please specify the directory where Tomcat is located.
In case of having Tomcat split into 2 directories, select the one containing the webapps directory
[]: /opt/tomcat
—————————————————————————-
Database
Please select a database
[1] PostgreSQL
[2] Oracle
Please choose an option [1] : [enter]
Please specify the directory where the binaries of the PostgreSQL installation are located (psql, pg_restore, vacuumdb)
[/usr/bin]: [enter]
—————————————————————————-
Database: server parameters
Please enter the IP address of the PostgreSQL database
Database host [localhost]: [enter]
Please enter the port of the PostgreSQL database
Database port [5432]: [enter]
—————————————————————————-
Enter the password for your “postgres” administrator user
Password :admin
Retype password :admin
—————————————————————————-
Please enter the name of the PostgreSQL database
Database name [openbravo]:
Please enter a username for the Openbravo ERP PostgreSQL database
Username [tad]:
Please enter a password for the new database user
Password : kediri
Retype password : kediri
—————————————————————————-
Enter a context name.
This is used in the URL to access Openbravo ERP:
http://<ip_address>:<port>/context_name
Context name [openbravo]:
—————————————————————————-
Openbravo ERP: date/time options
Please select the preferred date and time formats
Date format
[1] DD MM YYYY
[2] MM DD YYYY
[3] YYYY MM DD
Please choose an option [1] : [enter]
Date separator
[1] -
[2] /
[3] .
[4] :
Please choose an option [1] : [enter]
Time format
[1] 12h
[2] 24h
Please choose an option [2] : [enter]
Time separator
[1] :
[2] .
Please choose an option [1] : [enter]
—————————————————————————-
Openbravo ERP: demo data
Should the installer populate the database with demo data?
[Y/n]: Y
—————————————————————————-
Setup is now ready to begin installing Openbravo ERP on your computer.
Do you want to continue? [Y/n]: Y
—————————————————————————-
Please wait while Setup installs Openbravo ERP on your computer.
Installing
0% ______________ 50% ______________ 100%
########################################
—————————————————————————-
Setup has finished installing Openbravo ERP on your computer.

tunggu hingga benar-benar selesai
karena proses finising ini membutuhkan waktu kurang lebih 1 jam
Langkah ke Tujuh
jalankan tomcat dengan cara sebagai berikut
$ cd /opt/tomcat
$ ./bin/startup.sh && tail -f logs/catalina.out
supaya tomcat nya berjalan secara otomatis kita lakukan perintah seperti di bawah
#nano /etc/rc.local
lalu tambahkan di dalam nya sh /opt/tomcat/bin/startup.sh seperti gambar dibawah

untuk uji coba akses menggunakan browser : http://<ip yang mau di akses>:8080/openbravo
contoh  : http://192.168.0.1:8080/openbravo
default access
username : Openbravo
password : openbravo
*** —————————— ***
SELAMAT MENCOBA
*** —————————— ***

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS