This is a step-by-step guide to install Documentum 21.4 in WSL2 using the Ubuntu 20.04 image with PostgreSQL 12.
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@laptop:/$ sudo usermod -aG sudo dmadmin
- Configure nameserver to access Internet:
dmadmin@laptop:~$ sudo vi /etc/resolv.conf
nameserver 8.8.8.8
- Install pacakges:
dmadmin@laptop:~$ sudo apt-get update
dmadmin@laptop:~$ sudo apt -y install tcl expect
PostgreSQL Configuration
- Install required packages:
dmadmin@laptop:~$ sudo apt -y install postgresql postgresql-contrib
- Start the PostgreSQL service:
dmadmin@laptop:~$ sudo service postgresql start
* Starting PostgreSQL 12 database server [ OK ]
- Configure the postgres user:
dmadmin@laptop:~$ sudo passwd postgres
New password:
Retype new password:
passwd: password updated successfullydmadmin@laptop:~$ sudo -u postgres psql postgres
psql (12.8 (Ubuntu 12.8-0ubuntu0.20.04.1))
Type “help” for help.postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# exit
- Restart PostgreSQL service to apply the changes:
dmadmin@laptop:~$ sudo service postgresql restart
* Starting PostgreSQL 12 database server [ OK ]
phpPgAdmin Configuration
- Install required packages:
dmadmin@laptop:~$ sudo apt install -y phppgadmin
- Configure phpPgAdmin:
dmadmin@laptop:~$ sudo vi /etc/phppgadmin/config.inc.php
$conf[‘extra_login_security’] = false;
- Restart httpd service to apply the changes:
dmadmin@laptop:~$ 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@laptop:~$ sudo apt -y install unixodbc unixodbc-dev odbc-postgresql
- Configure .ini files:
dmadmin@dctm212:~$ sudo vi /etc/odbc.ini
[MyPostgres]
Description=PostgreSQL
Driver=PostgreSQL
Database=postgres
Servername=localhost
UserName=postgres
Password=dmadmin
Port=5432
Protocol=12
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No
UpdateableCursors=Yes
DEBUG=Yesdmadmin@laptop:~$ 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@dctm212:~$ isql -v MyPostgres
dmadmin@laptop:~$ isql -v MyPostgres
+—————————————+
| Connected!
|
| sql-statement
| help [tablename]
| quit
|
+—————————————+
SQL>
Documentum server
- Create folders:
dmadmin@laptop:~$ sudo mkdir -p /opt/documentum/sw && sudo mkdir -p /opt/documentum/product/21.4
dmadmin@laptop:~$ sudo chown -R dmadmin.dmadmin /opt/documentum
- Install openJDK 11.0.13 (remember to remove “anon” from the list of disabled algorithms or the installer will fail to connect to the repository)
dmadmin@laptop:/opt/documentum$ tar -xvf /mnt/d/dctm214/sw/OpenJDK11U-jdk_x64_linux_11.0.12_7.tar.gz -C .
- Set up environment variables:
dmadmin@laptop:~$ 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/21.4
export DM_HOMEDM_JMS_HOME=$DOCUMENTUM/tomcat9.0.52
export DM_JMS_HOMEPOSTGRESQL_HOME=/usr/lib/postgresql/12
export POSTGRESQL_HOMEJAVA_HOME=$DOCUMENTUM/openjdk-11.0.12_7
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@laptop:~$ sudo vi /etc/services
dctm214 50000/tcp # dctm 21.4 repo
dctm214_s 50001/tcp # dctm 21.4 repo
- Configure limits.conf:
dmadmin@laptop:~$ sudo vi /etc/security/limits.conf
dmadmin – core -1
- Run the installer:
dmadmin@laptop:/opt/documentum/sw/cs$ tar -xvf /mnt/d/dctm214/sw/documentum_server_21.4_linux64_postgres.tar -C .
dmadmin@laptop:/opt/documentum/sw/cs$ chmod 777 serverSetup.bin
dmadmin@laptop:/opt/documentum/sw/cs$ ./serverSetup.bin
Docbroker and repository
- Create the tablespace file for the repository (dctm214):
dmadmin@laptop:/$ su – postgres
postgres@laptop:~$ mkdir /var/lib/postgresql/12/main/db_dctm214_dat.dat
postgres@laptop:~$ exit
- Run the configurator:
dmadmin@laptop:/opt/documentum/product/21.4/install$ ./dm_launch_server_config_program.sh
And you’re good to go 🙂