This is a translated page. The original can be found here: http://www.hoshi.it/blog/index.php/2009/09/10/openerp-guida-allinstallazione-su-ubuntu-8-04/
set 10 September 10

OpenERP è un potente applicativo in grado di gestire l'attività di aziende di vario tipo (dalla manifatturiera all'eCommerce fino all'IT) rilasciato dall'azienda francese Tiny ERP in collaborazione con Axelor. OpenERP is a powerful application capable of managing the activities of farms of different types (from the manufacturing eCommerce up IT) issued by the French company in collaboration with Tiny ERP Axelor. Rappresenta un sistema detto “a moduli” in cui, importando i moduli, è possibile utilizzare nel gestionale tra le operazioni più disparate (per esempio un modulo che gestisce i contatti e la contabilità con i clienti ei fornitori, un modulo che tiene traccia degli orari di lavoro dei dipendenti ecc.). Represents a system called "modules" in which, by importing modules, you can use in the management of disparate operations (for example, a module that manages contacts and accounts with customers and suppliers, a module that keeps track of the times of employees, etc..).

Cosa interessante è che OpenERP è completamente gratuito ea disposizione della community: il suo codice sorgente è aperto, è rilasciato sotto licenza GPL (che non è il combustibile What's interesting is that ERP is completely free and available to the community: its source code is open, is licensed under the GPL (which is the fuel : Lol: ma una licenza che ti permette di poter modificare il codice del prodotto e di venderlo senza problemi di copyright) e il software è estendibile in tutte le sue forme (i moduli si possono considerare allo stesso modo dei plugin di Firefox). but a license that allows you to modify the code of the product and sell it without copyright issues) and the software can be extended in all its forms (the forms can be considered the same way as Firefox plugin).

C'è solo un inconveniente: la documentazione è molto scarsa e poco chiara e anche solamente per una semplice installazione ci sono molte guide che non sono molto curate. There is only one drawback: the documentation is very poor and unclear, and even just for a simple installation, there are many guides that are not very accurate. Scrivo perciò questo articolo per coloro si trovassero in difficoltà e si fossero persi tra forum e siti non del tutto esaurienti. So I write this article for those they were in trouble and had lost between forums and sites are not totally comprehensive.

In questo primo articolo vedremo come installare questo gestionale all'interno di un sistema Ubuntu 8.04. In this first article we will see how to install this in a management system Ubuntu 8.04. La versione di OpenERP presa in considerazione è quella attualmente disponibile (la 5.0.3). The version of OpenERP taken into consideration is that currently available (the 5.0.3). Aprite perciò un terminale a riga di comando e digitate questa riga per scaricare il pacchetto compresso. So open a terminal command line and type this line to download the compressed package.

wget http://openerp.com/download/stable/source/openerp-server-5.0.3.tar.gz wget http://openerp.com/download/stable/source/openerp-server-5.0.3.tar.gz

Terminato il download, sempre nello stesso terminale scompattate il file tar e spostatevi nella cartella appena creata After downloading, always in the same terminal unpack the tar file and move the newly created folder

tar xfz openerp-server-5.0.3.tar.gz tar xfz OpenERP-server-5.0.3.tar.gz

cd openerp-server-5.0.3 OpenERP-server-5.0.3 cd

Prima di far partire il processo di installazione, abbiamo bisogno di alcuni pacchetti che potrebbero essere richiesti da OpenERP (soprattutto il database PostgreSQL che è il DB dove OpenERP si appoggia per caricare i dati o l'interprete Python che è fondamentale per eseguire i moduli di OpenERP). Before starting the installation process, we need some packages that may be required by OpenERP (especially the PostgreSQL database that is the OpenERP DB where it supports to load the data or the Python interpreter that is critical to run the modules OpenERP). Avviate questo comando e aspettate che tutti i programmi siano installati (alcuni di questi potrebbero non servire ma voi scaricateli lo stesso). Run this command and wait until all programs are installed (some of these may not be needed but you download it the same). In guide future analizzeremo alcuni di questi programmi e che integreremo con OpenERP. In future we will analyze some of these guides and programs that integrate with ERP.

sudo aptitude install python-psycopg2 python-libxml2 python-libxslt1 python-xml \ sudo aptitude install python-psycopg2 python-libxml2 python-xml python-libxslt1 \
python-reportlab python-pychart python-pydot poppler-utils \ python-python-ReportLab pychart pydot python-poppler-utils \
python-lxml python-tz python-vobject python-profiler antiword \ python-lxml python-tz python-vobject python-profiler antiword \
fetchmail postgresql fetchmail postgresql

Se siete rimasti all'interno della cartella del server di OpenERP, eseguite la riga seguente per installare OpenERP: If you stay inside the OpenERP server folder, run the following command to install OpenERP:

sudo python setup.py install sudo python setup.py install

Terminata l'installazione, adesso abbiamo bisogno di un client che farà da interfaccia grafica. After installation, we now need a client that will be the graphical interface. Per semplicità ci affideremo all'interfaccia web che è molto flessibile e versalite (nonchè eseguibile su qualsiasi browser). For simplicity we will rely on the web that is very flexible and versalite (as well as runs on any browser). Ci affideremo sempre al terminale di comando e in particolare ai comandi easy_install e TurboGears che scaricheranno per noi la versione più aggiornata del client web. We will rely increasingly to the control terminal, and in particular the command easy_install TurboGears and for us who download the latest version of the web client. Non perdiamo tempo ed eseguite queste 3 righe. Do not waste time and perform these 3 lines.

sudo apt-get install python-setuptools sudo apt-get install python-setuptools
sudo easy_install TurboGears==1.0.8 sudo easy_install TurboGears == 1.0.8
sudo easy_install -U openerp-web sudo easy_install-U-OpenERP Web

Dato che tutti i dati di OpenERP saranno gestiti dal database PostgreSQL, dobbiamo fare in modo che il database abbia i permessi necessari per poter richiamare il gestionale. Since all data will be managed by OpenERP database PostgreSQL, we must ensure that the database has the required permissions to call the management. Rendiamo perciò l'intera cartella del server come proprietaria dell'utente postgres (l'utente amministratore di PostgreSql). Let us, therefore, the entire folder of the server as user postgres owns (user administrator Postgres).

sudo chown -R postgres /usr/lib/python2.5/site-packages/openerp-server sudo chown-R postgres / usr/lib/python2.5/site-packages/openerp-server

Abbiamo praticamente finito, adesso We pretty much over now (in 2 diverse terminali a linea di comando) dobbiamo eseguire il server e avviare il client web. (In 2 different terminal command line) we have to run the server and start the web client. Questi comandi dovranno essere richiamati ogni volta a meno che non abbiamo installato il tutto all'interno di una macchina server: These commands will be called each time unless you have installed all within a server machine:

sudo su postgres -c “openerp-server” sudo su postgres-c "OpenERP-server"

openerp-web OpenERP-Web

Se vedrete dei log senza alcun errore, tutto dovrebbe essere ok. If you see no error logs, everything should be ok. Lasciate perciò le finestre in secondo piano e aprite un browser e digitate “http://localhost:8080″. Let therefore the second floor windows and open a browser and type in "http://localhost:8080".
Naturalmente “localhost” ci va nel caso in cui abbiate eseguito tutta la procedura in locale mentre invece se avete eseguito tutto su una macchina remota, mettete al posto di “localhost” l'indirizzo ip della macchina o l'host remoto. Of course, "localhost" in case we should have performed the entire procedure locally whereas if you have done everything on a remote machine, put in place of "localhost" IP address of the machine or the remote host. “8080″ in quanto la porta di ascolto di OpenERP di default è la 8080 (attenzione quindi se avete un altro servizio in ascolto su quella porta). "8080" as the listening port of the default is the OpenERP 8080 (attention so if you have another service listening on that port).

Se tutto sarà andato bene dovreste vedere questa schermata. If everything went well you should see this screen.

http://img42.imageshack.us/img42/9238/erp.png

Nel prossimo articolo vedremo come creare un database dal gestionale, un primo utilizzo e alcune configurazioni particolarmente interessanti che renderanno più semplice l'utilizzo di questo utilissimo strumento. In the next article we will see how to create a database from management, a first time and some very interesting configurations that make it easier to use this valuable tool.

Translate this post Translate this post

Articoli simili Similar Articles

  • Nessun articolo simile trovato No items found similar

Lascia la tua risposta Leave your answer