Table of content
Installing a CUPS server to manage printers and print queues. Many improvements can be made to the configuration proposed such as a stronger authentication, encryption of communications, …
- Requirement: Apache, LDAP, ZFS
- Reference: Documentation
- Follow-up: Samba
Build information
Ensure the following options:
Configuration
Samba
CUPS comes with a tool cupsaddsmb that is used to integrate CUPS configured printers with Samba. For this cupsaddsmb will perform two steps: installing binary drivers for Windows and configuring Samba.
So that cupsaddsmb can install the Windows drivers, it is necessary to retrieve them first:
Installing PostScript drivers from Windows, they will have to be manually copied from an existing installation of Windows. And from the location listed below:
Version | Windows | Unix |
---|---|---|
32-bit | %WINDIR%\SYSTEM32\SPOOL\DRIVERS\W32X86\3\ |
/usr/share/cups/drivers/ |
64-bit | %WINDIR%\SYSTEM32\SPOOL\DRIVERS\X64\3\ |
/usr/share/cups/drivers/x64/ |
Fichiers à recopier |
---|
ps5ui.dll pscript.hlp pscript.ntf pscript5.dll |
Case is important, and it is imperative that the file names are in lowercase in the Unix directory, otherwise cupsaddsmb won’t find them.
CUPS
Information on the server name and the administrator to contact in case of problems.
Records in the log errors and warnings, the size of the log file will not be limited. The print history will be retained but not the corresponding files.
1 2 3 4 5 |
|
Specifies the interface on which the CUPS server is listening, and the maximum number of simultaneous connections.
Network
1 2 3 |
|
The printer information are broadcasted on the local network using CUPS protocol, but no external information on existing printers will be taken into account by the server.
1 2 3 4 5 6 7 8 9 |
|
Printing
Transformation filters associated with document printing are executed with a lower priority, but will not have limits imposed on memory or cpu. The number of copies to print is restricted to 30.
1 2 3 |
|
Specifies the authentication type to use for IPP users, and the system group to be used for administrative operations.
1 2 3 4 |
|
Restricted access to the different server paths, server is accessible to all, except the administration part for which the user must be on the local network and identified as belonging to the system.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Sets the policy for managing printing operations and printers based on user type. In particular, the administrator can manage printers and kill any print request.
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 |
|
Commands
Configuring Printers
Associats the printer description file (PostScript Printer Description):
1 |
|
List the options and their default values for the specified printer:
1 |
|
Samba integration
Adding a printer
To add a printer to Samba while associating it with the CUPS driver:
1 |
|