Monday, April 4, 2011

Quick setup LemonPos

Lemon —in short— is an open source Point of Sale software targeted for micro, small and medium businesses.

For compiling lemonpos, first make sure you have kde4 installed . Then you can start compiling :

cd trunk
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/kde4 .. #here you put your path to kde4.
make
su
make install

When installing, you can see where it was installed, just in case you cant find a way to run lemon, write the location of the installation (the binary files are in /usr/bin or /usr/local/bin), also the menu entries are under something like “lost objects”.

copy the lemonrc file to your local .kde/share/config directory:
cp trunk/src/lemonrc /home/USER/.kde4/share/config/ #Replace USER with your username.

After compiling and installing lemonpos, you must proceed to the database creation before you can login and use lemonpos.

Things you will need:

* MySql Installed and ready to use.
* MySql’s root password
* The script to create the database, located in the database_resource folder from lemonpos code. If you are using lemon POS 0.6 version, the file is also installed on your /usr/share/apps/lemon/ or /usr/local/share/apps/lemon/ depending on your system and configuration. But if you use *ubuntu with lemon POS 0.5 version this file is missing for such version you can get it here

This task is very simple. All you have to do is to run the script as shown below:

cd trunk/database_resources
cat lemon_mysql.sql | mysql -u root -p

MySql will prompt for the password, type the mysql’s root password. If you dont know this, try searching the default password for your linux distribution.

If no errors are reported, you can start using lemonpos.

Now you can run lemonpos and squeeze. from your applications menu or by command. Note that if you run “lemon” and it is not found, maybe you installed at another location, try /usr/local/bin/lemon or /usr/local/bin/squeeze

Source: Lemon Pos Webblog

No comments: