Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Tips, Tricks & Tutorials

Post new topic   This topic is locked: you cannot edit posts or make replies.
OpenBravo ERP on SMS
View previous topic :: View next topic  
Author Message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Sep 20, 2007 11:30 pm    Post subject: OpenBravo ERP on SMS Reply with quote

Updated August 2009
Openbravo ERP is included in SMS.Native.CD-Extra.iso

What is OpenBravo?
You can use the script to install opebravo on Slackware too.

Here is the script sms.openbravo.sh
Place it on a clean folder and run it.
It will download and install all the required packages and will set permissions, start services and will ask you to choose the password for postgres user.
After the script end you only need to logout and login and start tomcat with the command
/etc/rc.d/rc.tomcat start
Afterwards start the OpenBravo Installer.
./OpenbravoERP-2.35-linux-installer.bin
Theoretically the installer should find the default dirs if you logout, but here are the prefixs to be sure.

Code:
java = /usr/lib/jdk
ant = /usr/lib/ant
tomcat = /usr/share/tomcat
psql-bin = /usr/bin


|----------------------------------------------------------------------------------------|

Here is a glimpse of the script.


Code:
#!/bin/bash
#This Script will download required packages for Openbravo

#If you have download the files just comment '#' or remove the 'wget' lines
SITE=http://sms.it-ccs.com/isos/openbravo/
SLACKJDK=http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/extra/jdk-6/
SLACKJRE=http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/patches/packages/
OPENBRAVO=http://heanet.dl.sourceforge.net/sourceforge/openbravo/

wget $SITE/tomcat-5.5.16-noarch-1stb.tgz             
wget $SITE/apache-ant-1.7.0-i586-bj.tgz             
wget $SITE/postgresql-8.2.4-i686-1mfb.tgz           
wget $SLACKJDK/jdk-6u2-i586-2.tgz                   
wget $SLACKJRE/jre-6u2-i586-1.tgz                   
wget $OPENBRAVO/OpenbravoERP-2.35-linux-installer.bin

groupadd -g 150 tomcat
useradd -g tomcat tomcat
echo " installing Packages"
installpkg *.tgz
chmod +x /etc/rc.d/rc.postgresql
chmod +x /etc/rc.d/rc.tomcat
chmod +x OpenbravoERP-2.35-linux-installer.bin
ln -s /usr/lib/jdk1.6.0_02/ /usr/lib/jdk
/etc/rc.d/rc.postgresql start

if [ $PSQLPASS="" ]; then
echo "Choose Password for Postgres"
read PSQLPASS
fi
echo "alter role postgres with password '$PSQLPASS';" >db.txt
psql -U postgres < db.txt
rm db.txt
echo "LOGOUT and LOGIN for changes to take effect
start tomcat with the command '/etc/rc.d/rc.tomcat start'
and run openbravo installer.
Prefix dirs are
java = /usr/lib/jdk
ant = /usr/lib/ant
tomcat = /usr/share/tomcat
psql-bin = /usr/bin"



gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    SMS Forum Index » Tips, Tricks & Tutorials All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional