HOW TO install GESTIX 5.0 on Ubuntu 12.04 LTS Server

PS: I am in no away affiliated with Gestix or the company. I claim no special knowledge of the software. I can’t offer any warranty on the quality of the final installation, should you proceed as suggested. Proceed at your own risk.

This how-to uses GESTIX .deb binary distribution.

A tar.gz file is also available. If you can’t use .deb, (Fedora, RedHat, CentOS, etc) you can learn what to do from it.
With a .deb parser (for example “mc” (midnight commander)), open the deb and checkout the PRE and POST install scripts.  You will then know what you have to do. See below.

Now, if you are using .DEB:

##########################################
# It’s safe to copy paste execute the script below

apt-get update

# poppler-utils is needed for the PDF generator , used by htmldoc
# take note of the root password selected for mysql. You’ll need it
apt-get install mysql-server apache2 poppler-utils libssl0.9.8
# Gestix 5.0 (and previous) requires libmysqlclient16, which has been replaced by v18.
wget http://launchpadlibrarian.net/75954717/libmysqlclient16_5.1.58-1ubuntu1_amd64.deb
dpkg -i libmysqlclient16_5.1.58-1ubuntu1_amd64.deb

wget “http://www.gestix.com/download/v5_0/gestix_erp_amd64.deb
dpkg –i Gestix_erp_amd64.deb

cd /var/lib/gestix/bin/
mv htmldoc htmldoc.i386
mv htmldoc.64 htmldoc

#provide mysql root password when asked

##########################################

Now, proceed configuring the software itself. Point your browser to:

http://IP_SERVER/gnet/cgi-bin/gestix.cgi

Fill in all the data and proceed through the forms.

Ignore all complains of a non-existent gnet_db database. Just click “continue” every time it shows.

Enter the GESTIX license number when requested

Configure your invoice template, logo, and all the rest.

Tips:

–    To configure the GUI colors, checkout the CSS of the page you want to change with Firebug or chrome F12 devel console, for example, and then edit the appropriate .css in /var/lib/gestix/www/includes

–    To reconfigure template documents, one way to go about it is to duplicate the desired template into the “documents” folder. To know which one to pick, chose the most similar template to the one you want. Then print a document (via the browser, not via PDF). Check the URL , one of the fields will be …&prtsel=5&..
The 5 there means you’ll want to base your customization on this template. example:

cp –a /var/lib/gestix/www/html/5 /var/lib/gestix/documents

edit the files in /var/lib/gestix/documents/5

You can also use Firebug on the browser print preview pane. On chrome, cancel the print dialog, and “inspect element” on the items you want to change. Then, edit the html files. Refresh. Repeat until satisfied.

–    To have Gestix running on an encritped HTTP connection (ie HTTPS), which is highly suggested if you are running Gestix on the Internet, the PDF generator will not be able to reach your company logo on https. So, either keep at least a copy of that file reachable on the same URL, on http, or edit the desired .html template document and hardcode the logo url (http://SERVER/images/logo.png) for example, where you find the $doclogo  variable.

###

If you must use GESTIX from the tar.gz file:

–    make sure mysql and http are installed and running (duh!)

–    copy and add Gestix libs (.so) to your system (which Gestix .deb script abusively copies straight into /usr/lib (!)

–    add the contents of gestix_http.conf to your apache configuration,

–    restart apache

–    chown gestix/temp and gestix/www/images to httpd-user

–    grant privileges to gestix on mysql:

–    mysql -u root -p –execute=”GRANT ALL PRIVILEGES ON *.* TO ‘gestix’@’localhost'”

plus run:

echo db > /var/lib/gestix/temp/EnableConfig.cfg (or wherever you installed gestix)
chmod 755 /var/lib/gestix/bin/htmldoc
cd /var/lib/gestix/www/cgi-bin
ln -sf gnet-app.cgi gestix.cgi
ln -sf gnet-pos.cgi gestixpos.cgi

Contribution

Sílvio Macedo
CEO – Xarevision, S.A.
www.xarevision.pt

Deixe uma resposta/Leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s