domingo, 25 de noviembre de 2012

Install Tryton on Ubuntu 12

Log de instalación de Tryton 2.4 sobre Ubuntu 12.04 (Install Tryton ERP 2.4 on Ubuntu)

Tryton ERP is open source ERP software done with Python language.

Requirement: postgres, python
   See how to install postgres and python in "openERP installing guide".



Ubuntu LOG:
#demo@demo:$ sudo apt-get install python-webdav python-pydot python-tz
#---------------------------------------------------- 
# Install Mercurial SCM 
#----------------------------------------------------
demo@demo:~$ apt-get install mercurial 
demo@demo:~$ cd /tmp
demo@demo:/tmp$ hg clone http://bitbucket.org/pmezard/hgforest-crew/
demo@demo:/tmp$ cd hgforest-crew
demo@demo:/tmp/hgforest-crew$ sudo mkdir -p /usr/local/src/hgforest
demo@demo:/tmp/hgforest-crew$ sudo cp forest.py /usr/local/src/hgforest/
demo@demo:/tmp/hgforest-crew$ sudo su -
root@demo:~# echo -e "[extensions]\nforest=/usr/local/src/hgforest/forest.py" >> /etc/mercurial/hgrc
root@demo:~# nano /etc/mercurial/hgrc
root@demo:~# exit
demo@demo:/tmp/hgforest-crew$ sudo mkdir /usr/local/tryton
demo@demo:/tmp/hgforest-crew$ cd /usr/local/tryton 
 
#---------------------------------------------------- 
# Install tryton 
#----------------------------------------------------
#demo@demo:/usr/local/tryton$ sudo hg clone http://hg.tryton.org/trytond/
#demo@demo:/usr/local/tryton$ sudo hg clone http://hg.tryton.org/tryton/ 
#Instalar la version 2.4 que es compatible con los modulos de Argentina 
 
demo@demo:/usr/local/tryton$ sudo hg clone http://hg.tryton.org/2.4/tryton/
demo@demo:/usr/local/tryton$ sudo hg clone http://hg.tryton.org/2.4/trytond/
 
 demo@demo:/usr/local/tryton$ sudo adduser --no-create-home --system --group tryton
