Installation and login

The purpose of this lesson is to help you get starting with iDempiere. It includes deciding where to host, how to install, and strategies for best learning how to use it.

Before You Start

Before you start installing ADempiere or iDempiere, read this article. It explains your installation options.

Getting Started - Choosing between ADempiere and iDempiere

Here is an article that discusses the differences between ADempiere and iDempiere. It should also help you choose between them.

Getting Starting – iDempiere Simple Installation Introduction

Here is a quick discussion:
Here is the actual demo:
iDempiere Installation Script repository. Notes: This above installation is good for evaluating iDempiere and for small (<10) concurrent user counts. See the main coursework section named "Production Installation and Hosting" to see installation options to support larger user counts.

Getting Started - iDempiere Installation with Virtual Box

Use the below video as a guide to install Ubuntu in VirtualBox. Once done, you can use the above video's to install iDempiere. https://www.youtube.com/watch?v=nBm7pz9Ok1k After your machine is created and before you install Ubuntu, right-click on your virtual machine and choose settings. Under the Network options, set the “Attached to:” field to “Bridged Adapter”. This setting allows all machines on your local network to see your server. Said another way, this setting adds the server to the network just like any other machine. If you leave the “Attached to:” field at its default value of “NAT”, the server would exist in a little bubble that no one can connect to. https://www.youtube.com/watch?time_continue=343&v=ArcQtZ7kiHI Simple Instructions:

iDempiere Installation from a Private Jenkins Server

Deepak contributed an update to the installation script that allows you to install iDempiere from a private project in Jenkins. If you are an integrator or you are selling a private distribution of iDempiere or you are an end user with a proprietary build of iDempiere, this enhancement will make your life much easier and better (and hopefully richer:). It is convenient to be able to use the standard installer.

Sample Installation Script Command Line using Private Credentials 

Note the bolded text represents something different than the normal installation. The sed statements update the properties file. The -j and -J flags tell the installation script where to look for the private repository. sudo apt-get -y update; sudo apt-get -y install mercurial; hg clone https://bitbucket.org/cboecking/idempiere-installation-script; sed -i "s|#CHUBOE_PROP_JENKINS_AUTHCOMMAND|CHUBOE_PROP_JENKINS_AUTHCOMMAND|" idempiere-installation-script/utils/chuboe.properties; sed -i "s|USERNAME_HERE|chuck..becking|" idempiere-installation-script/utils/chuboe.properties;  sed -i "s|API_TOKEN_HERE|mypassword|" idempiere-installation-script/utils/chuboe.properties;  chmod 766 idempiere-installation-script/*.sh; ./idempiere-installation-script/idempiere_install_script_master_linux.sh -J http://jenkins.logilite.com/ -j logiliteID-3_1-priv -P Silly -u ubuntu -l &>output.txt; nano /opt/chuboe/idempiere_installer_feedback.txt If you are concerned with your password existing in your history, you can issue a "history -c" to clear that session's history.

2014-11-21 iDempiere Installation with SSL/https and Apache Login (Firewall)

See also: OpenVPN Installation and Configuration See also: Free Certificate Authority (SSL)

Getting Started - "ADempiere" Installation Script

I created a script for installing ADempiere. It is not automated like the iDempiere script; However, it is nice because all you need to do is copy/paste a bunch of commands. The script is located in my bitbucket repository. Here is the path: Installation-Script-Repo=>Source=>adempiere_install_script_master_linux file. Click on the file link to open this file. Copy and paste these commands one at a time into your new Linux server.

Development Environment Installation and Execution

Please note this is an advanced topic. If you are new to iDempiere, I do not recommend you perform this step until you have a specific need for a development environment.

NOTE: make sure you install the correct version of buckminster and mercurial. See the iDempiere Installation feedback file for details about which versions to use. Many of the tutorials on the internet call for using an old version of buckminster. NOTE: if you are materializing 3.1 or development branch, you might run into issues where multiple packages show errors (red circles). To fix, follow these steps: VirtualBox and Guest Additions Quick links for more information

