–> 1.Create users
-
- openbravo [sudo adduser openbravo]
- postgres [sudo adduser postgres]
- tomatc6 [sudo adduser tomcat6]
- Give the role to all 3 as admin [sudo adduser openbravo admin, sudo adduser postgres admin, sudo adduser tomcat6 admin]
- Installing PostgreSQL on Debian (Ubuntu/Kubuntu/Linux Mint)
- Install the package using [sudo apt-get install postgresql-8.4 postgresql-contrib-8.4]
- 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]
- Installing the Java SDK on Debian (Ubuntu/Kubuntu/Linux Mint)
- Without X server
- Enable the Partner’s Repository:
- Without X server
[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]
- 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 sun-java6-jdk. The Multiverse repository is enabled by default in version Ubuntu 7.10 onwards.
- Install the package:
[ sudo apt-get install sun-java6-jdk]
- Set the Sun Java JDK as the default JDK:
[sudo update-java-alternatives -s java-6-sun]
- Create the JAVA_HOME variable:
[ echo ‘JAVA_HOME=”/usr/lib/jvm/java-6-sun”‘ | sudo tee -a /etc/environment]
- To make this variable available in your current terminal run:
- source /etc/environment
- Installing Apache Tomcat on Debian (Ubuntu/Kubuntu/Linux Mint)
- Install the package:
[ sudo apt-get install tomcat6 tomcat6-admin ]
[sudo rm /var/log/tomcat6/catalina.out ]
[sudo /etc/init.d/tomcat6 start ]
- 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.
- 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]
- if you don’t have installed nmap you can try
[sudo netstat -atunep|grep 8080|grep jsvc]
- 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.
- 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 ]
- Edit the /etc/default/tomcat6 file, and set the following line:-
[JAVA_OPTS=”-server -Djava.awt.headless=true –Xms720M –Xmx1024M -XX:MaxPermSize=512M”]
- To make this variable available in your current terminal run:
- source /etc/environment
- To make these variables available system wide, restart the user session.
- 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/]
- 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> –>
- 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>
- 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.
- Installing Apache Ant on Debian (Ubuntu/Kubuntu/Linux Mint)
- Install the package:
[sudo apt-get install ant ant-optional]
- Set the ANT_HOME variable:
[echo ‘ANT_HOME=”/usr/share/ant”‘ | sudo tee -a /etc/environment]
- Set the ANT_OPTS variable:
[echo ‘ANT_OPTS=”-Xmx1024M -XX:MaxPermSize=128M”‘ | sudo tee -a /etc/environment]
- Make the ANT_HOME and ANT_OPTS variables available in your current terminal run:
- source /etc/environment
- To make the variables available system wide, restart the user session.
- Install the Openbravo source
- Copy the source file at /opt
- Change the owner as openbravo user
[chown /opt/openrbavo openbravo:openbravo –R]
[chmod 771 /opt/openrbavo –R]
- Build the openbravo at /opt/openbravo
- [ant install.source]
- [ant smartbuild]
[chown /var/lib/tomcat6/openrbavo tomcat6:tomcat6 –R]
[chmod 771 /var/lib/tomcat6/–R]
Enjoy it 😉
Woah! I’m really loving the templatetheme of this website. It’s simple, yet effective. A lot of times it’s hard to get that perfect balance between usability and visual appeal. I must say you have done a great job with this. In addition, the blog loads super quick for me on Firefox. Excellent Blog! fbdbcddbaakd
Thank you john for your kind comments . you’re welcome 🙂
A big thank you for your article.Really thank you! Cool. gfdkffekegbc
You’re welcome my friend 😉