Print Server Administration User’s Guide

For example, you could define a printer hp5l that prints to port PS-142634-P1, and a printer hp5lt that prints to port PS-142634-P1_TEXT. Your graphics files could then be printed to the hp5l printer, and “raw” text files could be printed to the hp5lt printer.

Printing from BSD Unix Versions

For “flavors” of the Unix operating system derived from or related to the BSD releases, such as SunOS 4.x, Linux, BSD/OS, FreeBSD, or NetBSD, you can use the following procedure to enable users to print to a printer connected to your HyperNet Fastprint network print server:

1.Log in as the superuser (root).

2.Add an entry for the print server in the host’s /etc/hosts file, giving a hostname for the print server’s IP address. A line in /etc/hosts contains an IP address and one or more aliases for the host. For example:

202.39.74.40ps-142634 ps-142634.dlink.com.tw

If you use DNS (the Domain Naming Services protocol), you can add an address record entry to your DNS database for the print server.

3.Create a spool directory for the printer:

On SunOS systems, create the directory as a subdirectory of /var/spool, with the same name as the printer (e.g., /var/spool/hp5l).

On Linux systems, create the directory as a subdirectory of /usr/spool/lp.

On BSD/OS, FreeBSD, or NetBSD systems, create the directory as a subdirectory of /var/spool.

4.Change the owner and permissions of the directory so that it is owned and writable by group daemon, using the following commands:

chown bin.daemon /var/spool/hp5l chmod 775 /var/spool/hp5l

5.Add an entry for the printer to /etc/printcap, similar to the following:

hp5l:\

:lp=:sd=/var/spool/hp5l:mx#0:\ :rm=ps-142634:rp=PS-142634-P1:

The meaning of each of the entries is described below. The directory path in the sd spool directory entry should match the directory name you created above. If your entry requires more than one line you can escape the newline with a backslash.

6.Issue the command lpc start hp5l

to start a spool daemon for the printer. The printer will now be available for use.

46

EtherP Admin Administration

Page 52
Image 52
Hypertec Fastprint Multiprotocol Ethernet/Fast Ethernet Print Server manual Printing from BSD Unix Versions