Chapter 2. Installation

Table of Contents
2.1. Getting Source Code and Support Programs
2.2. PATH Environment Variable and Utilities
2.3. Network Mounted File System and Spool Directories
2.4. Daemon User and Daemon Group
2.5. Configuration
2.6. System and User Printcap, lpd.conf, and lpd.perms files
2.7. Checking System Installation with checkpc
2.8. Compilation and Install
2.9. Installation Problems
2.10. Updating Print Spooler Software and Startup Scripts
2.11. Emulation for UNIX SystemV lp and lpstat
2.12. SAMBA and LPRng
2.13. Security Concerns

The basic components of the LPRng system are the executables and the database files. This section deals with generating and installing the executable files.

2.1. Getting Source Code and Support Programs

  1. Obtain the latest or stable version of the LPRng source code from a LPRng FTP Site.

  2. Obtain the latest or stable version of the ifhp filter source code from a LPRng FTP Site. This filter is used to support PostScript, PCL, and text printers.

  3. Obtain the following GNU programs from one of the many GNU Software Mirror Sites and install them. See the directions in the GNU Zip distribution for details.

    GNU gzip Compression Utility

    Used to generate the compressed LPRng distribution.

    GNU tar Archive Utility

    GNU tar supports gzip compression and decompression and is used to generate the LPRng distribution.

    GNU make

    LPRng requires GNU make for configuration and installation.

    GNU gcc Compiler or ANSI C Compiler

    LPRng requires and ANSI C compiler. If you do not have an ANSI C compiler then please use the GNU gcc compiler.



  4. Solaris Sparc and X86 Binaries for GCC and Make can be obtained from http://sunfreeware.com/.

  5. While the following are not essential to LPRng they are used by the ifhp filter.

    file - File Identification Utility

    The Open Source file utility by Ian F. Darwin can be obtained from ftp://ftp.astron.com/pub/file/. or ftp://ftp.lprng.com/pub/LPRng/UNIXTOOLS/file/. This is a greatly improved version of the original UNIX file utility and may be used by the ifhp filter to do file recognition.

    gs - GhostScript

    GhostScript can be obtained from http://www.cs.wisc.edu/~ghost/ or http://www.ghostscript.com. GhostScript is a PostScript interpreter that allows you to translate PostScript to various printer compatible formats such as PCL, as well as displaying the code on a terminal. You might also want to get the PDF extensions that allows GhostScript to read and print PDF files.

    gv - GhostView

    Of course you will want to get the gv program that uses GhostScript to display PostScript on an X terminal. It can be obtained from http://wwwthep.physik.uni-mainz.de/~plass/gv/