Redline provides a RPM file for automatic installation and update and a tar.gz file for manual installation. With the RPM file, you need root access during installation. It is possible to run Redline as a user as well.
Redline ships in 2 versions for Linux: 32-bit and 64-bit versions, ensure that you use the appropriate version for your installation.
Login as root or use su to switch to root.
Go to the folder where Redline was unpacked. Here go to the subfolder linux.suse64/redline. (Or linux.suse32/redline as system appropriate
Install the RPM with the rpm command: rpm –U redline-<version number>-1.<platform>.rpm. For example:
rpm -J redline-4.0.0-1.i586.rpm
If you see errors that some xml or html files conflict, Install the RPM with the rpm command:
rpm -U -force redline-4.0.0-1.i586.rpm
RLCENTER and RLAGENT startup scripts will automatically be copied to /etc/init.d and set up with the appropriate run level symbolic links
Login as root or use su to switch to root.
Create the folder /opt/beginfinite/redline
mkdir /opt/beginfinite/redline
Give the user who will run Redline read and write permissions to that folder. You can do this by switching the owner of the folder to that user.
chown uli /opt/beginfinite/redline/
Login as a regular user or exit from root user access
exit
Go to the folder where Redline was unpacked
cd /Redline/linux.suse10/redline
Unpack the tar.gz file
tar -zxvf redline.tar.gz
Go to the subfolder bintree/opt/beginfinite
cd bintree/opt/beginfinite/
Copy Redline to /opt/beginfinite/redline
cp -r redline/ /opt/beginfinite/
Switch to root again
Copy bintree/lib/libredline.so.4.0.0 to /lib or /lib64 as appropriate
cp libredline.so.4.0.0 /lib/
Go to the /lib or /lib64 folder
cd /lib/
Create a link to libredline.so.4 in the /lib or /lib64 folder
ln -s libredline.so.4 libredline.so.4.0.0
run ldconfig to import the new library symbols
ldconfig
(Optional) Copy rlcenter and rlagent from redline/linux.suseXX/redline/bintree/etc/init.d to /etc/init.d
Redline on Linux can run as a background process and, mostly for debugging purposes, as a foreground process with a screen like the NetWare screen. There is a start/stop script in the folder /etc/init.d.
To start the Control Center, go to /etc/init.d and type rlcenter start.
cd /etc/init.d/ ./rlcenter start
In order to start the Control Center with a GUI screen, make sure you have the GNOME desktop installed. It is possible to use the KDE desktop as well, but the GTK libraries need to be installed on your system. To start the Control Center with a screen:
go to the folder /opt/beginfinite/redline/bin
cd /opt/beginfinite/redline/bin/
start the control center with the command line switch --show
./rlcenter -c /opt/beginfinite/redline/conf/rlcenter.conf --show
The Control Center Screen on Linux shows up with a couple of options available through the main menu.
Redline on Linux can run as a background process and, mostly for debugging purposes, as a foreground process with a screen like the NetWare screen. There is a start/stop script in the folder /etc/init.d. To start the Agent, go to /etc/init.d and type ./rlagent start.
cd /etc/init.d/ ./rlagent start
To start the Agent with a GUI screen, make sure you have the GNOME desktop installed. It is possible to use the KDE desktop as well, but the GTK libraries need to be installed on your system. To start the Agent with a screen:
go to the folder /opt/beginfinite/redline/bin
cd /opt/beginfinite/redline/bin/
start the agent with the command line switch --show
./rlagent -c /opt/beginfinite/redline/conf/rlcenter.conf --show
The agent configuration file (listed above) holds a ‘NEWINSTALL’ switch and requires the registration name, code, address and port for the Control Center. This can be edited manually, or, if desired, the agent may be started in the GUI. (This does not work over SSH) You will be asked for Registration Name, Registration Code, Control Center IP address and port. Everything else can be configured through the Control Center web interface.
The Agent Screen on Linux shows up with a couple of options available through the main menu.
To install Redline into a Linux Cluster environment, a few things need to be changed, mainly, where Redline is installed.
Install Redline to one of the cluster nodes according to the normal procedure for Linux.
( rpm -U redline-<version number>-1.<platform>.rpm)
Redline installs to /opt/beginfinite/redline by default. Copy the entire Redline directory to each of the resources. (resourcevol/redline)
Navigate to /etc/init.d directory on the machine you installed Redline, and rename the rlagent file to rlag.
NOTE:The default installation installs both Redline Agent and Control Center. It is recommended to run the command: "chkconfig --del rlcenter" to stop the Control Center from automatically loading. Once the Redline Agent has been copied to all the resources in the cluster, the default installation folder on the node can be removed.
Copy the newly renamed rlag file to the resourcevol/redline/bin on each resource.
Edit the newly renamed rlag file. Every listed directory in that file must now point to the resource directory. (Defaults will look like: /opt/beginfinite/redline/bin) Modify the path to reflect the resource volume, ie. /resourcevol/redline/bin . There will be 5 to 6 paths to modify. Save the file. Edit the rlag file for each resource.
Open the rlagent.conf file that was copied over to the cluster volume. In the "conf" folder, the "rlagent.conf" file needs to be edited. Remove the "NEWINSTALL" line at the top. Input the correct Control Center information in the [CCenter1] section, (IP, Port, Registration information needs to match the information put into the Control Center configuration file.) There are two other special settings that need to be set for the cluster environment. The [HOST] and [GLOBAL] sections must be modified. For the [HOST] section under the Agent=enabled, add a line: AgentName=HOST_RESOURCE_NAME
Modify each cluster resource appropriate name; the name can be anything desired, but it is recommended to name it the resource so it is easily recognized in the Control Center. The [GLOBAL] section is very similar, the RedlineAgentName parameter is commented out, enable it and specify: RedlineAgentName=RLAgent_RESOURCE_NAME. You'll want to change the volume name for each cluster.
Startup the individual agent by specifying the path to: /resourcevol/redline/bin/rlag start
Unload the individual agents by referencing the same path: /resourcevol/redline/bin/rlag stop
These are the start and stop scripts.
FInally make sure that you have the Redline libraries installed on each node. Locate the Redline.tar.gz file, located in the install folder where Redline was downloaded. Go to redline/linux.suse< 32 or 64 as appropriate>/redline
You should find two files:
redline-<version number>-1.<platform>.rpm
redline.tar.gz
Unzip the redline.tar.gz file. A new directory called 'bintree' will appear which will contain a file called "libredline.so.4.0.0". Copy the 'libredline.so.4.0.0 file to the lib directory (/lib or /lib64) of each of the nodes.
On each of the nodes, run the command: ldconfig
NOTE:ldconfig must be run in order to create the necessary links and cache, (used by the run-time linker, ld.so ), to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories, (/usr/lib and /lib).