Installing the Database Server Daemon on GNU/Linux
Once you have created a database file structure, you must also enable the database server daemon to allow Harmony to connect to the database. This daemon runs through the user usabatch, so this user must be created prior to installing the daemon.
The Harmony installer for GNU/Linux always installs daemon scripts on your machine, but does not enable them by default. Hence, there are two approaches to installing the database server daemon:
- By enabling the daemon that was already installed with Harmony using the chkconfig command.
- By running the Harmony installation script with the -d parameter. This will also create a database file structure on your machine if none is present.
This daemon runs through the user usabatch, so this user must be created prior to installing the daemon.
-
In a terminal, enter the following command:
$ sudo useradd -m usabatch
$ sudo passwd usabatch
-
When prompted, enter the password you want to assign to the user usabatch, then confirm it.
The user usabatch is now created and can be used to run Harmony daemons.
-
In a terminal, enter the following command to enable the database server daemon:
$ sudo chkconfig toonboom_dbserver on
If the command returns nothing, it succeeded. The database server will launch next time you boot the machine.
-
To launch the database server daemon immediately, run the following command:
$ sudo service toonboom_dbserver start
The command will report whether it succeeded or failed.
-
In a terminal, navigate to the directory where you downloaded the installation package.
$ cd ~/Downloads
-
Extract the package's contents in the directory.
$ tar -xvzf ./name-of-package.tar.gz
-
Switch to the directory in which the package's contents were extracted.
$ cd name-of-package
-
Run the installer with the -d parameter:
$ sudo ./install -d
-
When prompted, confirm that you want to proceed with the installation.
The installation script will create a database file structure in /USA_DB, enable the database server daemon and start it.