Installing LemonPOS on the Raspberry Pi

Being that my previous attempt of installing the Openbravo ERP solution on the Raspberry Pi failed, I have decided to switch to the LemonPOS package. This has turned out to be much easier than installing Openbravo
All of these following steps will be performed in the terminal.
The first step is to make sure everything is up to date

sudo apt-get update
sudo apt-get upgrade

Now that everything is up to date, we can install the needed packages

sudo apt-get install kde-standard libqt4-dev

While kde is installed, it will prompt you to either choose LightDM or KDE. Being that we already have LXDE, we can choose LightDM since it has less resouces to install.
Once you have KDE, and QT4 installed, we can install mysql

sudo apt-get install mysql-client mysql-server

Now we need to install everything else that’s needed for the compile

sudo apt-get install build-essential g++ cmake gettext libqt4-sql-mysql kdelibs5-dev

The next step is to download the source, and move it over to the pi. You can get the source from sourceforge Click here to download latest release

You will need to either use sftp or scp to move the tarball to the pi.

After transferring the source to the pi, find it’s location. I put mine in /home/pi/Downloads

cd Downloads
tar -jxvf lemonpos-0.9.4-rc7.tar.bz2

Once it's finished extracting the tarball, move into the newly created directory, and create a 'build' Direcotry and move into it


cd lemonpos
mkdir build
cd build

Run CMake with your path to KDE4

cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`

Run make to compile lemonpos. This took about an hour on my pi

make


After the compile is finished, you will need to install everything

sudo make install

After everything is installed, we need to set up the initial database where everything will be stored

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

I haven't confirmed if the next step is needed, but I did it anyways just in case

cat mexico_taxes.sql | mysql -u root -p

You now have a working installation of LemonPOS! The next step is to set everything up. The username and password are set to the default of:

username: "admin"
password: "linux"

You can now go to the desktop, and run squeeze to set up all your items, and prices. After Squeeze is all set up, you can start using LemonPOS.
I decided that I wanted LemonPOS to start every time the desktop is loaded. To do this, you will need to add this line to the end of /etc/xdg/lxsession/LXDE/autostart

@lemon

This will make it so everytime the desktop is started, Lemon will start with it.
Now that everything is installed, you can go read the Users guide on SourceForge.net

Sources:
http://sourceforge.net/apps/mediawiki/lemonpos/index.php?title=Ubuntu_Installation_Guide

1 Responses to Installing LemonPOS on the Raspberry Pi

  1. Pingback: Installing Openbravo ERP software on a Raspberry Pi | | DBC Custom Computers

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>