This introduction briefly describes [http://openerp.com/ Open ERP], its basic design, and its community. The rest of this wikipage details installing and configuring Open ERP on Arch Linux. It also provides additional information about Open ERP documentation, community, and development.

+

This introduction briefly describes [http://openerp.com/ Open ERP], its basic design, and its community. The rest of this article details installing and configuring Open ERP on Arch Linux. It also provides additional information about Open ERP documentation, community, and development.

Open ERP features an application server which uses PostgreSQL for its database, along with a standalone GTK-based client, as well as a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. Open ERP developers have a strong committment to free software.

+

Open ERP features an application server which uses PostgreSQL for its database, with a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. Open ERP developers have a strong committment to free software.

A thriving support and development community has grown up around Open ERP, providing free technical support, bugfixing, new development, and support services. Open ERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of Open ERP earns profits through partnership services with Open ERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.

A thriving support and development community has grown up around Open ERP, providing free technical support, bugfixing, new development, and support services. Open ERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of Open ERP earns profits through partnership services with Open ERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.

=Before Installing Open ERP=

=Before Installing Open ERP=

−

−

The following instructions assume that you have installed the 'sudo' command on your Arch Linux system. If you have not already done so, go to the [[sudo]] Arch Wikipage for more information.

===Installing PostgreSQL===

===Installing PostgreSQL===

−

Open ERP uses the PostgreSQL database, which should be installed and configured before installing Open ERP. Follow the instructions in the "Installing PostgreSQL" section of the [https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL Arch PostgreSQL Wikipage]. Complete these installation instructions, but do '''not''' perform any other configuration from that page. Return to this page for additional configuration steps.

+

Open ERP uses the PostgreSQL database, which should be installed and configured before installing Open ERP. Follow [[PostgreSQL#Installing PostgreSQL]]. Complete these installation instructions, but do '''not''' perform any other configuration from that page. Return to this page for additional configuration steps.

===Configuring PostgreSQL for local use on your own machine===

===Configuring PostgreSQL for local use on your own machine===

−

If you plan to use PostgreSQL and Open ERP on the same machine, you will need to configure PostgreSQL to listen on the localhost's 5432 TCP port. As root, open the following configuration file with a text editor:

+

If you plan to use PostgreSQL and Open ERP on the same machine, you will need to configure PostgreSQL to listen on the localhost's 5432 TCP port. Open {{ic|/var/lib/postgres/data/postgresql.conf}} and navigate to the {{ic|CONNECTIONS AND AUTHENTICATION}} section. Uncomment the {{ic|listen_addresses}} and {{ic|port}} lines. Save the file. When complete, the section should appear as follows:

Restart PostgreSQL so that it uses the newly changed conf file, by executing the following command:

+

Restart PostgreSQL so that it uses the newly changed conf file.

−

−

sudo /etc/rc.d/postgresql restart

−

−

Verify that PostgreSQL is listening on the localhost port 5432 by executing the following command:

−

# ss -anpt

+

Verify that PostgreSQL is listening on the localhost port 5432:

−

+

{{hc|# ss -anpt|

−

Within the output from this command, you should find the following line of text, except for the PID number which will very likely be different:

+

tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 13420/postgres}}

−

−

tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 13420/postgres

===Configuring PostgreSQL for remote use over a network===

===Configuring PostgreSQL for remote use over a network===

−

If you need remote access to PostgreSQL over a network, read the following section from the [https://wiki.archlinux.org/index.php/PostgreSQL#Configure_PostgreSQL_to_be_accessible_from_remote PostgreSQL Arch Wikipage].

+

If you need remote access to PostgreSQL over a network, read [[PostgreSQL#Configure PostgreSQL to be accessible from remote hosts]].

===Setting up PostgreSQL to run with Open ERP===

===Setting up PostgreSQL to run with Open ERP===

Next, it is necessary to create a new PostgreSQL user for Open ERP. In this example, the user is 'yourusername', but you should replace this with your Arch system login username. First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:

Next, it is necessary to create a new PostgreSQL user for Open ERP. In this example, the user is 'yourusername', but you should replace this with your Arch system login username. First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:

−

+

*If you have {{Pkg|sudo}} set up:

−

sudo su - postgres

+

$ sudo -i -u postgres

+

*Otherwise:

+

$ su

+

# su - postgres

Once logged in as postgres, begin the process of creating the 'yourusername' user, with the folowing command:

Once logged in as postgres, begin the process of creating the 'yourusername' user, with the folowing command:

−

createuser yourusername -P

+

$ createuser yourusername -P

You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a [http://world.std.com/~reinhold/diceware.html Diceware Passphrase]. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n

You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a [http://world.std.com/~reinhold/diceware.html Diceware Passphrase]. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n

+

+

You may also use options as below to skip the interactive questions to set the attributes:

Once you are finished answering these questions, type the word 'exit' to log out from PostgreSQL as the postgres superuser.

Once you are finished answering these questions, type the word 'exit' to log out from PostgreSQL as the postgres superuser.

−

You may want to edit your /etc/rc.conf file by adding postgresql to the Daemons list, so that PostgreSQL will automatically start up when you boot up your computer.

+

You may want to enable {{ic|postgresql}} with [[systemd]] so it will start at boot.

−

This completes the installation and setup of PostgreSQL for use with Open ERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found on the Arch Wikipage for [[PostgreSQL]], and the [http://www.postgresql.org/docs/manuals/ PostgreSQL Manuals webpage]. Also, there is a powerful GUI PostgreSQL Admin tool, [http://www.pgadmin.org/ pgAdmin], which is available in the Arch repositories.

+

This completes the installation and setup of PostgreSQL for use with Open ERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found in the [[PostgreSQL]] article, and the [http://www.postgresql.org/docs/manuals/ PostgreSQL Manuals webpage]. Also, there is a powerful GUI PostgreSQL Admin tool, [http://www.pgadmin.org/ pgAdmin], which is available in the Arch repositories.

=Installing Open ERP from AUR=

=Installing Open ERP from AUR=

−

Open ERP requires the installation of the Open ERP Server, Open ERP comes with a webserver so you can use your web browser to use it, or you cna use a Open ERP GTK-Client installed from AUR. Currently, Open ERP is not available in the main repositories of Arch Linux, but it is available through the Arch User Repository. Open ERP requires Python 2.7, various libraries compiled with Python 2.7, and a few other dependencies not found in the Arch repositories. All of these packages are provided through AUR. The best tool for downloading, compiling, and installing AUR packages is [[yaourt]]. The following instructions assume that yaourt has been installed and configured on the user's system.

+

Open ERP requires the installation of the Open ERP Server, Open ERP comes with a webserver so you can use your web browser to use it. Currently, Open ERP is not available in the official repositories, but it is available through the Arch User Repository.

===install Open ERP===

===install Open ERP===

−

yaourt -S openerp

+

Install {{AUR|openerp}} from the [[AUR]].

===configure Open ERP===

===configure Open ERP===

−

the configure file of Open ERP server is at /etc/openerp/openerp-server.conf. make it look like this:

+

the configure file of Open ERP server is at {{ic|/etc/openerp/openerp-server.conf}}. make it look like this:

[options]

[options]

Line 107:

Line 88:

db_user = yourusername ##this is username you created in postegres.

db_user = yourusername ##this is username you created in postegres.

db_password =

db_password =

+

if you want to run openerp in multiple process, you can add this line to {{ic|/etc/openerp/openerp-server.conf}}.

+

workers = n # change n to a number you like.

=== start Open ERP server===

=== start Open ERP server===

Line 112:

Line 95:

use the command below to enable autostart openerp server when system boot:

use the command below to enable autostart openerp server when system boot:

−

systemctl enable openerp.service

+

systemctl enable openerp-server.service

use the command below to start openerp:

use the command below to start openerp:

−

systemctl start openerp.service

+

systemctl start openerp-server.service

=== login to Open ERP ===

=== login to Open ERP ===

Line 122:

Line 105:

use your favorite web browser and go to link below:

use your favorite web browser and go to link below:

−

127.0.0.1:8069

+

127.0.0.1:8069

shows openerp login page.

shows openerp login page.

−

===Open ERP GTK-Client===

+

= additional settings =

−

+

you can see a complete list of configuration by using below command, it will save a copy of configuration file to {{ic|~/.openerp_serverrc}}.

−

To install the Open ERP standalone GTK-based client, from the CLI, execute the following command:

+

openerp-server -s

−

+

for more information, use

−

yaourt -S openerp-client

+

openerp-server --help

=Additional Open ERP Documentation=

=Additional Open ERP Documentation=

−

There are various sources of Open ERP documentation. The best place to start is the [http://doc.openerp.com/ Open ERP Documentation webpage]. This page links to different online documents, including [http://doc.openerp.com/install/index.html detailed installation instructions]. Additionally, there is an online copy of the book, [http://doc.openerp.com/book/index.html "Open ERP for Retail and Industrial Management"]. This copy is also available as a [http://www.openerp.com/en/buy/e-book.html PDF file]{{Linkrot|2011|09|06}}, and can be purchased in [http://www.openerp.com/buy.html?page=shop.product_details&flypage=openerp.tpl&product_id=36&category_id=8 hardcopy form from Open ERP]{{Linkrot|2011|09|06}} or from [http://www.amazon.com/Open-ERP-Retail-Industrial-Management/dp/2960087607/ Amazon.com]. While Open ERP documentation, such as "Open ERP for Retail and Industrial Management" is freely downloadable, it does not come with a free documentation license. Further details about this issue are found on the [http://doc.openerp.com/documentation_license.html Open ERP website]{{Linkrot|2011|09|06}}. Finally, [http://www.openerp.tv/ Open ERP TV] provides screencasts, some of which document various features and procedures of the software.

+

There are various sources of Open ERP documentation. The best place to start is the [http://doc.openerp.com/ Open ERP Documentation webpage]. This page links to different online documents, including [http://doc.openerp.com/install/index.html detailed installation instructions]. Additionally, there is an online copy of the book, [http://doc.openerp.com/book/index.html "Open ERP for Retail and Industrial Management"],and can be purchased from [http://www.amazon.com/Open-ERP-Retail-Industrial-Management/dp/2960087607/ Amazon.com]. While Open ERP documentation, such as "Open ERP for Retail and Industrial Management" is freely downloadable, it does not come with a free documentation license.

Introduction

This introduction briefly describes Open ERP, its basic design, and its community. The rest of this article details installing and configuring Open ERP on Arch Linux. It also provides additional information about Open ERP documentation, community, and development.

Open ERP features an application server which uses PostgreSQL for its database, with a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. Open ERP developers have a strong committment to free software.

A thriving support and development community has grown up around Open ERP, providing free technical support, bugfixing, new development, and support services. Open ERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of Open ERP earns profits through partnership services with Open ERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.

Before Installing Open ERP

Installing PostgreSQL

Open ERP uses the PostgreSQL database, which should be installed and configured before installing Open ERP. Follow PostgreSQL#Installing PostgreSQL. Complete these installation instructions, but do not perform any other configuration from that page. Return to this page for additional configuration steps.

Configuring PostgreSQL for local use on your own machine

If you plan to use PostgreSQL and Open ERP on the same machine, you will need to configure PostgreSQL to listen on the localhost's 5432 TCP port. Open /var/lib/postgres/data/postgresql.conf and navigate to the CONNECTIONS AND AUTHENTICATION section. Uncomment the listen_addresses and port lines. Save the file. When complete, the section should appear as follows:

Configuring PostgreSQL for remote use over a network

Setting up PostgreSQL to run with Open ERP

Next, it is necessary to create a new PostgreSQL user for Open ERP. In this example, the user is 'yourusername', but you should replace this with your Arch system login username. First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:

Once logged in as postgres, begin the process of creating the 'yourusername' user, with the folowing command:

$ createuser yourusername -P

You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a Diceware Passphrase. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n

You may also use options as below to skip the interactive questions to set the attributes:

Once you are finished answering these questions, type the word 'exit' to log out from PostgreSQL as the postgres superuser.

You may want to enable postgresql with systemd so it will start at boot.

This completes the installation and setup of PostgreSQL for use with Open ERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found in the PostgreSQL article, and the PostgreSQL Manuals webpage. Also, there is a powerful GUI PostgreSQL Admin tool, pgAdmin, which is available in the Arch repositories.

Installing Open ERP from AUR

Open ERP requires the installation of the Open ERP Server, Open ERP comes with a webserver so you can use your web browser to use it. Currently, Open ERP is not available in the official repositories, but it is available through the Arch User Repository.