Import new VM (ubuntu-14.04-server-i386.ova) into Virtual box where midpoint 3.0 is to be installed. Set up settings, especially motherboard base memory with 2048 MB.=================================================================================================================================================================

Set up Port forwarding in midpoint demo VM in Virtual box (Settings -> Network -> Advanced) in order to run midpoint, putty and web applications:

Name

Protocol

Host IP

Host Port

Guest IP

Guest Port

Rule1 (midpoint)

TCP

127.0.0.1

8080

10.0.2.15

8080

Rule2 (web apps)

TCP

5678

80

Rule3 (putty)

TCP

2222

22

You can check out your Host IP and Guest IP in ubuntu via command: ifconfig

In case you are working in windows (where virtual box is installed) possibility to create new port (for example for putty) is via command: C:\Program Files\Oracle\Virtual Box>VBoxManage modifyvm "ubuntu-14.04-server-i386" --natpf1 "Rule3,tcp,,2222,,22"=================================================================================================================================================================

It works! should appear. Once installed, you can access the manager webapp and the host-manager webapp entering username administrator and password 5ecr3t.=================================================================================================================================================================

InstallWinSCP (commander variant) on local operation system because of need to transfer files between local operation system and midpoint VM located on Virtual box.=================================================================================================================================================================

Download and install KeyStore Explorer 5.0 in order to combine default and strong key from midpoint's 2.2.1 keystore.jceks (located in var/opt/midpoint) with midpoint's 3.0 keystore.jceks default key (located in /opt/midpoint-home).=================================================================================================================================================================

Create export.csv file or import via WinSCP and set up full access rights (sudo chmod 777 export.csv) and also chmod o+w for hr in path /var/opt/hr/export.csv Also set sudo chown tomcat7:tomcat7 /var/opt/hr=================================================================================================================================================================

In order to run Addressbook resource create database addressbook with table people. You can also import file addressbook.sql from VM Demo2.2.1 (postgres@electra:~$ pg_dump adddressbook > /tmp/addressbook.sql) into postgres database (via WinSCP) VM Demo3.

Following command for table people creation is also possible to use:

addressbook=# create table people (first_name CHARACTER VARYING(100),last_name CHARACTER VARYING(100) NOT NULL,tel_number CHARACTER VARYING(32),fax_number CHARACTER VARYING(32),office_id CHARACTER VARYING(32),floor integer,street_address CHARACTER VARYING(100),city CHARACTER VARYING(100),country CHARACTER VARYING(100),postal_code CHARACTER VARYING(16),validity boolean, created timestamp without time zone,modified timestamp without time zone,username CHARACTER VARYING(64),password CHARACTER VARYING(64));=================================================================================================================================================================

addressbook=# grant all privileges on database addressbook to addressbook;

addressbook=# grant all on table people to addressbook;=================================================================================================================================================================

Import addressbook.war and hr.war into ./tomcat7/webapps=================================================================================================================================================================

NOTE: exportPhpLdapAdminDemo3.ldif file configuration passwords and passwords in 000-default.conf file has to be identical

Check /var/log/apache2/error.log or /var/log/apache2/access.log in case of trouble. Also direction has to be created for library application: sudo mkdir /var/www/library sudo chown tomcat7:tomcat7 /var/www/library sudo service tomca7 restart=================================================================================================================================================================

According settings in /var/lib/tomcat7/webapps/hr/WEB-INF/db-config.xml and in 000-default.conf add password to user hr: