Procedure #1: Installing the LDM Software
The following procedure is a version of the Unidata LDM installation instructions that has been tailored for use with the NOAAPORT
Receive System. In the interest of simplicity and ease of support we strongly recommend that you not deviate from the procedure below. The DVB reader software will not build correctly if the LDM file structure is not correct. Note: The ~ldm/data and ~ldm/logs directories should not be part of any automated backups due to the volatility of the data that they will contain.
- On your NOAAPORT ingest computer create an account called ldm (make the home directory /usr/local/ldm). Note: The DVB reader software as well as the LDM will run under this account.
- Login as user ldm.
- Download ldm-6.8.1.tar.gz to the ~ldm directory.
- Build and install the LDM software.
- Unpack the LDM files. Type:
gunzip -c ldm-6.8.1.tar.gz | tar xvf -
- Create symbolic links to the ldm directories. Type:
ln -s ldm-6.8.1 runtime
ln -s runtime/* .
-
Build and install the LDM software. Check the log file after each step for errors before moving on to the next step.
Type:
cd ldm-6.8.1/src
./configure > configure.log 2>&1
make > make.log 2>&1
make install > install.log 2>&1
- Create directories for the LDM product queue and log files. Type:
mkdir ~ldm/data
mkdir ~ldm/logs
- Modify the PATH environment variable.
- Open the appropriate profile file for your shell (e.g., .profile or .bash_profile).
- Add the lines listed below.
PATH=$PATH;$HOME/bin
export PATH
- Save and close the file.
- Modify the ldmadmin script's configuration file. Note: This procedure
has changed from previous versions of the LDM. It used to be necessary
to modifiy the ldmadmin script each time an upgrade was performed;
this is no longer the case. Now the ldmadmin-pl.conf file will
contain these modifications and will not be overwritten during upgrades.
- Open the file ~ldm/etc/ldmadmin-pl.conf for editing.
- Uncomment (remove the leading #) the following line and replace your.hostname.here
with the fully qualified domain name of the local computer.
$hostname = "your.hostname.here";
- Find the line $pq_size="400M"; and
change the size of the product queue from 400M to 4G.
- Save and close the file.
- Create the LDM product queue (this will take a few moments). Type:
ldmadmin mkqueue
- Set internal communications.
- Logon as root
- Change to the ~ldm/ldm-6.8.1/src directory
- Type the command listed below.
make install_setuids
- Make the necessary system configuration modifications.
- You should still be logged on as root.
- Modify /etc/syslog.conf as instructed below.
- Open /etc/syslog.conf for editing.
- Add the lines listed below.
- local0.debug /usr/local/ldm/logs/ldmd.log
- local3.debug /data/tmp/dvbs.log
- local4.debug /data/tmp/nwstg.log
- local5.debug /data/tmp/goes.log
- Add local0.none to any lines that begin with *.err;kern.notice or *.err;kern.debug. For example:
- *.err;kern.notice;auth.notice;user.none;local0.none /dev/console
- *.err;kern.debug;daemon.notice;mail.crit;local0.none /var/adm/messages
- Save and close the file.
- Modify /etc/rpc as instructed below.
- Open /etc/rpc for editing.
- Add the following line (all whitespace must be tabs).
ldm 300029 ldmd
- Save and close the file.
- Modify /etc/services as instructed below.
- Open /etc/services for editing.
- Add the line listed below.
ldm 388/tcp ldm #UCAR Unidata LDM
- Save and close the file.
[ Next Procedure]
[ Back to Main Page]
|