Installing BES/BDOC on SuSE Linux

This document describes procedures for installing either BES or the Borland Deployment Op-Center (BDOC) on SuSE Linux.

Important: For BES/BDOC 6.0 Release Notes, go to http://info.borland.com/devsupport/bes/relnotes/6_0.html.

Preparing for installation

Before installing either BES or BDOC on SuSE Linux:

Platform and system requirements

For the latest platform information and system requirements go to http://www.borland.com/techpubs/bes/platforms.

JDK requirements

The installation package on CD includes a bundled version of the Java Development Kit (JDK).

Licensing and Registration

BES and BDOC MUST be licensed before they will run. For information on how to license your product, go to http://www.borland.com/devsupport/bes/faq/6.0/licensing/index.html.

Installing BES/BDOC on SuSE Linux

BDOC: A BDOC installation creates a new installation of BDOC or upgrades an existing BES installation.

Important: Please read the following section, File ownership and the iaschangeowner script on changing file permissions using the iaschangeowner script.

You can install BES or BDOC from either CD or download it from the web.

To install BES/BDOC on SuSE Linux:

  1. If you are downloading BES/BDOC from the web site, untar the installer .bin file from:
    BDP60_Linux_suse.tar
    or for BDOC:
    BDOC60_Linux_suse.tar
  2. To run the install file, invoke the following for BES:
  3. sh BDP60_Linux_suse.bin
    or for BDOC:
    sh BDOC_Linux_suse.bin

    To run in console mode, execute:

    java -cp BDP60_Linux_i386.jar -i
    or for BDOC:
    java -cp BDOC60_Linux_i386.jar -i
  4. If you're installing from CD, enter the following to launch the installer:
    $ /cdrom/install_linux
    where /cdrom is the directory where CD-ROM is mounted.
  5. CD only: Make sure the Konqueror /opt/kde3/bin is in your path (in order to use the default browser).

  6. When the installer launches, follow the onscreen installation panels.

File ownership and the iaschangeowner script

Some files and directories, such as log files, properties, sessionSwap, realms, etc., are not created at installation. Instead, they are created at runtime, the first time the server is started. Permissions on these files and directories are granted based on the user running the server at this initial time. For example, if you run the server for the first time as usernameA, some files or directories will be owned by usernameA. Any subsequent running of the server by any other user (including root) will result in error due to permission problems. File ownership must be changed in order to allow any other users to write to these files.

Changing ownership of a server instance

To change ownership use the iaschangeowner script (UNIX only) in the .bin directory of your installed BES or BDOC.

The following directories (and their contents) are affected by the iaschangeowner script:

Usage

Below are usage parameters for iaschangeowner.

Usage example

The following is an example using the iaschangeowner script to change the user name and group:


% iaschangeowner -r /usr/BES -o jsmith -g admin

Failure to change permissions prior to changing server owners will result in errors similar to the following:

<install_root>/sk.txt: cannot create

Configuring Apache to run on a privileged port

Running Apache on a privileged port requires that the executable is owned by root and that the suid bit is set. Apache is dynamically linked and the dynamic loader must resolve and load dependencies. Unix loaders will not typically search libarary paths that are not secure and will not respect environment variables such as LD_LIBRARY__PATH or LIBPATH for setuid programs.

Note: Ownership is not changed on any files or directories when invoking $CMD with the a+ or a-, except on the Apache httpd daemon.

The iaschangeowner script has been modified to make privileged port access as simple as possible. The httpd daemon must be owned by root and must be associated with the root primary group. Consult your system documentation or your administrator for detailed information on these permissions. Typically you can identify the appropriate values using id:


## on Linux, AIX and HP-UX

/> id -n -g root

sys

## on Solaris /> id -a root

sys

The parameters passed to iaschangeowner must match these values. iaschangeowner is using this call internally and will fail if the values don't match.

Invoking CMD +a causes soft links to be created in $SECURE_DIR to appropriate libraries within the specified installation. httpd owner and group affiliation is assigned from the -o and -g parameters passed to $CMD. httpd will be configured to run suid.

Invoking $CMD -a causes soft links to be removed from $SECURE_DIR. httpd owner and group affiliation is assigned from the -o and -g parameters passed to $CMD. httpd permissions will be returned to the installation default.

Configuring Apache httpd.conf to listen on correct port

