Print Server - Cups - Install / Configure
|
Set a printer to a server and configure it network printer. | |
Step [1] | Create certificfates first because operation site for Cups is required SSL connection. |
Step [2] | Install Cups(Common Unix Printing System) |
[root@dlp ~]#
yum -y install cups
[root@dlp ~]#
vi /etc/cups/cupsd.conf
# line 18: change
Listen 631
# line 34: IP address you allow
Order allow,deny Allow localhost
Allow 192.168.0.0/24
# line 41: IP address you allow
Encryption Required Order allow,deny Allow localhost
Allow 192.168.0.2
# line 48: IP address you allow
AuthType Basic Require user @SYSTEM Order allow,deny
Allow 192.168.0.2
# add at the bottom: specify certificates
ServerCertificate /etc/pki/tls/certs/server.crt
ServerKey /etc/pki/tls/certs/server.key [root@dlp ~]#
vi /etc/cups/mime.convs
# line 114: uncomment
application/octet-stream application/vnd.cups-raw 0 - [root@dlp ~]#
/etc/rc.d/init.d/cups start
# start cups
Starting cups: [root@dlp ~]#
chkconfig cups on
|
Step [3] | Access to "https://(your server's hostname or IP address):631/" with web browser. |
Step [4] | Click "management" tab, and in next page, Click add printers. |
Step [5] | Select a driver. If suitable one is none, select any one, this is not important because suitable driver is needed on Client. (but if you want to print on Cups server directly, it's neccessary to install suitable driver to Cups server, too, download and install it from printer's vendor. |
Step [6] | Authenticate with root user. |
Step [7] | Just added a printer. |
Step [8] | Printer option is shown. Change some section if needed. (it's no ploblem with keeping default settings) |
Step [9] | Just complete server's settings. |