demo@demo:/usr/local/tryton$ sudo chown -R tryton:tryton /usr/local/tryton
demo@demo:/usr/local/tryton$ sudo find /usr/local/tryton/ -type d -exec chmod 775 {} \;
demo@demo:/usr/local/tryton$ cd /usr/local/tryton
demo@demo:/usr/local/tryton$ sudo mkdir /etc/tryton
demo@demo:/usr/local/tryton$ sudo cp trytond/etc/trytond.conf /etc/tryton
demo@demo:/usr/local/tryton$ cd /tmp
demo@demo:/tmp$ cd /usr/local/tryton
demo@demo:/usr/local/tryton$ sudo mkdir config_backup
demo@demo:/usr/local/tryton$ sudo cp /home/demo/Descargas/tryton-server.init config_backup
demo@demo:/usr/local/tryton/config_backup$ sudo cd /etc/tryton
demo@demo:/usr/local/tryton/config_backup$ ls
demo@demo:/usr/local/tryton/config_backup$ cd /etc
demo@demo:/etc$ ls tryton/
demo@demo:/etc$ cd ..
demo@demo:/$ ls try*
demo@demo:/etc$ ls try*
trytond.conf
demo@demo:/etc$ sudo nano trytond.conf
demo@demo:/etc$ cd tryton
demo@demo:/etc/tryton$ ls
demo@demo:/etc/tryton$ sudo nano trytond.conf
demo@demo:/etc/tryton$ cd /usr/local/tryton
demo@demo:/usr/local/tryton$ ls
demo@demo:/usr/local/tryton$ cd config_backup/
demo@demo:/usr/local/tryton/config_backup$ ls
demo@demo:/usr/local/tryton/config_backup$ sudo cp tryton-server.init /etc/init.d/trytond
demo@demo:/usr/local/tryton/config_backup$ sudo chmod +x /etc/init.d/trytond
demo@demo:/usr/local/tryton/config_backup$ sudo mkdir /usr/local/etc/default/
demo@demo:/usr/local/tryton/config_backup$ ls
demo@demo:/usr/local/tryton/config_backup$ cd ..
demo@demo:/usr/local/tryton$ ls
demo@demo:/usr/local/tryton$ cd trytond
demo@demo:/usr/local/tryton/trytond$ ls
demo@demo:/usr/local/tryton/trytond$ cd etc
demo@demo:/usr/local/tryton/trytond/etc$ ls
demo@demo:/usr/local/tryton/trytond/etc$ cd trytond
demo@demo:/usr/local/tryton/trytond/etc$ ls
demo@demo:/usr/local/tryton/trytond/etc$ cd ..
demo@demo:/usr/local/tryton/trytond$ ls
demo@demo:/usr/local/tryton/trytond$ cd etc
demo@demo:/usr/local/tryton/trytond/etc$ ls
demo@demo:/usr/local/tryton/trytond/etc$ cd ..
demo@demo:/usr/local/tryton/trytond$ cd ..
demo@demo:/usr/local/tryton$ sudo mkdir /var/lib/trytond
demo@demo:/usr/local/tryton$ 
demo@demo:/usr/local/tryton$ sudo chown tryton:tryton /var/lib/trytond
demo@demo:/usr/local/tryton$ /etc/init.d/trytond start
demo@demo:/usr/local/tryton$ /etc/init.d/trytond stop
demo@demo:/usr/local/tryton$ sudo /etc/init.d/trytond start
demo@demo:/usr/local/tryton$ sudo /etc/init.d/trytond stop
demo@demo:/usr/local/tryton$ sudo mkdir -p /usr/local/etc/default/
demo@demo:/usr/local/tryton$ sudo su - postgres
postgres@demo:~$ createuser --createdb --no-adduser -P tryton
postgres@demo:~$ exit
demo@demo:/usr/local/tryton$ ls
demo@demo:/usr/local/tryton$ cd tryton
demo@demo:/usr/local/tryton/tryton$ ls
demo@demo:/usr/local/tryton/tryton$ ls
demo@demo:/usr/local/tryton/tryton$ sudo /etc/init.d/trytond start
demo@demo:/usr/local/tryton/tryton$ ls
demo@demo:/usr/local/tryton/tryton$ cd bin
demo@demo:/usr/local/tryton/tryton/bin$ ls
demo@demo:/usr/local/tryton/tryton/bin$ tryton
demo@demo:/usr/local/tryton/tryton/bin$ sudo apt-get install tryton-client
demo@demo:/usr/local/tryton/tryton/bin$ tryton

demo@demo:/usr/local/tryton/tryton/bin$ sudo su -
root@demo: cd /usr/local/tryton/trytond/trytond/modules/
root@demo:/usr/local/tryton/trytond/trytond/modules# 
 
sudo apt-get install tryton-modules-all

