16.2.4.2. Installation Procedure
First, get the latest released sources for Elm and put the source
files in a build directory, such as
/usr/local/bin/elm2.4. Elm may have been
included with your Linux distribution and could have been built when
installing or reinstalling the Linux package. If this is the case,
you should test the installation to make sure it is complete and up to
date.
At least one major distribution of Linux that includes the Elm package
includes only the executable and omits example configuration files and
installation instructions. You can get the rest of the package
(including documentation) through FTP sites that
have the full package. These are not necessarily Linux source sites.
The Elm package contains a Configure shell script
you should run to install Elm.
A file named Instruct contains fundamental directions for
installing the current version of Elm on your system, but it probably
doesn't tell you the information you should have on hand when you run
Configure. We'll try to tell you the needed key
information, but if we miss something, reinstalling Elm is as easy
as running Configure again. From your Elm build directory,
as the root user, execute Configure:
# sh Configure
Configure installs localized configuration
files after asking you some questions.
Next, you need to build the Elm document set:
# make documentation
Then run a full make process, building a log file and
showing messages in case of make errors:
# make all > MAKELOG 2>&1 &
# tail -f MAKELOG
This assumes you are using the bash shell. If you use
csh or tcsh, enter the make command this way:
% make all >& MAKELOG &
This process takes a while. On successful completion, you should find
most of these commands in /usr/bin:
answer,
checkalias,
elm, fastmail,
filter, frm,
listalias, messages,
newalias, newmail,
printmail, and readmsg. There
should also be equivalent online reference pages in
/usr/man/man1 and
/usr/man/man8.
Next, install your software on the system:
# make install
As of the time of this writing (Elm Version 2.4), there is a
known security risk with arepdaemon and
autoreply. These should be removed from your
system. The manual pages for these utilities should also be removed
before you update your whatis database by running
makewhatis. If you are using Elm 2.4 PL 24 or
later, these programs have already been removed from the ELM distribution.
Before running Elm, read and dispose of any queued mail for the
root user. You will be testing
the Elm configuration as root,
and you don't want to lose any pending messages.
Now test your installation by running Elm. First, check that Elm correctly detects that you have no existing mail (still as the root user):
# elm -z
Elm should display the message no mail and exit. (If there is mail
for root, Elm will come up in interactive mode and list the messages at
the Index screen.)
Next, check for correct mailbox handling. (Elm creates a test mail
folder when it installs):
# elm -f test/test.mail
Exit without marking any messages for deletion. Elm should prompt you
for correct handling of the messages.
Assume a nonprivileged user identity and run elm
-z. Elm should not load unless there is pending
mail. If there is pending mail and you have not previously had Elm
installed (don't have a $HOME/.elm directory),
Elm should prompt you to create the directory. You need to edit the
SYSTEM_ALIASES file to set up at least one alias,
defining the identity of the system postmaster so that mail sent to
the postmaster at your site is handled correctly. Then, the
newaliases command must be run to set up the
aliases table. The procedure is described in the Elm
Configuration Guide for your version of Elm.
Once you are satisfied that Elm is configured and installed properly,
you can propagate the installation of Elm on your whole
LAN, if you maintain mail services on more than one
host. The directions for the make process are
included in the Instruct file of the Elm
distribution.