Printer sharing with CUPS MX/antiX 22 Tutorial
Posted: Sun Oct 30, 2022 5:04 am
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!
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!
