TRENDnet TE100-P1U User Guide - Page 68

LPD on BSD

Page 68 highlights

LPD on BSD Before continuing, ensure that an IP Address has been assigned to the Print Server. Remember the following: The remote host name is the name of the Print Server. The remote printer name is the logical printer (e.g. L1) on the Print Server. If asked for the LPD type, enter the service type as BSD. In the sample commands shown, printer_name is the Print Queue serviced by the logical printer on the Print Server, and Spooler_dir is the name of the directory, which is used to spool the print jobs. Procedure Action Create a spooling directory Set spooling daemon as owner of this directory Create read/write permissions Give permissions to LPD processes Add remote printer(s) Start lpc print mechanism Sample Command mkdir /usr/spool/Spooler_dir chown daemon /usr/spool/Spooler_dir chmod 775 /usr/spool/Spooler_dir chgrp daemon /usr/spool/Spooler_dir See below lpc start printer_name Adding Remote Printers A remote printer is added by inserting the following line in the /etc/printcap file. The entry is really one line, but can be entered as shown. Use a TAB character where shown. Printer_name|Remote_Printer_Alias:\ [TAB] :lp=:\ [TAB] :rm=PS_NAME:\ [TAB] :rp=Logical_Printer_name:\ [TAB] :sd=Spooler_directory:\ [TAB] :mx#0: Where: Printer_name is the Print Queue name used to store jobs for the corresponding logical printer. PS_NAME is the Print Server name defined in /etc/hosts. Logical_Printer_name is the logical printer name on the Print Server. (e.g. L1) Spooler_directory is the directory you created in Step 6. Page 65

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72

LPD on BSD
Before continuing, ensure that an IP Address has been assigned to the Print Server. Remember
the following:
The
remote host name
is the name of the Print Server.
The
remote printer name
is the logical printer (e.g. L1) on the Print Server.
If asked for the LPD type, enter the service type as BSD.
In the sample commands shown,
printer_name
is the Print Queue serviced by the logical
printer on the Print Server, and
Spooler_dir
is the name of the directory, which is used to
spool the print jobs.
Procedure
Action
Sample Command
Create a spooling directory
mkdir /usr/spool/
Spooler_dir
Set spooling daemon as owner
of this directory
chown daemon
/usr/spool/Spooler_dir
Create read/write permissions
chmod 775 /
usr/spool/Spooler_dir
Give permissions to LPD
processes
chgrp daemon
/usr/spool/Spooler_dir
Add remote printer(s)
See below
Start lpc print mechanism
lpc start
printer_name
Adding Remote Printers
A remote printer is added by inserting the following line in the /etc/printcap file.
The entry is really one line, but can be entered as shown.
Use a TAB character where shown.
Printer_name
|
Remote_Printer_Alias:\
[T
AB
]
:lp=:\
[T
AB
]
:rm=
PS_NAME
:\
[T
AB
]
:rp=
Logical_Printer_name
:\
[T
AB
]
:sd=
Spooler_directory
:\
[T
AB
]
:mx#0:
Where:
Printer_name
is the Print Queue name used to store jobs for the corresponding logical
printer.
PS_NAME
is the Print Server name defined in /etc/hosts.
Logical_Printer_name
is the logical printer name on the Print Server. (e.g. L1)
Spooler_directory
is the directory you created in Step 6.
Page 65