viernes, 28 de diciembre de 2012

Audio USB por Interface de Entrada en Ubuntu 12

¿Cómo usar un dispositivo externo de Audio USB para Interface de Entrada de audio en Ubuntu 12?

Un dispositivo externo de Audio USB puede servir para conectar instrumentos musicales, micrófonos o equipos de audio a una computadora por medio de un puerto USB.

Si tenemos una interface de grabación para puerto USB solo tenemos que ver si esta soportada por linux y la distribusión de Ubuntu:
http://wiki.linuxaudio.org/wiki/current_audio_gear


En mi caso es una Alesis iO2 Express:
[Alesis] - iO4 (usb - class compliant (1.1 or 2.0?))
WORKS completely: Tested under Ubuntu 9.04 on an eeePC using ALSA, Jack and Ardour. Also on Linux Mint KDE 12 with KXStudio.

Conectamos el dispositivo.

Los comando útiles para ver información de los dispositivos de audio son los siguientes:

#terminal# sudo cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf2620000 irq 45
 1 [io2            ]: USB-Audio - io|2
                      Alesis io|2 at usb-0000:00:1a.0-1.2, full speed
29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
                      ThinkPad Console Audio Control at EC reg 0x30, fw 6IHT38WW-1.13

#terminal# lsusb
...
Bus 001 Device 007: ID 13b2:0008 Alesis

#terminal# aplay -l
**** List of PLAYBACK Hardware Devices ****
...
card 1: io2 [io|2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Conviene tener instalado algunas librerias e instalar gnome-alsamixer para control grafico de volúmenes:

#terminal# sudo apt-get install alsaplayer-jack libjack0 libavc1394-0 libiec61883-0
#terminal# sudo apt-get install gnome-alsamixer
#terminal# sudo apt-get install libfreebob0

Podemos lanzar cualquiera de los controladores gráficos:
#terminal# gnome-alsamixer
#terminal# alsamixer


Deberíamos instalar "Ardour" o "Audacity" software para captura y edición de audio.

Audacity: En audacity elegimos "Edit > Preferences" , luego "Recording" y allí elegimos el dispositivo USB externo (en mi caso alesis*).

Y listo, ya se puede grabar.

domingo, 25 de noviembre de 2012

3 ERP softwares open source evaluation

Evaluation of 3 "ERP Open Source" softwares (OFBiz vs Tryton vs OpenERP)



See Comparing between OFBiz, Tryton and OpenERP.

General features:

- OFBiz:      ERP + CRM + E-commerce + POS + HR
                   (Java + Apache + Multiple database).
                   Licence: Apache

- OpenERP: ERP + CRM + E-commerce + POS + HR
                   (Python + Postgres).
                   Licence: Software as a Service

- Tryton:     ERP
                   (Python + Postgres).
                   Licence: GPL

Installing on Ubuntu 12.04 guides:
- Installing OFBiz.
- Installing OpenERP.
- Installing Tryton.

References:
- Comparing between OFBiz, Tryton and OpenERP.
- OpenERP vs other Open Source ERP.

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
 

sábado, 24 de noviembre de 2012

Evaluating of Apache OFBiz demo on Ubuntu 12


Apache OFBiz is open source ERP software done with Java language.
This is a quick Getting Started Guide to quickly test it on Ubuntu 12.04.
The OFBiz version tested is "Nightly Trunk Builds" to java 1.6 (Nightly trunk builds do not have release numbers).

Read: "Demo and Test Setup Guide".
Requirement: Java 1.6, SVN and Ant (1.7 or later)

# Open Terminal

# Verify that Java 1.6 is installed
java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)

# Verify that Subverrsion SVN is installed
svn --version
svn, version 1.7.7 (r1393599)
   compiled Oct 15 2012, 20:25:39
Copyright (C) 2012 The Apache Software Foundation.

# Verify that Ant is installed
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011

# Download OFBiz, install demo and start
sudo su -
cd /opt/
svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
cd /opt/ofbiz/
./ant
./ant run-install
./ant load-demo
./ant start

#Test website, Open a browser and go to:
#for the ecommerce http://127.0.0.1:8080/ecommerce/control/main
#for the ecommerce application or https://127.0.0.1:8443/webtools/control/main
#for the WebTools application or https://127.0.0.1:8443/catalog/control/main

Screenshots:

Applications Menu:

POS Screenshot:

References:
OFBiz:
-Vision general e instalacion con postgres (pdf).
https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html
https://cwiki.apache.org/confluence/display/OFBADMIN/Demo+and+Test+Setup+Guide
Marksoft:
http://code.google.com/p/marksoft/wiki/Origen_ofbiz_eclispe
- Install OFBiz with MySQL database.
-Apache OFBiz Cookbook.

- Youtube: OFBiz training: How to setup OFBiz starting from an empty System .

- OFBiz Tutorial - A Beginners Development Guide.

Subversion SVN on Ubuntu




# Install subversion
sudo apt-get install subversion libapache2-svn

# If usu java and subversion instal JavaHL Library
# Subclipse 1.8.x requires JavaHL version 1.7.x.
# I need Subclipse 1.8.x in order to use svn 1.7.x. ...see more...
sudo add-apt-repository ppa:dominik-stadler/subversion-1.7
sudo apt-get update
sudo apt-get install libsvn-java

#Install visual graphic client (cliente visual para SVN (RapidSVN) en Ubuntu)
sudo apt-get install rapidsvn


Reference:
- Subversion installing
-Instalar un cliente visual para SVN (RapidSVN) en Ubuntu.
-SVN Cheatsheet.

Java: Configure Eclipse

Configure Eclipse



# Install Aptana Studio for Web Developers into Eclipse

Open Eclipse and go to Help -> Install New Software and paste the URL (http://download.aptana.com/studio3/plugin/install)
Now, few more Next Next ..


# Install Helios

1- Help->Software Updates->Find and Install.
2- Install/Update con 2 opciones. Seleccionamos la opción Search for new features to install.
Select Helios: http://download.eclipse.org/releases/helios
and installit...

# Install Subclipse (Subversion client) in Eclipse (if is necesary)

1- Help->Software Updates->Find and Install.
2- Install/Update con 2 opciones. Seleccionamos la opción Search for new features to install.
3- Introduciremos un nuevo sitio, pulsa sobre el boton New Remote Site.
4- Nombre y URL del nuevo lugar de búsqueda introducimos alguna de las siguientes opciones:

Subclipse Links for 1.8.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.8.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Subclipse Links for 1.6.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.6.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Subclipse Links for 1.4.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.4.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
...see more...http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

5- Finalmente pulsamos sobre Ok nos aparecerá el repositorio Subversive lo marcamo.
6- Aceptamos la licencia y Finish


References:
- Instrucciones para instalar subversion
- Subclipse: plugin de Subversion para Eclipse.
- Configurar plugin subversion en eclipse (subclipse).

Java: Install Eclipse on Ubuntu 12.04

Forma estándar de instalar Eclipse en Ubuntu

Precondición: Debemos tener instalado java.

# Remover Eclipse si esta Instalado previamente
#----------------------------------------------------------------------------------------------------

# Install Eclipse Platform    (standard form)
#----------------------------------------------------------------------------------------------------

sudo apt-get install eclipse-platform

# Extras:
# Install JDT for Java Development If you want
sudo apt-get install eclipse-jdt

# Install CDT for C/C++ Development If you want
sudo apt-get install eclipse-cdt

#Launch Eclipse Platform
eclipse

# If an error similar to the following:
# An error has occurred. See the log file /home/username/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1353802599085.log.
# Then do following:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
#And on Ubuntu 12.04 64 bit try:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

# The Result folder Structure on Linux system is following:
#      /usr/bin/eclipse #sh
#      /usr/share/eclipse
#      /usr/lib/eclipse
#      /home/username/.eclipse/
#      /home/username/.config/eclipse/
#      /etc/eclipse.ini


Instalando desde un zip en Ubuntu


Primero nos aseguramos de si nuestro sistema es 32bits o 64bits para saber que copia bajar de Eclipse:

uname -a

Luego bajamos una copia en un zip:

Eclipse Luna: https://www.eclipse.org/downloads/


Descomprimimos en nuestro "home" y editamos el archivo "eclipse.desktop" que va a funcionar como acceso directo que lanza la aplicación (ver: http://difusal.blogspot.com.ar/2014/07/how-to-install-eclipse-luna-44-on-ubuntu.html).




References:
- How to Install Eclipse IDE on Ubuntu 12.04
- Instalando Eclipse Indigo en Ubuntu (u otro Linux)
- Eclipse 4.2 (JUNO) in Ubuntu 12.04.

- Youtube: Install Java and Eclipse IDE into Ubuntu Desktop 12.04.
- Youtube: Como instalar Eclipse Indigo en Ubuntu 10.04.

- How to install Eclipse in folder independent? 

Eclipse Luna:
https://www.eclipse.org/downloads/
http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/
http://difusal.blogspot.com.ar/2014/07/how-to-install-eclipse-luna-44-on-ubuntu.html

Java: Remove Eclipse from Ubuntu

# Remover Eclipse from Ubuntu 12.04
#----------------------------------------------------------------------------------------------------

sudo apt-get remove --purge eclipse
sudo apt-get autoremove eclipse
sudo rm -r /usr/lib/eclipse

#Remove files from yout home (example username user)
cd /home/username
sudo rm -r ~/.eclipse/
sudo rm -r ~/.config/eclipse/

Nota: In graphical environment go tu Ubuntu Software Center and remove it.

Java: Install Java JDK 6.0 on Ubuntu 12.04


Instalar Sun (Oracle) Java 6 JDK en Ubuntu 12.04


# Instalar sun-java6-jdk sobre ubuntu 12.04 usando Terminal
#----------------------------------------------------------------------------------------------------

sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin


sudo update-alternatives --config java

There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-oracle/jre/bin/java   1062      auto mode
* 1            /usr/lib/jvm/java-6-sun/jre/bin/java      63        manual mode
  2            /usr/lib/jvm/java-7-oracle/bin/java       1         manual mode
  3            /usr/lib/jvm/java-7-oracle/jre/bin/java   1062      manual mode

Press enter to keep the current choice[*], or type selection number: 1

sudo update-alternatives --config javac

There are 2 choices for the alternative javac (providing /usr/bin/javac).

  Selection    Path                                  Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-7-oracle/bin/javac   1062      auto mode
  1            /usr/lib/jvm/java-6-sun/bin/javac      63        manual mode
  2            /usr/lib/jvm/java-7-oracle/bin/javac   1062      manual mode

Press enter to keep the current choice[*], or type selection number: 1

java -version

java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)


References:
- Instalar Sun (Oracle) Java 6 JDK en Ubuntu 12.04 .
- Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS.

Install OpenERP 6.0.3 on ubuntu

# Instalar OpenERP 6.0.3 sobre Ubuntu (Install OpenERP 6.0.3 on ubuntu 12)
#----------------------------------------------------------------------
 
OpenERP is open source ERP software done with Python language.
 
 

I) Dependencias

 
# Instalando postgres
#----------------------------------------------------------------------

sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev
psql --version

sudo su postgres -c psql
ALTER USER postgres WITH PASSWORD 'postgresdemo';

sudo passwd -d postgres
sudo su postgres -c passwd

sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
exit


# Instalando python
#----------------------------------------------------------------------

sudo apt-get install python python-psycopg2 python-reportlab \
python-egenix-mxdatetime python-tz python-pychart python-mako \
python-pydot python-lxml python-vobject python-yaml python-dateutil \
python-pychart python-webdav

sudo apt-get install python-cherrypy3 python-formencode python-pybabel \
python-simplejson python-pyparsing

sudo apt-get install python-gtk2 python-glade2 \
    python-matplotlib python-egenix-mxdatetime python-hippocanvas

#sudo apt-get install python-xml 
 

II) Primera forma de instalación:

#----------------------------------------------------------------------
# Instalando openERP 6.0.3 desde sources
# http://www.openerp.com/downloads
#----------------------------------------------------------------------

sudo adduser --system --home=/opt/openerp --group openerp
cd /opt/openerp
sudo mkdir /opt/openerp/download
sudo chmod 755 /opt/openerp/download
sudo chown openerp: /opt/openerp/download
sudo mkdir server
sudo chmod 755 /opt/openerp/server
sudo chown openerp: /opt/openerp/server
sudo mkdir web
sudo chmod 755 /opt/openerp/web
sudo chown openerp: /opt/openerp/web
sudo mkdir client
sudo chmod 755 /opt/openerp/client
sudo chown openerp: /opt/openerp/client
cd /opt/openerp/download
sudo wget http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz
sudo tar xvf openerp-server-6.0.3.tar.gz
sudo mv openerp-server-6.0.3/* /opt/openerp/server
sudo rm -R openerp-server-6.0.3
sudo wget http://www.openerp.com/download/stable/source/openerp-web-6.0.3.tar.gz
sudo tar xvf openerp-web-6.0.3.tar.gz
sudo mv openerp-web-6.0.3/* /opt/openerp/web
sudo rm -R openerp-web-6.0.3
sudo wget http://www.openerp.com/download/stable/source/openerp-client-6.0.3.tar.gz
sudo tar xvf openerp-client-6.0.3.tar.gz
sudo mv openerp-client-6.0.3/* /opt/openerp/client
sudo rm -R openerp-client-6.0.3
cd /opt/openerp/
sudo chown -R openerp: *
sudo mkdir /var/log/openerp
sudo chown openerp:root /var/log/openerp

# Configurar OpenERP
#----------------------------------------------------------------------

sudo cp /opt/openerp/server/doc/openerp-server.conf /etc/openerp-server.conf
sudo chown openerp:root /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf
sudo cp /opt/openerp/server/openerp-server /etc/init.d/openerp-server
sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server
sudo cp /opt/openerp/web/doc/openerp-web.cfg /etc/openerp-web.conf
sudo chown openerp:root /etc/openerp-web.conf
sudo chmod 640 /etc/openerp-web.conf
sudo cp /opt/openerp/web/scripts/openerp-web /etc/init.d/openerp-web
sudo chmod 755 /etc/init.d/openerp-web
sudo chown root: /etc/init.d/openerp-web

# Terminando de Instalar el cliente 
#----------------------------------------------------------------------

cd /opt/openerp/download
sudo wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
sudo tar zxvf setuptools-0.6c11.tar.gz
sudo cd setuptools-0.6c11
sudo python setup.py build
sudo python setup.py install 

cd /opt/openerp/client/bin
openerp-client

# Lanzar aplicaciones
#----------------------------------------------------------------------

sudo /etc/init.d/postgresql restart
sudo /etc/init.d/openerp-server start
less /var/log/openerp/openerp-server.log
sudo /etc/init.d/openerp-web start

#sudo python /opt/openerp/server/bin/openerp-server.py -r openerp -w postgresdemo --db_host 127.0.0.1
#/opt/openerp/server/bin/openerp-server.py --config=/etc/openerp-server.conf

# Ver si esta corriendo OpenERP
#----------------------------------------------------------------------
ps aux | grep openerp


# Otra forrma de instalar el cliente
#----------------------------------------------------------------------

cd /opt/openerp/client/
sudo python setup.py install
openerp-client

/opt/openerp/client/bin/python openerp-client.py
/opt/openerp/client/bin/python openerp-client.py -h


# Instalando Modulos
#----------------------------------------------------------------------

sudo apt-get install bzr

cd /opt/openerp/download
sudo bzr branch lp:~openerp-commiter/openobject-addons/extra-6.0
sudo cp -R /opt/openerp/download/extra-6.0/* /opt/openerp/server/bin/addons/
cd /opt/openerp/server/bin/addons/
sudo chown -R openerp: *

# Instalar Modulos de Argentina
#----------------------------------------------------------------------

cd /opt/openerp/download
sudo bzr branch lp:openerp-argentina
sudo cp -R /opt/openerp/download/openerp-argentina/* /opt/openerp/server/bin/addons/
cd /opt/openerp/server/bin/addons/
sudo chown -R openerp: *
 

III) Segunda forma de instalación:

 
#----------------------------------------------------------------------
# Instalando openERP 6.0.3 desde .DEB 
# http://www.openerp.com/downloads
#----------------------------------------------------------------------

#download penerp-server-6.0-latest.deb 

wget http://nightly.openerp.com/6.0/releases/openerp-server-6.0-latest.deb
wget http://nightly.openerp.com/6.0/releases/openerp-client-6.0-latest.deb
#wget http://nightly.openerp.com/6.0/releases/openerp-web-6.0-latest.tar.gz

# see dependences: python-dateutil python-libxslt1 python-lxml python-psycopg2 python-pydot python-pychart python-reportlab python-tz python-pyparsing python-yaml postgresql-client
# You need dokg. To installit use: sudo apt-get install dpkg 
 
# Install server with dpkg:
dpkg -i openerp-server-6.0-latest.deb
Selecting previously unselected package openerp-server.
(Leyendo la base de datos ... 56530 ficheros o directorios instalados actualmente.)
Desempaquetando openerp-server (de openerp-server-6.0-latest.deb) ...
Configurando openerp-server (6.0.4-0) ...

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Open ERP uses a PostgreSQL database to store its data. With the first *
* generation of packages, you have to setup this database manually. *
* Please read /usr/share/doc/openerp-server/README.Debian how to do it. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Starting openerp-server: openerp-server.
Procesando disparadores para ureadahead ...
Procesando disparadores para man-db ...
Procesando disparadores para python-support ...
...


Java: Uninstall openjdk from ubuntu


# Desinstalar openjdk de ubuntu
#----------------------------------------------------------------------------------------------------

sudo apt-cache search openjdk
sudo update-alternatives --config java

sudo apt-get --purge remove openjdk-6-jre openjdk-6-doc openjdk-6-jre-headless openjdk-6-jre-lib
sudo apt-get autoremove




References:
- http://yoodey.com/removing-openjdk-jre-ubuntu-1010-ec2-amazon-and-install-sun-java-6-jre-jdk


martes, 29 de mayo de 2012

Sheets Utils

This there is a set of "Memory aid" Sheets ("Quick Reference Card") as a reference tool which provides quickly cut and paste kind of commands to complete a specific task.

Sheet Online:
More Sheet:

Sheet to Download:

Welcome to the programming point

Hi all welcome to this site. This blog is an informal collection of drafts and notes that provides assistance programming public memory for tasks related to computer programming and configuration.