Openbravo POS/Installation guide
openbravo POS is an application developed in java and to execute it you will need the Sun Java Runtime Environment 1.4.2 or greater.
You can install Java from Sun's website
Ensure to have the multiverse repository activated and type
sudo apt-get install sun-java6-jre sun-java6-fonts
Download and unpack openbravo POS
Download the last version of the binary package of LibrePOS from Sourceforge, open it with your favourite decompresser and extract all the files to an empty folder.
In windows execute the file "start.bat", in Linux execute "start.sh" to make sure everything is running correctly. openbravo POS should display a warning alerting that it has found an empty database. Click OK to create the database structure necessary to run LibrePOS.
At this point you should decide whether you want to run LibrePOS on the built-in HSQLDB engine or, alternatively Database_configuration|use the MySQL or PostgreSQL databases
LibrePOS uses HSQLDB by default for data storage. HSQLDB is bundled with the binary package of LibrePOS and offers an advantage in that it doesn't have to be configured. However, a lot of users choose other relational databases for performance or reliability.
To configure the database go to the configuration panel or run the file "configuration.bat" in windows or "configuration.sh" in linux. Please be aware that once you restart LibrePOS, it will tell you that your database is empty and will offer you to create tables for your new database. This is normal. Click the 'yes' button to allow LibrePOS to create the tables for you (In LibrePOS version 0.0.24 there should be 26 tables).
The properties related to the database configuration are:
|Driver library||Is the file provided by the database engine vendor that contains the JDBC driver that allows Java programs to communicate with the database. It is usually a JAR file.|
|Driver class||Is the java class name that implements the JDBC driver. This name is also defined by the database engine vendor.|
|URL||Is the connection string that uses JDBC to localize the JDBC the driver and the database.|
|User||The name of the authorized database user.|
|Password||The password of the database user.|
Download MySQL server (essentials package recommended) and install it.
Download MySQL Connector/J, unzip the contents and place it in the same folder where LibrePOS resides.
Activate the universe repository and do
sudo apt-get install mysql-server libmysql-java
You can also install phpMyAdmin
sudo apt-get install phpmyadmin php5
Connector/J is on /usr/share/java/mysql.jar. You can copy or link it to LibrePOS' folder
Create a user and a database. You can check MySQL documentation An example of a database configuration using MySQL as database engine is:
Driver library: mysql-connector-java-3.1.6-bin.jar Driver class: com.mysql.jdbc.Driver URL: jdbc:mysql://localhost:3306/tinapos User: yourname Password: yourhost
To use LibrePOS with PostgreSQL you must have a PostgreSQL server running and the JDBC driver for PostgreSQL.
Ensure you have the universe repository activated and do
sudo apt-get install postgresql-8.2 libpg-java
You can also install administrators like pgAdmin3 or phpPgAdmin
sudo apt-get install pgadmin3
sudo apt-get install phppgadmin php5 php5-pgsql
The JDBC lib is on /usr/share/java/postgresql.jar. You can copy or link it to LibrePOS' folder
After the database server is installed and running you have to create an empty database for LibrePOS and a database user with privileges to connect to this database. You can check PostgreSQL documentation
An example of a database configuration using PostgreSQL as database engine is:
Driver library: postgresql-8.0.309.jdbc3.jar Driver class: org.postgresql.Driver URL: jdbc:postgresql://localhost:5432/tinapos User youruser Password: youpass
An example of database configuration is
Driver library: ojdbc14.jar Driver class: oracle.jdbc.driver.OracleDriver URL: jdbc:oracle:tinapos:@localhost User youruser Password: youpass