This is a step-by-step guide to install Documentum 22.4 in WSL2 using the Ubuntu 20.04 image with PostgreSQL 14.
Environment
- Host:
Windows 11 x64 8GB RAM - WSL2:
Ubuntu 20.04 LTS
WSL2 Configuration
- Make sure you’re using the Ubuntu 20.04 image with WSL2:
wsl -l -v
NAME STATE VERSION
* Legacy Stopped 1
* Ubuntu-20.04 Running 2
- Create dmadmin user and add it to the sudoers group:
aldago@laptop:/$ sudo adduser dmadmin
Adding user `dmadmin’ …
Adding new group `dmadmin’ (1001) …
Adding new user `dmadmin’ (1001) with group `dmadmin’ …
Creating home directory `/home/dmadmin’ …
Copying files from `/etc/skel’ …
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for dmadmin
Enter the new value, or press ENTER for the default
Full Name []: dmadmin
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] yaldago@dctm:/$ sudo usermod -aG sudo dmadmin
- Configure nameserver to access Internet:
dmadmin@dctm:~$ sudo vi /etc/resolv.conf
nameserver 8.8.8.8
- Install pacakges:
dmadmin@dctm:~$ sudo apt-get update
dmadmin@dctm:~$ sudo apt -y install tcl expect
PostgreSQL Configuration
- Install required packages:
dmadmin@dctm:~$ sudo sh -c ‘echo “deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main” > /etc/apt/sources.list.d/pgdg.list’
dmadmin@dctm:~$ wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add –
dmadmin@dctm:~$ sudo apt -y update
dmadmin@dctm:~$ sudo apt -y install postgresql-14
- Start the PostgreSQL service:
dmadmin@laptop:~$ sudo service postgresql start
* Starting PostgreSQL 14 database server [ OK ]
- Configure the postgres user:
dmadmin@dctm:~$ sudo passwd postgres
New password:
Retype new password:
passwd: password updated successfullydmadmin@laptop:~$ sudo -u postgres psql postgres
psql (14.5 (Ubuntu 14.5-2.pgdg20.04+2))
Type “help” for help.postgres=# password postgres
Enter new password:
Enter it again:
postgres=# exit
- Restart PostgreSQL service to apply the changes:
dmadmin@dctm:~$ sudo service postgresql restart
* Starting PostgreSQL 14 database server [ OK ]
phpPgAdmin Configuration
- Install required packages (we need to manually update to 7.13 if we’re using PostgreSQL 14):
dmadmin@dctm:~$ sudo apt install -y phppgadmin
dmadmin@dctm:~$ wget https://github.com/phppgadmin/phppgadmin/releases/download/REL_7-13-0/phpPgAdmin-7.13.0.tar.gz
dmadmin@dctm:~$ tar -xvf phpPgAdmin-7.13.0.tar.gz
dmadmin@dctm:~$ sudo mv /tmp/phpPgAdmin-7.13.0 /usr/share/phppgadmin
- Configure phpPgAdmin:
dmadmin@dctm:~$ sudo vi /usr/share/phppgadmin/config.inc.php
$conf[‘extra_login_security’] = false;
- Restart httpd service to apply the changes:
dmadmin@dctm:~$ sudo /etc/init.d/apache2 restart
* Restarting Apache httpd web server apache2
Now you should be able to login to the console from http://localhost/phppgadmin/.
ODBC Configuration
- Install required packages:
dmadmin@dctm:~$ sudo apt -y install unixodbc unixodbc-dev odbc-postgresql
- Configure .ini files:
dmadmin@dctm:~$ sudo vi /etc/odbc.ini
[MyPostgres]
Description=PostgreSQL
Driver=PostgreSQL
Database=postgres
Servername=localhost
UserName=postgres
Password=dmadmin
Port=5432
Protocol=14
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No
UpdateableCursors=Yes
DEBUG=Yesdmadmin@dctm:~$ sudo vi /etc/odbcinst.ini
[PostgreSQL]
Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so
Driver64 = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so
Setup64 = /usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so
FileUsage = 1
- Test the connection:
dmadmin@dctm:~$ isql -v MyPostgres
+—————————————+
| Connected!
|
| sql-statement
| help [tablename]
| quit
|
+—————————————+
SQL>
Documentum server
- Create folders:
dmadmin@dctm:~$ sudo mkdir -p /opt/documentum/sw && sudo mkdir -p /opt/documentum/product/22.4
dmadmin@dctm:~$ sudo chown -R dmadmin.dmadmin /opt/documentum
- Install openJDK 11.0.16 (remember to remove “anon” from the list of disabled algorithms or the installer will fail to connect to the repository)
dmadmin@dctm:/opt/documentum$ tar -xvf ./sw/OpenJDK11U-jdk_x64_linux_hotspot_11.0.16_8.tar.gz -C .
- Set up environment variables:
dmadmin@dctm:~$ vi .bash_profile
#Required for X11 forwarding
export DISPLAY=$(ip route | awk ‘/default via / {print $3; exit}’ 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1DOCUMENTUM=/opt/documentum
export DOCUMENTUMDM_HOME=$DOCUMENTUM/product/22.4
export DM_HOMEDM_JMS_HOME=$DOCUMENTUM/tomcat9.0.65
export DM_JMS_HOMEPOSTGRESQL_HOME=/usr/lib/postgresql/14
export POSTGRESQL_HOMEJAVA_HOME=$DOCUMENTUM/openjdk-11.0.16_8
export JAVA_HOMEJAVA_TOOL_OPTIONS=”-Djava.locale.providers=COMPAT,SPI”
export JAVA_TOOL_OPTIONSPATH=$PATH:$DM_HOME/bin:$POSTGRESQL_HOME/bin:$HOME/.local/bin:$HOME/bin:$JAVA_HOME/bin
export PATHLC_ALL=C
export LC_ALLLD_LIBRARY_PATH=$POSTGRESQL_HOME/lib:$DM_HOME/bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
- Reserve ports for services:
dmadmin@dctm:~$ sudo vi /etc/services
dctm224 50000/tcp # dctm 22.4 repo
dctm224_s 50001/tcp # dctm 22.4 repo
- Configure limits.conf:
dmadmin@dctm:~$ sudo vi /etc/security/limits.conf
dmadmin – core -1
- Run the installer:
dmadmin@dctm:/opt/documentum/sw/cs$ tar -xvf documentum_server_22.4_linux64_postgres.tar
dmadmin@dctm:/opt/documentum/sw/cs$ chmod 777 serverSetup.bin
dmadmin@dctm:/opt/documentum/sw/cs$ ./serverSetup.bin
By default, Documentum now requires “strong” passwords, this means with minimum length of 16 characters. You can reduce this to 8 by defining the following environment variable:
export DM_CRYPTO_MIN_PASSWORD_LENGTH=8
Docbroker and repository
- Create the tablespace file for the repository (dctm224):
dmadmin@dctm:/$ su – postgres
postgres@dctm:~$ mkdir /var/lib/postgresql/14/main/db_dctm224_dat.dat
postgres@dctm:~$ exit
- Run the configurator:
dmadmin@dctm:/opt/documentum/product/22.4/install$ ./dm_launch_server_config_program.sh
And you’re good to go 🙂
thanks for DM_CRYPTO_MIN_PASSWORD_LENGTH. New password requirements were an annoying delay for my last build
LikeLiked by 1 person