Difference between revisions of "TinyERP"

From Organic Design wiki
(installing)
 
(a bit further)
Line 24: Line 24:
 
== Setting up for Web Access ==
 
== Setting up for Web Access ==
 
see [http://tinyerp.org/wiki/index.php/InstallationManual/WebClientInstallLinux WebClientInstallLinux]
 
see [http://tinyerp.org/wiki/index.php/InstallationManual/WebClientInstallLinux WebClientInstallLinux]
 +
<pre>
 +
apt-get install python2.4-setuptools python-turbogears
 +
apt-get install build-essential
 +
apt-get install python2.4-dev
 +
apt-get install python2.4-numeric
 +
apt-get install python2.4-numeric-ext
 +
apt-get install libfreetype6-dev
 +
apt-get install libpng12-dev
 +
apt-get install python-matplotlib
 +
apt-get install python-numpy
 +
</pre>
 +
Download the latest [http://www.tinyerp.com/download/development/source/eTiny-0.0.1.tar.gz eTiny] extract to a dir like ''/var/www/eTiny-0.0.1'', set the configuration in ''eTiny-0.0.1/tinyerp/config/app.cfg'' to:
 +
<pre>
 +
tiny.server = "localhost"
 +
tiny.port = 8070
 +
tiny.protocol = "http"
 +
</pre>

Revision as of 10:55, 4 August 2007

First install TinyERP and Postgres from root user,

apt-get install tinyerp-server
apt-get install postgresql postgresql-client
apt-get install python2.4 python2.4-psycopg python2.4-libxml2
    python2.4-xml python2.4-libxslt1 python-reportlab
    python2.4-imaging python-pyparsing graphviz python-tz

The Debian apt-get got postgres client and server sets up the postgres user and sets the data location up in a directory called main in the same location as the directory of the running binary. Set the password for the postgres user while still logged in as root. The postgres data location must be initialised first by logging back in as the postgres user and then initialise the data directory (see pgdocs), eg:

/usr/lib/postgresql/7.4/bin/initdb -D /usr/lib/postgresql/7.4/main
/etc/init.d/postgresql-7.4 restart

If this succeeds you can create the tinyerp db and user as follows (see SetupAPostgresqlUserAndDatabase). This operation must still be done from the postgres user.

createuser -U postgres --no-createdb --no-adduser -P terp
createdb -U postgres -O terp --encoding=UNICODE terp-no-createdb --no-adduser -P terp

TinyERP should now be able to run, try restarting it with the following:

/etc/init.d/tinyerp-server restart

Setting up for Web Access

see WebClientInstallLinux

apt-get install python2.4-setuptools python-turbogears
apt-get install build-essential
apt-get install python2.4-dev
apt-get install python2.4-numeric
apt-get install python2.4-numeric-ext
apt-get install libfreetype6-dev
apt-get install libpng12-dev
apt-get install python-matplotlib
apt-get install python-numpy

Download the latest eTiny extract to a dir like /var/www/eTiny-0.0.1, set the configuration in eTiny-0.0.1/tinyerp/config/app.cfg to:

tiny.server = "localhost"
tiny.port = 8070
tiny.protocol = "http"