|
InstallationOnDebian
Installation hints for the Debian distribution
IntroductionThis page contains some additional installation hints to Installation from Mercurial for a Debian based system (as of 03/2009 on Debian Squeeze/testing) InstallationGeneral dependenciesPython$ sudo apt-get install python2.5 python-psycopg2 python-lxml Mercurial$ sudo apt-get install mercurial if you want to use the forest extension (recommended), proceed as in "Client, Server and Modules Installation in one go (with hgforest)" on Installation from Mercurial Append/create the hgforest extension to /etc/mercurial/hgrc# echo -e "[extensions]\nforest=/usr/local/src/hgforest/forest.py" >> /etc/mercurial/hgrc Get the sourcesjust proceed as described in Installation from Mercurial, most easy to use is the 'Automatic way' with download script. Client dependencies$ sudo apt-get install python-gtk2 python-egenix-mxtools python-egenix-mxdatetime librsvg2-2 optionalif you want to handle timezone as user preference$ sudo apt-get install python-tz Server dependencies$ sudo apt-get install python-psycopg2 python-lxml python-egenix-mxtools python-egenix-mxdatetime python-genshi python-setuptools $ sudo easy_install relatorio optionalif you want to use the WebDAV feature (recommended)$ sudo easy_install PyWebDAV if you want to display workflow graphs On Etch$ sudo easy_install pydot On Lenny$ sudo apt-get install python-pydot if you want to handle timezone as user preference$ sudo apt-get install python-tz if you want to have SSL connection$ sudo apt-get install python-openssl
if you want to convert odt documents into pdf$ sudo apt-get install openoffice.org-headless python-uno $ sudo easy_install openoffice-python if you want to validate VAT numbers (module party)$ sudo apt-get install python-soappy $ cd path/to/vatnumber $ sudo python setup.py install
Alternative: If you want to install vatnumber as Debian package (handled with dpkg resp. apt, can simply be removed):$ sudo apt-get install checkinstall python-soappy $ sudo checkinstall python setup.py install
if you want to use module google_translate for help in translating the application$ sudo apt-get install python-beautifulsoup
if you want to use module party_vcarddav$ sudo apt-get install python-vobject Preparing the system for running the serverNote: This is NOT the standard Debian way to install a package via the package management with apt. It is shown as an example to do a setup for a development environment respectively an intermediate setup until a deb package will be available Only recommended to experienced users Tryton sources are supposed to be downloaded to /usr/local/tryton directory structure:
usr --- local --- tryton --- trytond --- bin
| | --- modules
| | --- etc
| | ...
|
|--- tryton --- bin
| ...add the system user to run trytond # adduser --no-create-home --system --group tryton set ownership # chown -R tryton:tryton /usr/local/tryton
Note: if you want to update the installation with mercurial, the owner should be replaced by another user running hg fpull etc.
i.e. chown -R mercurial_user:tryton /usr/local/tryton
in this case you have to give write permissions for the directories to group tryton
# find /usr/local/tryton/ -type d -exec chmod 775 {} \;copy init scripts (can be downloaded from files section) # cp trytond /etc/init.d/trytond # chmod +x /etc/init.d/trytond # mkdir /usr/local/etc/default/ # cp trytond_default /usr/local/etc/default/trytond if you want start trytond automatically at system startup # update-rc.d trytond defaults 21 if you want to store attachments with the server # mkdir /var/lib/trytond # chown tryton:tryton /var/lib/trytond configure and start the server adapt /usr/local/etc/default/trytond and /usr/local/tryton/trytond/etc/trytond.conf to your needs and start the server with # /etc/init.d/trytond start |
Sign in to add a comment