# Setup web client with Debian 10

**URL:** https://discuss.tryton.org/t/setup-web-client-with-debian-10/2125
**Category:** System Administrator
**Created:** [December 31, 2019, 7:29pm UTC](https://discuss.tryton.org/t/setup-web-client-with-debian-10/2125 "2019-12-31T19:29:59Z")
**Posts on this page:** 1
**Showing post:** 63

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [February 8, 2020, 11:31am UTC](https://discuss.tryton.org/t/setup-web-client-with-debian-10/2125/63 "2020-02-08T11:31:03Z")

</div>

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

```auto
[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.

```auto
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/](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 [ports/productivity/tryton/5.0/sao/files/sao-dependencies.sh - view - 1.1](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.

---

_[View the full topic](https://discuss.tryton.org/t/setup-web-client-with-debian-10/2125)._
