GSTN - Cups documentation
CUPS (Common Unix Printing System)
Installation and configuration for CUPS
Date : 25.08.2016
Document Version : 1.0
Table of Contents:Configure CUPS Printing3
:CUPS Web interface (Adding printers).6
:Testing printer (Print test page).9
:CUPS Integration with Samba.11
== Configure CUPS Printing ==
1. Login to server, using root user and install CUPS.
# yum install cups*
[[Image:]]
2. Edit cupsd.conf file.
# vi /etc/cups/cupsd.conf
[[Image:]]
3. Make below entries and save file.
MaxLogSize 1m
LogLevel debug
# Allow remote access
Listen localhost:631
Listen 172.18.101.14:631
Listen 2404:a800:1000:d:7800::e:631
Listen /var/run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
</Location>
<Location /admin>
</Location>
<Location /admin/conf>
[[Image:]]
4. Restart cups service.
# systemctl restart cups.service
== CUPS Web interface (Adding printers). ==
From here we can add and manage printers. to add a new printer click “Administration”.
[[Image:]]
[[Image:]]
[[Image:]]
[[Image:]]
[[Image:]]
[[Image:]]
Now printer configuration has been done.
[[Image:]]
== Testing printer (Print test page). ==
[[Image:]]
[[Image:]]
[[Image:]]
== CUPS Integration with Samba. ==
# vi /usr/local/samba/etc/smb.conf
[[Image:]]
[[Image:]]
# mkdir -p /var/spool/samba4/ ; chmod 1777 /var/spool/samba4/
[[Image:]]
[ProLaserJet]
[ProLaserJet2]
[[Image:]]
[[Image:]]
[[Image:]]