The steps to create a virtual machine are not mentioned here, please refer to the previous blog post.
First update the Ubuntu system with the following command:
1. sudo apt-get update
2. Sudo apt-get upgrade
3. Sudo apt-get dist-upgrade
Then use your familiar text editor to edit the/etc/apt/sources.list
7.0 Stable Version
Deb http://nightly.openerp.com/7.0/nightly/deb/./
Development version, should be version 8.0
Deb http://nightly.odoo.com/trunk/nightly/deb/./
Using sudo apt-get update
sudo apt-get install OpenERP
Then wait for the installation to finish!
One problem with this installation is that the PostgreSQL database will be installed on the system. Of course we're going to have to remove it at the end.
This kind of installation method is more suitable for production mode use. After installation, some of the required components are automatically installed, and some parameters are automatically configured.
After the installation is complete, enter: Openerp-server, you can.
Next we will use the following command to generate the configuration file
sudo openerp-server–s–c <config_file_path>
Edit the section about database connections in the configuration file:
Db_host = xxx.xxx.xxx.xxx
Db_password = xxxxxxxxxxx
Db_port = 5432
Db_user = xxxxxxxx
The configuration file is best stored under/etc/openerp/, and we'll use it next.
After the configuration file has been modified, we use OPENERP-SERVER–C <config_file_path> run the system.
There is a small hole in it, the ownership of this configuration file should be changed to the system login user, if not modified, when the boot from the startup settings, will cause an error.
Now let's edit the/etc/init.d/openerp and check if some of these configurations are correct.
When the file is checked, use Sudo/etc/init.d/openerp start to check if the system is functioning properly.
After normal, please use the sudo update-rc.d openerp defaults command to set the OPENERP system to boot from boot.
Finally, let's use the following command to delete the native PostgreSQL database:
Dpkg–purge postgresql-9.3
The number behind is the version number of the PostgreSQL database.