1. Prerequisite
    1. apt-get update
    2. apt-get upgrade
  2. PostgreSQL Installation
    1. # sudo apt-get install postgresql postgresql-contrib
    2. # sudo -i -u postgres
    3. $ psql template1
    4. # template1=# ALTER ROLE postgres WITH PASSWORD ‘syspass’;
    5. # template1=# \q
    6. $ exit
    7. # service postgresql restart
  3. Openjdk installation
    1. #sudo apt-get install openjdk-6-jdk
  4. Create the required environment variables:
    1. # echo ‘export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64’ > /etc/profile.d/sun-jdk.sh
    2. # chmod +x /etc/profile.d/sun-jdk.sh
  5. Tomcat6 installation
    1. # sudo apt-get install tomcat6 tomcat6-admin tomcat6-user tomcat6-common
    2. Create the required environment variables:
    3. # sudo vim /usr/share/tomcat6/bin/catalina.sh
    4. Put the below line at the begining of the configuration
    5. export CATALINA_HOME=/usr/share/tomcat6
    6. export CATALINA_BASE=/var/lib/tomcat6
    7. export CATALINA_OPTS=”-server -Djava.awt.headless=true -Xms256M -Xmx2048M -XX:MaxPermSize=256M”
    8. # vim /etc/profile.d/tomcat6.sh
    9. export CATALINA_HOME=/usr/share/tomcat6
    10. export CATALINA_BASE=/var/lib/tomcat6
    11. export CATALINA_OPTS=”-server -Djava.awt.headless=true -Xms256M -Xmx2048M -XX:MaxPermSize=256M”
    12. # chmod +x /etc/profile.d/tomcat6.sh
    13. In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in
    14. # vim /etc/tomcat6/context.xml
    15. comment out or disable this
    16. <!– <WatchedResource>WEB-INF/web.xml</WatchedResource> –>
    17. Set admin password for tomcat6
    18. # vim /etc/tomcat6/tomcat-users.xml
    19. add the following lines
    20. <tomcat-users>
    21.   <role rolename=”manager”/>
    22.   <role rolename=”admin”/>
    23.   <user username=”admin” password=”admin” roles=”admin,manager”/>
    24. </tomcat-users>
    25. Copy the tools.jar library
    26. # cp $JAVA_HOME/lib/tools.jar /usr/share/tomcat/lib/
    27. # service tomcat6 restart
    28. logout and login again
    29. Check the environment variable
    30. echo $CATALINA_HOME
    31. echo $CATALINA_BASE
    32. echo $CATALINA_OPTS
    33. echo $JAVA_HOME
  6. Installation ant
    1. #apt-get install ant
    2. Create the required environment variables:
    3. export ANT_OPTS=”-Xmx1280M -XX:MaxPermSize=128M”
  7. Openbravo Installation
    1. Download the latest Openbravo source tarball. Save it anywhere you like, but don’t put it in apache’s DocumentRoot, nor in tomcat’s webapps. What needs to be there will be put there later in the installation process.
    2. http://sourceforge.net/projects/openbravo/files/
    3. $ tar -xjvf Openbravo-3.0MP31.tar.bz2
    4. 1. Move to the OpenbravoERP-3.0MP31 directory in a command line terminal and run:
    5.    $ ant setup
    6. 2. Move to the OpenbravoERP-3.0MP31/config directory.
    7.     Access the graphical configuration wizard:
    8.     Linux: make executable and run setup-properties-linux.bin
    9. After finish run
    10. $ ant install.source
    11. $ ant smartbuild
    12. $ /etc/init.d/tomcat6 restart
    13. Openbravo ERP girmek için link: http://localhost:8080/openbravo