1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
iiab/roles/cups
2023-06-10 09:10:47 -04:00
..
defaults Update main.yml 2019-03-05 14:00:21 -05:00
tasks Clean df syntax, for each app's disk usage in iiab.ini 2023-06-10 09:10:47 -04:00
templates Prepare for 10.10.10.10, by evolving PR #3281 2022-07-08 22:00:03 -04:00
README.md Toughen doc URLs with %3F (instead of .3F) 2023-03-28 15:56:14 -04:00

CUPS Printing README

CUPS (also known as the "Common UNIX Printing System") is the standards-based, open source printing system for Linux and macOS.

It allows your Internet-in-a-Box (IIAB) to act as a print server.

This can be useful if a printer is attached to your IIAB — so student/teacher print jobs from client computers and phones can be processed — and then sent to the appropriate printer.

Using it

Make sure your IIAB was installed with these 2 lines in /etc/iiab/local_vars.yml :

cups_install: True
cups_enabled: True

Then visit your IIAB's http://box/print > Administration and log in using:

  • Username: Admin
  • Password: changeme

Or use any Linux account that is a member of the Linux group: lpadmin

Browser pop-ups will try to scare you — click (and persist!) to log in despite these exaggerated warnings.

Security

The above uses 'SystemGroup lpadmin' in /etc/cups/cups-files.conf — in coordination with about 15 '@SYSTEM' lines and 'DefaultAuthType Basic' in /etc/cups/cupsd.conf

CUPS creates a 10-year "self-signed" HTTPS certificate during installation, that will be very confusing to non-technical users when they log in, as a result of modern browser warnings.

How it Works

Understand how IIAB configures CUPS for all IP addresses and all hostnames (IIAB redirects to bypass the "since 2009" CUPS problem mentioned below!) by reading these in-line explanations:

Modify these 2 files at your own risk:

If you make modifications to the above files, don't forget to restart systemd services: (run this as root)

systemctl restart cups cups-browsed nginx

Troubleshooting

Visit your IIAB's http://box/print > Help for printer configuration suggestions, Etc!

http://localhost:631 is very useful if NGINX redirects or CUPS permissions are set wrong.

Beware that http://box:631 and http://box.lan:631 will not work, due to a known issue with CUPS since 2009.

Run ps aux | grep cups and systemctl status cups to verify the CUPS systemd service is running well.

Finally, keep an eye on: /var/log/cups/error_log

Docs and Updates