I didn’t have read the whole discussion, but make things extremely simple. I’m assuming you are using version 5.0.x and you installed the .deb package
- setup a database user / password, create a new empty database. Username and password are filled in the tryton.conf file.
- just create the most simple /etc/tryton/trytond.conf with only the necessary parts
[database]
uri = postgresql://<username>:<password>@localhost:5432/
[web]
listen = 0.0.0.0:8000
root = /usr/share/tryton-sao/www
- from the commandline initialize the database. You will be asked for a admin username and password.
trytond-admin -d <database name> -c /etc/tryton/trytond.conf --all -v
- start de trytond-server with
systemctl start trytond
- check with the (GTK) tryton-client if you can connect to trytond-server (localhost:8000)
Congratulation! you have Tryton running. Please get this all working properly before installing Sao.
The next step will be installing Sao.
- download the precompiled version from https://downloads.tryton.org/5.0/ (tryton-sao-5.0.X.tar.gz)
- unpack it in
/usr/share/tryton-sao/www
. Sao will be in a sub directory calledpackage
- move all the data from the
package
a level higher, so all the data resides in/usr/share/tryton-sao/www
- get the script https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/productivity/tryton/5.0/sao/files/Attic/sao-dependencies.sh?rev=1.1&content-type=text/x-cvsweb-markup and save it in
/usr/share/tryton-sao/www
. Call it what you want. - modify the script a bit:
- change
FETCHCMD='ftp'
toFETCHCMD='curl -L'
- change
UNZIP='/usr/local/bin/7z x'
toUNZIP='7z x'
(be sure you have 7z installed) - change
xargs -0 sha256 -b
toxargs -0 sha256sum -b
(end of the file)
- change
- run the script from
/usr/share/tryton-sao/www
so,
cd /usr/share/tryton-sao/www & sh <your script>
. You will end up with a directory calledsao-dependencies-5.0
. In this directory you have another directory calledbower_components
- symlink the bower_components
ln -s /usr/share/tryton-sao/www/sao-dependencies-5.0/bower_components/ /usr/share/tryton-sao/www/
- make sure the read / write rights for the trytond-server user (systemctl) are correct!
chown -R tryton:tryton /usr/share/tryton-sao/www/
- make sure trytond-server is running, start your webbrowser and open the url (localhost:8000). You will see Sao coming up.