Outils pour utilisateurs

Outils du site


erp:tryton:installation_ubuntu_2

Ceci est une ancienne révision du document !


Installer Tryton sous Ubuntu 18.04 (alternative)

Mettre à jour le système

sudo apt-get update
sudo apt-get upgrade

Tester la présence de Python 3

python3 --version

Installation de PIP et des dépendances

sudo apt install python-pip
sudo pip install -U pip
cd /tmp/
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo apt install curl
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo apt-get install python3-distutils

Installation de Tryton

sudo apt install python3-dev
sudo pip install trytond
sudo pip install tryton

Installation de Postgresql

Se référer à Installation PostgreSQL 10 sous Ubuntu 18.04

Créer un utilisateur tryton et une base de données tryton1 :

sudo su - postgres
createuser --interactive --pwprompt
  • Enter name of role to add: tryton
  • Enter password of new role: (un mot de passe)
  • Enter it again: (un mot de passe)
  • Shall the new role be a superuser? (y/n) n
  • Shall the new role be allowed to create databasees? (y/n) n
  • Shall the new role be allowed to create more new roles? (y/n) n

Créer la base de données :

createdb -O tryton tryton1

Revenir à l'utilisateur normal :

exit

Création du fichier de configuration

cd /etc/
sudo mkdir tryton
cd tryton
sudo touch tryton.conf
erp/tryton/installation_ubuntu_2.1578164420.txt.gz · Dernière modification: 2020/01/04 19:00 par marclebrun