Complete installation of a development station (Ubuntu 11.04)
Packages installation
sudo su apt-get install terminator apt-get install vim apt-get install tree apt-get install chromium-browser apt-get install flashplugin-installer apt-get install subversion apt-get install ant apt-get install build-essential apt-get install sun-java6-jdk apt-get install sun-java6-jre update-alternatives --config java (choisir la version sun) apt-get install libsvn-java apt-get install svnkit apt-get install python2.6 #ln -fs python2.6 /usr/bin/python # mais bug avec terminator apt-get install python-setuptools apt-get install python-dev apt-get install python-lxml apt-get install python-psycopg2 apt-get install python-reportlab easy_install pytz apt-get install postgresql apt-get install pgadmin3
Eclipse installation
- Download the last version of IDE Eclipse Java on http://www.eclipse.org/downloads/ (eg : http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/R/eclipse-java-indigo-linux-gtk.tar.gz)
- Start eclipse with executabe found in the downloaded file.
- Install pydev and subclipse modules with Eclipse Marketplace ( menu "Help/Eclipse? Marketplace...")
- Configure Pydev ( menu "windows/preferences" and "PyDev/Interpreter/AutoConfig?")
Talend Open Studio (TOS) installation
- Download the last version of ETL Talend Open Studio on http://www.talend.com/download.php (eg : http://sourceforge.net/projects/talend-studio/files/Talend%20Open%20Studio/4.2.2/TOS-All-r63143-V4.2.2.zip/download)
- Start TOS with executabe (TalendOpenStudio?-linux-gtk-x86) found in the downloaded file.
- Create a new connection with your e-mail
OpenERP installation
- Checkout OpenERP installer :
cd ~/workspace mkdir openerp cd openerp bzr branch lp://openerp/
- Checkout OpenERP 5 :
python openerp/bzr_set.py -v 5.0
- Install web server lib :
cd web/lib
./populate
Postgresql installation
- Exemple : create user "opendas"
sudo su postgres psql CREATE USER opendas WITH PASSWORD 'opendas'; CREATE DATABASE opendas; GRANT ALL PRIVILEGES ON DATABASE opendas to opendas; ALTER ROLE opendas WITH CREATEDB; \q
ActiveMQ (http://localhost:8161/)
- Download the last version of Message Broker Apache ActiveMQ ™ on http://activemq.apache.org/ (eg : http://apache.crihan.fr/dist//activemq/apache-activemq/5.5.0/apache-activemq-5.5.0-bin.tar.gz)
- Start ActiveMQ with executabe found in the downloaded file (bin/linux-x86-32/activemq start).
cd /home/opendas/install/apache-activemq-5.5.0/bin/linux-x86-32
./activemq start
OpenDAS installation
- Checkout OpenDAS :
cd ~/workspace mkdir opendas cd opendas svn co http://opendas.org/svn/opendas/client/trunk client svn co http://opendas.org/svn/opendas/server/trunk server svn co http://opendas.org/svn/opendas/talend/trunk talend
- Checkout addons OpenERP for OpenDAS :
cd ~/workspace/openerp # path of your openerp addons directories svn co http://opendas.org/svn/opendas/opendas-addons/trunk opendas-addons
- You must be add opendas-addons directory in file bzr_set.py :
- Before
#~/workspace/openerp/openerp/bzr_set.py : line 67 bzr_links = { 'addons/*': 'server/bin/addons/', }
- After
#~/workspace/openerp/openerp/bzr_set.py : line 67 bzr_links = { 'addons/*': 'server/bin/addons/', 'opendas-addons/*': 'server/bin/addons/', }
- Before
- Execute openerp/bzr_set.py to create symbolic link in server
cd ~/workspace/openerp/ python openerp/bzr_set.py
OpenERP Starting (http://localhost:8080/)
- First start : to create config file
python2.6 ~/workspace/openerp/server/bin/openerp-server.py -s
- Edit config file (~/.openerp-serverrc)
db_user = opendas db_password = opendas db_name = False # no connection on starting server
- Start OpenERP
python2.6 ~/workspace/openerp/server/bin/openerp-server.py python2.6 ~/workspace/openerp/web/openerp-web.py
- You must be create two databases :
- configuration database
- module to be installed :
- opendas_server
- module to be installed :
- target database
- module to be installed :
- opendas_server_extended_hr + dependency
- opendas_server_extended_stock + dependency
- module to be installed :
- configuration database
TOS
- You must be change parameters on the first ten lines of the file /home/opendas/talend/install.sh and execute it.
cd /home/opendas/talend/ ./install
- Two Jobs (configuration files in the "/home/opendas/talend/config/" folder)
- GET : used to get ERP data
adresseActiveMQ;127.0.0.1 destinataireClientActiveMQ;DAS_CLIENT destinataireServeurActiveMQ;DAS_SERVER expediteurActiveMQ;TALEND portActiveMQ;61616 station;GET host;127.0.0.1 port;80 username;opendas pwd;opendas uid;1 hostASPerpgi;127.0.0.1 portASPerpgi;8069 usernameASPerpgi;admin pwdASPerpgi;admin dbnameASPerpgi;opendas_data
- GET : used to get ERP data
- SET : used to write on ERP data
adresseActiveMQ;127.0.0.1 destinataireClientActiveMQ;DAS_CLIENT destinataireServeurActiveMQ;DAS_SERVER expediteurActiveMQ;TALEND portActiveMQ;61616 station;SET host;127.0.0.1 port;80 username;opendas pwd;opendas uid;1 hostASPerpgi;127.0.0.1 portASPerpgi;8069 usernameASPerpgi;admin pwdASPerpgi;admin dbnameASPerpgi;opendas_data
- Compiled
The two job are compiled in bin, to starting (config files in ~/workspace/opendas/talend/config/):
cd ~/workspace/opendas/talend/bin/GET_0.1/GET sh GET_run.sh # implicit config file : ~/workspace/opendas/talend/config/GET.conf cd ~/workspace/opendas/talend/bin/SET_0.1/SET sh SET_run.sh # implicit config file : ~/workspace/opendas/talend/config/SET.conf
SERVER
- Make jar
cd /home/opendas/workspace/opendas/server/ ant
- Edit config file (./config/das_server.conf)
JMSUrl: tcp://127.0.0.1:61616 JMSUser: JMSPassword: JMSPoolNameExt: TALEND JMSPoolNameServer: DAS_SERVER JMSPoolNameClient: DAS_CLIENT -- debugMode, the debug mode indicates numerous additional information in logs. The value 1 activates this mode. debugMode: 1
- Start the server
cd /home/opendas/workspace/opendas/server/
java -jar bin/das_server.jar config/das_server.conf
CLIENT
- Link with das server
cd /home/opendas/workspace/opendas/client/lib/ ln -s /home/opendas/workspace/opendas/server/bin/das_server.jar .
- Make jar
cd /home/opendas/workspace/opendas/client/ ant
- Edit config file (./config/das_client.conf)
-- ACTIVEMQ PARAMETERS JMSUrl: tcp://127.0.0.1:61616 JMSUser: JMSPassword: JMSPoolNameExt: TALEND_DEMO JMSPoolNameServer: DAS_SERVER JMSPoolNameClient: DAS_CLIENT -- debugMode, the debug mode indicates numerous additional information in logs. The value 1 activates this mode. debugMode: 1 -- workstation_id, the identifier of the station. it must be present in the table das_workstation workstation_id: 6 -- mask, the mask to be used for the interface. it must be present in tables das_functional_config and das_graphical_config with the corresponding identifier of the station. mask: purchase -- balance_simulation, if this property has 1 as value, the weighty request for balances is replaced by a small window allowing the manual data entry of a weight. balance_simulation: 0 -- scanner_simulation, if this property has 1 as value, the request of code for scanners is replaced by a small window allowing the manual data entry of a code. scanner_simulation: 0 -- printing, indicates if labels must be ignored (0), printed (1) or edit in the form of report pdf (2) printing: 2 -- timeout,indicates the maximum time for a request in milliseconds. timeout: 3000
- Start the client
cd /home/opendas/workspace/opendas/client/ java -jar bin/signed_das.jar config/das_client.conf
Attachments
-
terminator_config.cfg
(3.2 KB) -
added by halgandd 11 months ago.
