6285
License manager boot time setup script for IDL 7.1/ENVI 4.7 and before on Ubuntu or Debian Linux
THIS INFORMATION ONLY PERTAINS TO SOFTWARE VERSIONS IDL 8.5, ENVI 5.3 AND PRIOR
Topic:
The IDL 7.1/ENVI 4.7 and later license manager installation script (lmgrd_install) includes configuation support for Ubuntu and Debian Linux. If the operating system is compatible, we recommend that you download and install the latest IDL license manager distribution. |
The license manager boot time setup script (lmgrd_install) for IDL 7.0.x/ENVI 4.6.x and before for Linux is tailored for Linux distributions based on the Red Hat and Fedora Core system directory structure.
However, Linux distributions based on the Debian Linux distribution, such Ubuntu Linux, have a different system boot script file directory configuration than that for Red Hat and Fedora Core.
In order to configure a Debian or Ubuntu Linux system to start the license manager at boot time, the following steps and provided custom setup script can be used. Root or sudo privileges are required.Discussion:
- Create a UNIX formatted plain text shell script file named "lmgrd_install_debian_ubuntu" (see script contents at bottom) and save it to the "bin" subdirectory of the main IDL directory of your IDL or ENVI installation. For example:
/usr/local/itt/idl64/bin/lmgrd_install_debian_ubuntu
- Give the file read/execute permissions. For example:
chmod 544 /usr/local/itt/idl64/bin/lmgrd_install_debian_ubuntu
- Cd to the location of this file and then run it with root privileges. For example:
cd /usr/local/itt/idl64/bin
sudo ./lmgrd_install_debian_ubuntu
Then assuming that the proper license file is in place, rebooting the machine should cause the license manager to automatically start.
Contents of file "lmgrd_install_debian_ubuntu":
#!/bin/sh
# This script is intended to be run by the administrator of a UNIX system
# who desires to start the FlexLM license server at system boot time.
# A detailed description of the actions performed by this script are
# contained in the sys5_idl_lmgrd script.
#
# Usage: This script must be run in the directory that contains
# the 'sys5_idl_lmgrd' script (/bin/).
#
if [ ! -f ./sys5_idl_lmgrd ] ; then
echo "Cannot find sys5_idl_lmgrd."
echo "Please run this script from the bin subdirectory of your IDL installation."
exit 1
fi
UNAME=`uname`
case $UNAME in
"Linux")
echo "(This script expects a Debian/Ubuntu Linux -based system.)"
echo "Setting up IDL license manager to start a boot time..."
echo
cp sys5_idl_lmgrd /etc/init.d/
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc2.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc3.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc4.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc5.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc0.d/K01sys5_idl_lmgrd
echo Done.
;;
*)
echo "$APPLICATION: Unable to recognize system architecture."
exit 1
;;
esac
Solution:
[Edit this field in the IDL-based Tech Tip Editor, v70]