Prepare Environment
Preflight tasks ..
Prepare Environment
You will need perform the following steps to prepare your Linux environment for an Archive installation of the Pentaho Server.
This process includes:
create a 'Pentaho installation user' with sudo privileges.
install supported version of OpenJDK 11
set PENTAHO_JAVA_HOME
install certified version of Postgres 15
create 'superadmin' user
install pgAdmin4
The supported Linux environment for Pentaho version 10.2.x: Ubuntu 22.04
Check Components Reference
Pentaho Installation Account
Add an account that is assigned administrative privileges by performing the following steps. We'll be using this account to complete the deployment.
For production environments its best practice to create a specific 'installation user' account with the required role / permissions / privileges.
Run update & upgrade (optional).
sudo apt update -y && sudo apt upgrade -yAdd new user to system.
sudo adduser pentahoSet password.
New password: password
Retype new password: password
passwd: password updated successfully
Follow the prompts to set the new user’s information. It is fine to accept the defaults to leave
all this information blank:Add new user to sudo group.
sudo usermod -aG sudo pentahoTest access.
su - pentahosudo ls -la /rootRun update & upgrade.
Check whether Java is already installed in our system.

Install openjdk 11.
Check Java version.
Tidy up.
Set Java Version
You can have multiple Java installations on one server. You can configure which version is the default for use on the command line by using the update-alternatives command.
Run the following command to set the preferred Java version.
Set PENTAHO_JAVA_HOME
Perform the following steps to set the PENTAHO_JAVA_HOME environment variable. This will ensure that if there are multiple versions of Java the correct version is associated with PENTAHO_JAVA_HOME.
Run update & upgrade.
Verify java version.
Determine path to OpenJDK.
Set PENTAHO_JAVA_HOME - Global
As Pentaho is being installed under root to /opt/ then set PENTAHO_JAVA_HOME for all users.
Edit /etc/environment.
Add the following.
Save.
Check path.
Restart the server.
Set the path to OpenJDK.
Add the following to the bottom.
Save.
Reload .bashrc.
Check path.
Restart the server.
PostgreSQL 15
PostgreSQL 14 & 15
MySQL 8.026
MySQL 8.026
Oracle 23c
Oracle 19c & 23c (including patched versions)
MS SQL Server 2019
Microsoft SQL Server 2017 & 2019 (including patched versions)
Maria DB 11.1.2
Maria DB 11.1.2
Supported Pentaho Database - PostgreSQL
Ensure you have a 'clean' PostgeSQL environment to avoid any potential conflicts - usually port.
Run update & upgrade.
Check Postgresql version.
If PostgreSQL is installed, check its a supported version:
PDI v10.2 == Postgres 14 & 15
If not purge current Postgresql instance.
Execute each command separately ..
sudo apt autoremove to tidy up ..
Check for packages.
Update Repository list.
Install PostgreSQL 14.
Check the PostgreSQL version.
PostgreSQL 15 - Add APT Repository
If you decide to go the PostgreSQL 15, the package is not available in the default package repository, so needs to be added to the official package repository using following commands.
Add APT Repository.
Import GPG key.
Update Repository list.
Reboot server.
Install postgresql 15.
Check postgresql 15 status.
Check the PostgreSQL version.
Tidy up installation.
Grant privileges to a SuperUser
During installation, a 'postgres' user is created automatically. This user has full superadmin access to your entire PostgreSQL instance. Before you switch to this account, your logged in system user should have sudo privileges.
Log in as 'postgres' user.
Change password.
Exit
Switch to 'postgres' user.
Create 'pentaho' user.
Upgrade 'pentaho' to superuser.
Exit.
Switch to 'pentaho' user:
Check connection details.
Exit.
Allow Remote Connections
For reference only as connecting to Postgresql via localhost
By default, PostgreSQL accepts connections from the localhost only. However, we can easily modify the configuration to allow connection from remote clients.
PostgreSQL reads its configuration from the postgresql.conf file which is located: /etc/postgresql/<version>/main/ directory
Edit the postgresql.conf file.
Uncomment the line that starts with the listen_addresses, and replace ‘localhost’ with ‘*’.
Modify the pg_hba.conf file.
Locate the following section and modify
Allow port 5432 through the firewall.
Restart Postgres.
pgAdmin4 Desktop
The pgadmin4 package contains both:
• pgadmin4-desktop – Provides desktop application for Ubuntu system.
• pgadmin4-web – Provides the web interface accessible in a web browser
Update Repository list.
Install Public Key.
Create Repository config file.
Install pgAdmin4 for both desktop - see below for Web version.
Check contents APT Repository.
Pentaho Server Group
In pgAdmin, a server group is a way to organize and categorize your PostgreSQL server connections. It's essentially a logical grouping mechanism that helps you manage multiple database server connections more efficiently.
Click on: 'Add New Server'.

Enter: Pentaho for server name.

Click on 'Connection'.

Don't save the password in Production environments.
Save.

Last updated
Was this helpful?
