Printer sharing with CUPS MX/antiX 22 Tutorial

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
Rannug
Posts: 20
Joined: Sat Oct 22, 2022 4:57 am

Printer sharing with CUPS MX/antiX 22 Tutorial

#1 Post by Rannug »

This will be a guide that covers sharing a printer with CUPS over a LAN via IPP.

Server:
1. Install cups and make sure it's working on the host computer
2. Enable sharing with CUPS:
- sudo cupsctl --share-printers
Forward ports if needed:
- ufw allow in from your-ip/mask to any app IPP
3. Tag each printer meant to be shared as such:
- lpadmin -p printer -o printer-is-shared=true
Note: If you need to have users type in a password or something do this:
-lpadmin -p printer -o printer-op-policy=authenticated
Client:
4. Go to the client computer and add the user that will be printing to the following groups:
- lp and lpadmin
- sudo usermod -a -G username lp lpadmin
5. Tell CUPS to use the printserver we setup:
sudo nano /etc/cups/cups.conf
ServerName server
6. Restart cups on both client and server and print something!

Popcorn! :lion:

Return to “Tips & Tricks by users (not for help)”