OpenERP and Tryton automated alternative installation for debian and ubuntu

edit 12 aug 2013 : now supported Tryton+Nereid and Tryton+GnuHealth versions

Disclaimer: Server administration requires specific skills. Even if this script makes initial installation for you, you need to understand Linux commands and openerp components to fix potential problems and manage server maintenance.

A single tool to get all versions of openerp and tryton.

you can refer to an execution log of an installation of openerp 6.1rc1 on ubuntu 10.04 here: https://docs.google.com/document/d/1Z2mGOOns_hZ3FNPY4jIPl6NqEajfqEvYEGqJWoO8QhY/edit

#install_xoe --help 

Documentation of install_xoe

Disclaimer: Server administration requires specific skills. Even if this script makes initial installation for you, you need to understand Linux commands and openerp components to fix potential problems and manage server maintenance.

This script install_xoe provides an automatic installation of openerp and tryton service with the help of Xoe.

Xoe stands for Extended OpenERP servers management. Xoe is both an initial setup utility and an execution manager for OpenERP and Tryton.

install_xoe is a local linux command, which can be invoked alone or with following options

Options:

-h|--help                  print this help

-v|--version               print version

-r|--replay                replay the installation

-t|--training              add a second openerp service for training purpose

-s|--test                  add another openerp service for test purpose

-a|--alternate             choose another version of openerp for next steps

-p|--panel                 setup a web administration page

-u|--update                auto update code of this script

1_Instructions for setup and start:

***********************************

- login as root or sudoer user. [sudo] means sudo is to be used by sudoer user.

cd /usr/local/bin

[sudo] wget http://download.sisalp.net/install_xoe  # Download this script

[sudo] chmod 755 install_xoe                            # Allow to execute this script

[sudo] install_xoe                                      # Execute

2_Answer to following questions:

********************************

Please select the ERP family you are looking for and its version

Choose ERP family <supported list is  openerp    tryton >, default is openerp :

Select openerp version <supported list is  6.0.3 6.1-1 5.0.16 >, default is 6.0.3 :

This script installs erp version : openerp 6.0.3

3_Your system is now ready for use

**********************************

[sudo] su erp_user                   # substitute user to openerp admin user

xoe --status                             # check the status of services

4_Add an other openerp service for training and/or test (optional)

******************************************************************

[sudo] install_xoe --training                 # add a separate training service

[sudo] install_xoe --test                     # add a separate test service

FAQ:

****

Which platform is required?

This script is designed for servers and virtual servers.

It installs a local postgresql service and cannot use a remote postgresql service.

Directly attached disks are recommended. Network attached storage may result in slow performance.

Which operating system is required?

This script is designed for a fresh install of:

- Debian 6

- Ubuntu server 10.04

- Ubuntu server 11.04

At the end of the installation process, update the system by the commands

[sudo] apt-get update

[sudo] apt-get upgrade

and set timezone data

[sudo] dpkg-reconfigure tzdata

Can I use a desktop version of Debian or Ubuntu?

Yes, nevertheless desktop machines get IP addresses dynamically on the network, while

a static IP address is easier to manage for a server.

I already have openerp installed, can I use this script?

No, this script will probably create conflicts with other installations of openerp.

I failed with other installation procedures, can this script repair my server?

This script does not reinstall existing components, and will not repair a broken server.

Which openerp server version is installed?

This script currently installs openerp version 6.0.3

You can change this with --alternate option

Which OpenERP web version is installed?

This script currently installs version 6.0.3

You can change this with --alternate option

How to connect to the OpenERP web interface?

openerp-web listens on port 8081

Where can I find the super admin password for openerp, to create a database?

You can get it by the following commands:

su erp_user

xoe --service -cfg -password production

Will openerp servers restart on boot?

Yes they restart on reboot

Will the system save my openerp databases on production service?

Yes, if their names begin with the letters 'pro'

Can I adapt some parameters to my own needs?

Yes, just edit this script and modify the parameter values

Will I need this script after this first installation?

No, further administration of you server is done by the xoe script

How long will the installation time be?

Approximately 25 minutes (hardware dependent)

Do I have to fill in the IP address of my server?

No, the IP address of the server will be detected and used in this script.

Do I need to create usernames or passwords during installation?

No, those usernames and passwords are created automatically:

- Username and the password of the Linux user that will be used to manage the server

- The super administrator password

Do I need a second service for training?

Training service is optional.

How can I use training service?

Your production database is automatically copied to training service every night.

You then can connect to training service and validate your procedures at no risk.

Do I need an other service for tests?

Test service is optional.

How can I use test service?

You can create any database, make any modification to modules, download new versions of code at no risk for your production service.

How can I use another version for my service?

--alternate option allows you to choose your preferred version.

How can I use the graphical administration interface?

After a first service installation, you can use a graphical web page for basic administration

You can setup this environment with the option --panel with root rights and provide a password.

You can then use a browser and connect to http://my_server_ip_address with user name 'admin' and the password you just created

More on xoe : xoe --help

You can get a fresh copy of this script from http://download.sisalp.net/install_xoe

This document : may 2011, last update august 2013, by SISalp and Telesight

contact@sisalp.org

http://sisalp.fr