Openbravo ERP Installation on Ubuntu 7.1 Server
If you have found this, you are probably saying… “Help me Bit-Boy, I’m just a newb! Share with me your knowledge, wisdom and God-like *nix skills!” (No, thats not a typo newb!) So, in a moment of kindness, I took it upon myself to document how to install Openbravo ERP. Yes, after this, you will probably explain to your client just how insanely difficult this software is to configure and that only you at your very reasonable rate of (insert ridiculous amount of $ here) could get it done. Just remember that the Bit Boy helped you out and beer money is greatly appreciated.
Note: This installation was completed from a clean installation of Ubuntu 7.1 Server. No desktop environment was installed. (Didn’t I tell you my *nix powers were God-like?)Even though I have proven my superior intelligence yet again, you should be able to use the same process from the desktop. If you have just installed Ubuntu server and are trying to figure out how to get the GUI installed, just type: sudo apt-get install ubuntu-desktop at the command line.
Step 1: Enable Ubuntu Extra Packages
sudo gedit /etc/apt/sources.list Edit and remove the # from the beginning of lines 43 and 44. This is necessary to install the correct Java Runtime Environment and Java Development Kit.
Step 2: Install Necessary Packages (the easy way)
sudo apt-get updatesudo apt-get install sun-java6-jdk sun-java6-jre libpg-java postgresql-8.2 tomcat5.5 tomcat5.5-admin tomcat5.5-webappssudo apt-get dist-upgrade [optional - upgrades all currently installed packages]
If you dont feel like typing all of that, you can copy and paste it in, minus the note at the end of course.
Step 3: Setup Postgres Administrator User
- sudo su postgrespsql
- Now, in the Postgres client: ALTER USER postgres WITH PASSWORD ‘your perferred password’;
- \q to exit
Step 4: Get Openbravo and Begin Installation
- wget [Openbravo installer URL]
- sudo chmod a+rwx [Openbravo installer file]
- sudo ./[Openbravo installer file]
Generally, you can find the latest installer file here http://sourceforge.net/projects/openbravo/
Step 5: Set Environment Variables
- echo ‘JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun”‘ | sudo tee -a /etc/environment
- echo ‘JRE_HOME=”/usr/lib/jvm/java-1.5.0-sun”‘ | sudo tee -a /etc/environment
- echo ‘CATALINA_HOME=”/usr/share/tomcat5.5″‘ | sudo tee -a /etc/environment
- echo ‘CATALINA_BASE=”/var/lib/tomcat5.5″‘ | sudo tee -a /etc/environment
- echo ‘CATALINA_OPTS=”-server -Xms384M -Xmx512M”‘ | sudo tee -a /etc/environment
- sudo gedit /etc/init.d/tomcat5.5 There is a problem with JDK 1.5.0_13 and the jsvc binary used in the Apache Tomcat daemon script. Modify it [/etc/init.d/tomcat5.5], by setting the LD_LIBRARY_PATH variable pointing to the path where the libawt.so shared library is located.
Next, due to the security policies of debian’s tomcat package, it is necessary to either create a rule or disable it. Otherwise it will refuse to load the openbravo context. To disable it, edit /etc/init.d/tomcat5.5 and change TOMCAT5_SECURITY=YES into TOMCAT5_SECURITY=NO.
Step 6: Answer Openbravo’s Questions and Wait 1-2 Hours
- Installation Directory: [Just Type Enter]
- Attachments Directory: [Just Type Enter]
- Installation Type: [Just Type Enter]
- Installation Type: [Just Type Enter]
- Database: 1
- PostgresJava Directory: [Just Type Enter]
- Ant Directory: /usr/share/ant
- Tomcat Directory: /usr/share/tomcat5.5
- Domain: Enter your domain, if you dont know what a domain is, you are an idiot. If you are an idiot, just type localhost or your static IP Address.
- Port: 8180 Note: This is specific to the Ubuntu installation, normally this value would be the secondary HTTP port 8080. If you want to change it, that is find, just remember to go back and edit the tomcat configuartion files to indicate this port as well.
- Context Name: [Just Type Enter]
- PostgreSQL Directory: /usr/lib/postgresl/8.2/bin
- Database Host: [Just Type Enter]
- Database Port: [Just Type Enter]
- Database Name: [Just Type Enter]
- Postgres Password: Enter the password you selected in step 3.
- Username: [Just Type Enter]
- Password: Create another password
- Continue?: y
- Now, just kick back, relax and crack open a nice cold beer, look at pictures of Britney Spears or whatever you newbs do.
Step 7: Restart Tomcat
- sudo /etc/init.d/tomcat5.5 restart
Step 8: Now Login Newb!
- http://yourdomain:8180/openbravo or http//localhost:8180/openbravo or http://yourip:8180/openbravo (That should give you enough options. I dont want anyone sending me emails saying “But Bit-Boy, your instructions are wrong, my browser cant find the server”)
- Login: Openbravo Pass:openbravo (Note the caps in the Login!)
This document is copyright 2008 by the Bit-Boy’s-Blog all rights reserved. Got that bitches!? You may NOT, I repeat NOT reproduce this content in any way without the express permission of the Bit Boy himself. Should you violate these copyright restrictions I will have no choice but to send this woman over to sit on you.
Tags: 7.10, database, ERP, guide, howto, installation guide, newb, openbravo, openbravo installation, postgres, server, ubuntu
March 5th, 2008 at 6:06 pm
Hey Bit Boy,
I’m following your steps right now but I can’t figure out how to edit this /etc/init.d/tomcat5.5?
I typed in sudo gedit /etc/init.d/tomcat5.5
And i get a command not found.
Then i just typed in /etc/init.d/tomcat5.5 and i get *Usage: /etc/init.d/tomcat5.5 {start|stop|restart|try-restart|force-reload|status}
How do I set this variable LD_LIBRARY_PATH? and how do it disable to security?
Thanks!
April 7th, 2008 at 8:54 pm
Question 1: Were you using Ubuntu 7.1?
You probably just dont have gedit installed, if you want, you can impress your friends by using the superior editor. VI.
just type sudo vi /etc/nit.d/tomcat5.5
type escape + i to put the editor into insert mode, then use the arrow keys to move around the file. Once you are done editing, type escape, then :w (no, that is not typo newb) and then Enter. This should write to the file. then :q to exit the editor.
Good luck, if you get things to work, let me know. Sorry about the delay responding, the Bit Boy has been on vacation and returned to find 1000 spam postings to delete.
October 25th, 2008 at 8:16 am
hi,
i get this error report on stept 2:
sudo apt-get updatesudo apt-get install sun-java6-jdk sun-java6-jre libpg-java postgresql-8.2 tomcat5.5 tomcat5.5-admin tomcat5.5-webappssudo apt-get dist-upgrade
E: Ungültige Operation updatesudo.
what can i do?
October 29th, 2008 at 8:03 am
Hmmm, the bit boy hates error messages in other languages. It would appear that you are doing the old copy and paste into the terminal. Ok, there is a bit of a typo on that instruction line. The fixed version is below.
[First Command]
sudo apt-get updatesudo apt-get install sun-java6-jdk sun-java6-jre libpg-java postgresql-8.2 tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
[Second Command]
sudo apt-get dist-upgrade [optional - upgrades all currently installed packages]
Since the Bit-Boy made the error, I will skip the usual harassment and name calling.