The file <inst_root>/var/domains/base/configurations/<configuration_name>/mos/apache/conf/httpd.conf must be edited to listen at the correct port (typically 80) and to indicate what UID and GID to run as. In the following example, elise and elgroup are used:


Listen 80

User elise

Group elgroup

To reverse the changes, give appropriate parameters to the UID and GID, and eidt httpd.conf back to its original state.

Installing BES/BDOC on Red Hat Linux using silent installation

Before invoking the silent installation process, you must first create a text file that contains the properties for configuration settings, such as install directory, server name and JDK home.

The text file looks like this (for a BES installation):


INSTALLER_UI=silent

USER_INSTALL_DIR=/opt/BES/Linux/BES

USER_SHORTCUTS=/dev/null

OSAGENT_PORT=14000

MANAGEMENT_PORT=42424

SERVER_NAME=beslinuxsuse

JVM_JDK_HOME=/jdk/jdk1.4.2

INSTALL_TYPE_1=Borland Enterprise Server (BES)

CONFIGURATION_SETUP=Yes

After you've created the text properties file, save it as <propertiesfile>.fil where <propertiesfile> is the name of your file. Now you can invoke the silent installation process using the values specified in the properties file.

Note: All properties and values are case-sensitive.

Note: ALWAYS use a forward slash (/).

To invoke the silent installation process:

  1. Open a command-line shell.
  2. Go to the directory where you downloaded the installer and invoke the silent installation process by entering the following command. Make sure to specify the full path name of the propertiesfile file for BES:
    BDP60_Linux_suse.bin -f <path to properties file>
    or for BDOC:
    BDOC60_Linux_suse.bin -f <path to properties file>
    where <path to properties file> is the full path of the propertiesfile file.

If installing from CD-ROM:

  1. Insert the CD into the CD-ROM drive.
  2. Open a command-line shell.
  3. Go to the CD-ROM directory, CD/Unix/Linux/Linux.
  4. Invoke the silent installation process by entering the following command. Make sure to specify the full path name of the propertiesfile file: or for BDOC:
    installer.bin -f <path to properties file>
    where <path to properties file> is the full path of the propertiesfile file.

Silent install properties file

This properties file applies to silent installation of BES/BDOC on SuSE Linux. The property file is a plain text file.

Properties file for silent installation

Variable Value
INSTALLER_UI silent (required). The mode of installation.
USER_INSTALL_DIR <install_dir> (optional). The full path name for BES or BDOC. Default is /opt/BES/.
USER_SHORTCUTS /dev/null (required). Leave as is.
OSAGENT_PORT (optional). Default is 14000.
MANAGEMENT_PORT (optional). Sets the Management Port. Default is 42424.
SERVER_NAME <server_name> (optional). A name of your choice. Default is host name.
JVM_JDK_HOME jdk1.4.2 (optional).
INSTALL_TYPE_1 Borland Enterprise Sever (BES) (required). Installs full Borland Enterprise Server. Choose only one: INSTALL_TYPE_1, INSTALL_TYPE_2, or INSTALL_TYPE_3.
INSTALL_TYPE_2 Borland VisiBroker Standalone (required). Installs Borland VisiBroker Standalone. Choose only one: INSTALL_TYPE_1, INSTALL_TYPE_2, or INSTALL_TYPE_3.
INSTALL_TYPE_3 Borland Deployment Op-Center (BDOC) (required). Installs Borland Deployment Op-Center. Choose only one: INSTALL_TYPE_1, INSTALL_TYPE_2, or INSTALL_TYPE_3.
CONFIGURATION_SETUP (optional). Yes. Installs BES/BDOC examples configuration. Default is Yes. For specific information on BES/BDOC examples, see the "Choosing install type" section in the BES or BDOC Installation Guide.
CONFIGURATION_SETUP (optional). No. Does not install BES/BDOC examples configuration. Installation generates a "clean" setup. Default is Yes.
BDOC_TYPE master-hub (required). BDOC only. The type of BDOC installation. Choose only one type, BDOC_TYPE=master-hub or BDOC_TYPE=slave-agent.
BDOC_TYPE slave-agent (required). BDOC only. The type of BDOC installation. Choose only one type, BDOC_TYPE=master-hub or BDOC_TYPE=slave-agent.

Uninstalling BES/BDOC

To uninstall BES/BDOC:

  1. Make sure there are no background processes like osagent running during the uninstall.
  2. Invoke the uninstaller which is available in <install_root>/UninstallerData/uninstall.