CentOS 7.x Configure cups printing server
From Notes_Wiki
Home > CentOS > CentOS 7.x > Print server > CentOS 7.x Configure cups printing server
To configure cups print server on CentOS 7.x use following steps:
- yum -y install cups ghostscript hplip-common
- In case there is no real printer for testing and you want to use a virtual printer for practising cups then also do:
- yum -y install cups-pdf
- In case there is no real printer for testing and you want to use a virtual printer for practising cups then also do:
- Start, enable and check status of cups services
- systemctl start cups
- systemctl enable cups
- systemctl status cups
- Configure cups to be accessible on LAN by editing '/etc/cups/cupsd.conf as follows:
- Prepend following at begining of configuration file
- DefaultEncryption Never
- Add additional 'Listen <lan-ip>:631' directive along with other 'Listen' directives to listen on additional IPs (non-loopback)
- Edit access configuration for <Location /> to give access to others to cups print server
- Edit access configuration for <Location /admin> to give admin access to admin station IPs
- Restart cups for changes to take effect
- systemctl restart cups
- Prepend following at begining of configuration file
- Now cups can be accessed at https://<lan-ip-or-fqdn>:631/ from IPs whitelisted in the access configuration
- To add the printer on any other Linux machine over IPP use printer URL such as:
- ipp://<lan-ip-or-fqdn>/printers/<printer-name>
- For example, 'ipp://192.168.123.91/printers/cups-pdf' can be used to access cups-pdf printer setup on 192.168.123.91 machine.
Refer:
Home > CentOS > CentOS 7.x > Print server > CentOS 7.x Configure cups printing server