You are on page 1of 3

1. Installation of UBUNTU Server/Desktop 2. Create users a. openbravo [sudo adduser openbravo] b. postgres [sudo adduser postgres] c.

tomatc6 [sudo adduser tomcat6] 3. Give the role to all 3 as admin [sudo adduser openbravo admin, sudo adduser postgres admin, sudo adduser tomcat6 admin] 4. Installing PostgreSQL on Debian (Ubuntu/Kubuntu/Linux Mint) a. Install the package using [sudo apt-get install postgresql-8.4 postgresql-contrib-8.4] b. Set the postgres password using: [ sudo /etc/init.d/postgresql-8.4 start sudo su - postgres -c psql # alter role postgres with password 'new_password'; # \q] 5. Installing the Java SDK on Debian (Ubuntu/Kubuntu/Linux Mint) a. Without X server i. Enable the Partners Repository: [sudo add-apt-repository "deb http://archive.canonical.com/ubuntu YOUR_UBUNTU_VERSION_HERE partner"] [sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu YOUR_UBUNTU_VERSION_HERE partner"] [sudo apt-get update] b. You must add unstable/non-free apt repositories to install sun-java-jdk6. Ubuntu/Kubuntu users may also need to add the Multiverse repository to install sunjava6-jdk. The Multiverse repository is enabled by default in version Ubuntu 7.10 onwards. c. d. Install the package: [ sudo apt-get install sun-java6-jdk] e. Set the Sun Java JDK as the default JDK: [sudo update-java-alternatives -s java-6-sun] f. Create the JAVA_HOME variable: [ echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | sudo tee -a /etc/environment] g. To make this variable available in your current terminal run: i. source /etc/environment 6. Installing Apache Tomcat on Debian (Ubuntu/Kubuntu/Linux Mint) a. Install the package: [ sudo apt-get install tomcat6 tomcat6-admin ] [sudo rm /var/log/tomcat6/catalina.out ] [sudo /etc/init.d/tomcat6 start ]

b. Note: On Ubuntu the 'sudo rm /var/log/tomcat6/catalina.out' command may not find the file, resulting in an error message. This will not affect the installation. c. Check that Tomcat is running by opening http://localhost:8080 in a web browser. Alternatively use the following nmap command to check that port 8080 is open: [nmap localhost -p 8080] d. if you don't have installed nmap you can try [sudo netstat -atunep|grep 8080|grep jsvc] e. Note: Earlier versions of Debian based distributions configured Tomcat to run on port 8180. If you cannot verify that Tomcat is running on port 8080, please try 8180 instead. f. Set the CATALINA_HOME, CATALINA_BASE and CATALINA_OPTS variables: [echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment] [echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment ] g. Edit the /etc/default/tomcat6 file, and set the following line:[JAVA_OPTS="-server -Djava.awt.headless=true Xms720M Xmx1024M XX:MaxPermSize=512M"] h. To make this variable available in your current terminal run: i. source /etc/environment j. To make these variables available system wide, restart the user session. k. Check if the tools.jar library is present in Tomcat's classpath in directory /usr/share/tomcat6/lib and, if not, add it: [cp $JAVA_HOME/lib/tools.jar /usr/share/tomcat6/lib/] l. In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in /var/lib/tomcat6/conf/context.xml: <!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> --> m. Configure a username and password for the Tomcat Manager, by replacing the /etc/tomcat6/tomcat-users.xml file with these contents, replacing password="admin" with your chosen password: <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="admin" roles="admin,manager"/> </tomcat-users> n. Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat6 file, search for umask 022 and replace it with umask 002. Then restart Tomcat. 7. Installing Apache Ant on Debian (Ubuntu/Kubuntu/Linux Mint) a. Install the package: [sudo apt-get install ant ant-optional] b. Set the ANT_HOME variable: [echo 'ANT_HOME="/usr/share/ant"' | sudo tee -a /etc/environment] c. Set the ANT_OPTS variable:

[echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' | sudo tee -a /etc/environment] d. Make the ANT_HOME and ANT_OPTS variables available in your current terminal run: i. source /etc/environment e. To make the variables available system wide, restart the user session. 8. Install the Openbravo source a. Copy the source file at /opt b. Change the owner as openbravo user [chown /opt/openrbavo openbravo:openbravo R] [chmod 771 /opt/openrbavo R] c. Build the openbravo at /opt/openbravo d. [ant install.source] e. [ant smartbuild] [chown /var/lib/tomcat6/openrbavo tomcat6:tomcat6 R] [chmod 771 /var/lib/tomcat6/R]

You might also like