Installing iDempiere on Amazon's PostgreSQL RDS Database

NOTE: as of 2015-07-22, the installation script will now install directly into an AWS RDS instance. NOTE: RDS is now on PostgreSQL 9.4. Ubuntu 14.04 is still on 9.3. To use psql to perform backups, etc.., you need to upgrade your psql using these instructions: NOTE: the below is no longer needed; however, it will be kept for reference for some period of time. The purpose of this section is to help you install iDempiere on Amazon's PostgreSQL RDS service. Unfortunately, getting iDempiere up and running on RDS requires a little more work as compared to using the PostgreSQL that comes with Linux. The reason is that RDS does not give you access to the 'postgres' superuser or 'superuser' privileges. iDempiere's installation scripts assume you have access to both. Please note this is a more advanced topic. There is much assumed there that a brand new person might not know or understand. Here are the steps to help you work around this issue:
  1. Log into AWS and create a new PostgreSQL RDS instance. Note that you will want to use a VPC. Also note that RDS might not let you use an existing VPC. If so, just let the RDS creation process create a new one for you. Make note of its ID when done. I used the following values during my RDS creation:
    1. Database User: harp4u - FYI stands for high availability read postgres attempt 4 :)
    2. Database: harp4db
  2. Create a new EC2 instance in the same VPC used/created in step 1. This will host your iDempiere application server (appserver).
  3. Install iDempiere as if you were installing all components on the same machine (appserver + database).
  4. Verify that iDempiere is running successfully.
  5. Connect via ssh to your iDempiere server.
  6. Issue:
    1. sudo service idempiere stop
  7. Log into your RDS database using:
    1. psql -d harp4db -U harp4u -h harp4.c7uuuoadpu6z.us-east-1.rds.amazonaws.com
      1. -d is the database created in step 1
      2. -U is the db user created step 1
      3. -h is the host URL - this will come from step 1.
  8. Issue the following commands:
    1. CREATE ROLE adempiere WITH CREATEDB CREATEROLE LOGIN PASSWORD 'Silly'; -- note that 'Silly' is the same password given during the above iDempiere installation.
    2. GRANT adempiere TO harp4u;
    3. GRANT rds_superuser TO adempiere;
    4. \q
  9. Log into your RDS using your newly created adempiere role:
    1. psql -d harp4db -U adempiere -h harp4.c7uuuoadpu6z.us-east-1.rds.amazonaws.com
  10. Issue the following commands:
    1. CREATE DATABASE idempiere WITH ENCODING='UNICODE';
    2. ALTER ROLE adempiere SET search_path TO adempiere, pg_catalog;
    3. \c idempiere
    4. CREATE EXTENSION "uuid-ossp";
    5. \q
  11. Populate your iDempiere database:
    1. psql -d idempiere -U adempiere -h harp4.c7uuuoadpu6z.us-east-1.rds.amazonaws.com -f /opt/idempiere-server/data/seed/Adempiere_pg.dmp &> importResults.txt
  12. cd /opt/idempiere-server
  13. Run the idempiere setup utility:
    1. sudo -u idempiere ./console-setup.sh
      1. Set the Database Exists = Y
      2. Change the DB URL to that of your RDS
  14. sudo service idempiere start
If you wish to start over, perform the following commands:
  1. sudo service idempiere stop
  2. psql -d harp4db -U harp4u -h harp4.c7uuuoadpu6z.us-east-1.rds.amazonaws.com
    1. ALTER DATABASE idempiere OWNER TO harp4u;
    2. DROP DATABASE idempiere;
    3. DROP ROLE adempiere;
Notes
  1. If you are creating a production system, you should consider creating your initial iDempiere instance as a separate database and application server. The reason is that the script makes performance tweaks when it installs a dedicated appserver and/or database. You will ultimately throw away the initial database; however, if your application server is big enough, you want iDempiere to make the most of the server's potential.