# Modules to install (is not necessary be installed manually):
hg clone http://hg.tryton.org/modules/account
hg clone http://hg.tryton.org/modules/account_be
hg clone http://hg.tryton.org/modules/account_de_skr03
hg clone http://hg.tryton.org/modules/account_invoice
hg clone http://hg.tryton.org/modules/account_invoice_history
hg clone http://hg.tryton.org/modules/account_product
hg clone http://hg.tryton.org/modules/account_statement
hg clone http://hg.tryton.org/modules/analytic_account
hg clone http://hg.tryton.org/modules/analytic_invoice
hg clone http://hg.tryton.org/modules/analytic_purchase
hg clone http://hg.tryton.org/modules/analytic_sale
hg clone http://hg.tryton.org/modules/calendar
hg clone http://hg.tryton.org/modules/company
hg clone http://hg.tryton.org/modules/company_work_time
hg clone http://hg.tryton.org/modules/country
hg clone http://hg.tryton.org/modules/currency
hg clone http://hg.tryton.org/modules/google_maps
hg clone http://hg.tryton.org/modules/google_translate
hg clone http://hg.tryton.org/modules/party
hg clone http://hg.tryton.org/modules/party_vcarddav
hg clone http://hg.tryton.org/modules/product
hg clone http://hg.tryton.org/modules/product_cost_fifo
hg clone http://hg.tryton.org/modules/product_cost_history
hg clone http://hg.tryton.org/modules/project
hg clone http://hg.tryton.org/modules/project_plan
hg clone http://hg.tryton.org/modules/project_revenue
hg clone http://hg.tryton.org/modules/purchase
hg clone http://hg.tryton.org/modules/sale
hg clone http://hg.tryton.org/modules/stock
hg clone http://hg.tryton.org/modules/stock_forecast
hg clone http://hg.tryton.org/modules/stock_inventory_location
hg clone http://hg.tryton.org/modules/stock_location_sequence
hg clone http://hg.tryton.org/modules/stock_product_location
hg clone http://hg.tryton.org/modules/stock_supply
hg clone http://hg.tryton.org/modules/stock_supply_day
hg clone http://hg.tryton.org/modules/timesheet 
 
# Modulos Argentinos: 
sudo hg clone https://bitbucket.org/thymbra/account_ar
sudo hg clone https://bitbucket.org/thymbra/country_ar
sudo hg clone https://bitbucket.org/thymbra/account_voucher_ar
sudo hg clone https://bitbucket.org/thymbra/account_check_ar
sudo hg clone https://bitbucket.org/thymbra/account_bank_ar 
 
 
# Start services and launch tryton client
sudo /etc/init.d/postgresql restart
sudo /etc/init.d/trytond start
cd /usr/local/tryton/tryton/bin/
tryton
 
# Otra manera: 
#/usr/local/tryton/trytond/bin$ sudo trytond -c /etc/trytond.conf -u all -d demo
 
 
References:
Tryton org
http://wiki.opdevel.com/Tryton/Instalacion
http://code.google.com/p/tryton/wiki/InstallationOnUbuntu
http://doc.tryton.org/1.6/trytond/doc/topics/install.html
http://wiki.opdevel.com/Tryton/Instalacion
http://code.google.com/p/tryton/wiki/InstallationOnDebian
http://code.google.com/p/tryton/wiki/SetupAndStart

Instalación de la versión 2.4:
http://hg.tryton.org/2.4/
http://hg.tryton.org/2.4/modules
http://wiki.tryton.com.ar/LocalizacionArgentina
http://hg.tryton.org/2.4/tryton/archive/tip.tar.gz
http://hg.tryton.org/2.4/trytond/archive/tip.tar.gz
http://hg.tryton.org/2.4/modules/account/archive/tip.tar.gz
 
Modulos de GCoop para imprenta gráfica:
https://github.com/gcoop-libre/trytond_sale_printery_budget
wget https://github.com/gcoop-libre/trytond_sale_printery_budget/archive/master.zip
git clone git://github.com/gcoop-libre/trytond_sale_printery_budget.git
(copiar en la ubicación de los módulos)


Notas de GCoop para desarrollar en Tryton: 
http://introduccion-a-tryton.readthedocs.org/en/latest/funcional.html#instalar-modulos
https://github.com/gcoop-libre/apuntes_de_tryton 
Las fuentes:
https://github.com/gcoop-libre/apuntes_de_tryton
 

2 comentarios:

  1. I am struck at this point : sudo cp /home/demo/Descargas/tryton-server.init config_backup

    Where do I get this file from for me?

    ResponderEliminar
  2. It name can be too folder/etc/init.d/tryton-server located into package downloaded (http://www.tryton.org/download.html).

    ResponderEliminar