My favorites | Sign in
Logo
                
Search
for
Updated Nov 20, 2009 by cedkr...@gmail.com
Labels: Phase-Deploy
InstallationFreeBSD  
How to install Tryton server on FreeBSD

Installing the Client

Currently the Tryton client is not part of the FreeBSD ports collection.

Installing the Server

The server trytond is part of the FreeBSD ports collection. Installing it via ports will give you the advantage of resolving and installing all dependencies, but leaves you without tryton modules (and their dependencies). To get full advantage of Tryton several extra steps are recommended:

Database

PostreSQL Server

PostgreSQL database may run on the same or another machine. Installation for FreeBSD is described here.

PostreSQL Client

Install the PostgreSQL client version corresponding to your server via ports collection before installing trytond.

SQLite

SQLite support is new since version 1.4 of tryton and can be installed equivalent.

trytond

portupgrade will come in handy, so make sure it is installed.

cd /usr/ports/ports-mgmt/portupgrade
make install
rehash
  1. Install trytond via ports collection to get all dependencies installed.
  2. portinstall trytond
  3. deinstall trytond and Python Openssl package.
  4. pkg_deinstall trytond
    pkg_deinstall py26-openssl
  5. Install mercurial
  6. portinstall mercurial
  7. Create a workspace with directories for the branches you want. for example 1.4 and development branch.
  8. mkdir -p ~/workspace/tryton/dev/disabled_modules
    mkdir -p ~/workspace/tryton/1.4/disabled_modules
  9. Get tryton-dev.py script, save it to your workspace and make it executable.
  10. chmod +x ~/workspace/tryton-dev.py
  11. Fetch the development branch.
  12. cd ~/workspace/tryton/dev
    ~/workspace/tryton-get.py
  13. Install some python dependencies and extra functionality.
  14. easy_install BeautifulSoup
    easy_install vobject
    easy_install pyWebDav
    easy_install -U pyWebDav
    easy_install pyOpenSSL
    easy_install vatnumber
    portinstall py26-soappy
Since i did not manage to install python ldap i moved these modules away for now (help welcome).
mv trytond/trytond/modules/*ldap* disabled_modules
  1. repeat the last steps for 1.4 branch
  2. cd ~/workspace/tryton/1.4
    ~/workspace/tryton-get --branch 1.4
    easy_install BeautifulSoup
    easy_install vobject
    easy_install pyWebDav
    easy_install -U pyWebDav
    easy_install pyOpenSSL
    easy_install vatnumber
    portinstall py26-soappy
    mv trytond/trytond/modules/*ldap* disabled_modules

Initial configuration and server start

  1. Copy the configuration file to /usr/local/etc
  2. cp ~workspace/tryton/dev/trytond/etc/trytond.conf /usr/local/etc/trytond/trytond.conf
  3. These options are important:
  4. db_type = postgresql
    db_user = trytondbuser 
    admin_passwd = secretadminpassword
  5. Start the server
  6. ~/workspace/tryton/dev/trytond/bin/trytond

Sign in to add a comment
Hosted by Google Code