Before you start

The installer for dbWatch Control Center requires root to run. However when we want to run the software under a different user once installed.
For documentation simplicity I will run all the first steps as user root. You can use sudo instead.

This installation is on an Ubuntu Server 20.04.5 LTS, with only the default minimal setup with openssh server. Openssh is no requirement if you dont want to log into the machine remotely.

You need to download the latest version available. In this example I have is build 533. The installer executable is then cc_unix_533.sh.

First step is to change the cc_unix_533.sh file to be executable.

chmod a+x cc_unix_533.sh

Start the installer, the license agreement will show:

./cc_unix_533.sh

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Press Enter to continue

Choose 1 to accept the agreement. (2 will exit the installer.)

We install this in /usr/local/dbWatchControlCenter

We choose y + enter to install the Monitor aswell, this is optional and only usefull if you want to install additional X11 libraries later.

We choose y + enter to create shortcuts for all users

We choose n + enter for Terminal server settings

We choose y + enter to install Service

We set work directory to /root/dbWatchControlCenter, we will move this later.

The port is set to the default 7100

We choose n + enter on Advanced?

We choose y + enter on create symlinks

We create symlinks in /usr/local/bin

Then click enter to complete the installation.

So now we want to run this as the dbwatch non privileged user. So we create a dbwatch user:

adduser dbwatch

We change ownership of the installed software to the dbwatch user:

chown -R dbwatch:dbwatch /usr/local/dbWatchControlCenter

Then we move the workdirectory to the home directory of the dbwatch user:

mv /root/dbWatchControlCenter /home/dbwatch
bc. chown -R dbwatch:dbwatch /home/dbwatch/dbWatchControlCenter/

There is a template start/stop wrapper included in the software directory. You may modify and use this or start the service in a different way.
The wrapper script is called dbWatchControllCenterService.sh and is located in /usr/local/dbWatchControlCenter

To use this script. The DBWATCH_USER must be set to the correct user you created earlier. You must also change the DBWATCH_SERVICE_WORK_DIR to /home/dbwatch/dbWatchControlCenter.
Then it must be linked in the rc directory. In this install I will put it in /etc/rc5.d (we also link in rc0.d)

When the service is running make sure it looks like this, indicating its listening to ipv4 port 7100:

root@US-20-DBWTEST:~# netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:7100            0.0.0.0:*               LISTEN

and not listening to ipv6:

root@US-20-DBWTEST:~# netstat -an | grep LISTEN
tcp6       0      0 :::7100                 :::*                    LISTEN

Once it is installed, the next step is Initial domain setup

← Installing on Linux / Initial Domain Setup →

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment