Setup web client with Debian 10

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

  1. setup a database user / password, create a new empty database. Username and password are filled in the tryton.conf file.
  2. 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
  1. 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
  1. start de trytond-server with systemctl start trytond
  2. 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.

  1. download the precompiled version from https://downloads.tryton.org/5.0/ (tryton-sao-5.0.X.tar.gz)
  2. unpack it in /usr/share/tryton-sao/www. Sao will be in a sub directory called package
  3. move all the data from the package a level higher, so all the data resides in /usr/share/tryton-sao/www
  4. 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.
  5. modify the script a bit:
    • change FETCHCMD='ftp' to FETCHCMD='curl -L'
    • change UNZIP='/usr/local/bin/7z x' to UNZIP='7z x' (be sure you have 7z installed)
    • change xargs -0 sha256 -b to xargs -0 sha256sum -b (end of the file)
  6. 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 called sao-dependencies-5.0. In this directory you have another directory called bower_components
  7. symlink the bower_components ln -s /usr/share/tryton-sao/www/sao-dependencies-5.0/bower_components/ /usr/share/tryton-sao/www/
  8. make sure the read / write rights for the trytond-server user (systemctl) are correct! chown -R tryton:tryton /usr/share/tryton-sao/www/
  9. make sure trytond-server is running, start your webbrowser and open the url (localhost:8000). You will see Sao coming up.
1 Like