PDA

View Full Version : My cups-lpr notes



ToddAndMargo
21st August 2017, 10:45 AM
Fedora: how to set up LPR/LPD network printing to CUPS:

1) Install the software and start CUPS:
# dnf install cups cups-lpd cups-pdf
# systemctl enable cups.server
# systemctl enable cups-lpd.socket

# systemctl start cups.server

Don't startcups-lpd just yet


2) Configure your printers (include sharing) at
https://127.0.0.1:631


3) Now fix all the idiot SELinux issue
# setenforce Permissive
# systemctl start cups-lpd.socket

One at a time fix all the SELinux popups. Trigger them
by sending LPR test prints to CUPS from a networked workstation.
Repeat with "Standard TCP/IP port":

# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

# ausearch -c '(cups-lpd)' --raw | audit2allow -M my-cupslpd
# semodule -X 300 -i my-cupslpd.pp

# ausearch -c 'cups-lpd' --raw | audit2allow -M my-cupslpd
# semodule -X 300 -i my-cupslpd.pp

# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -i my-systemd.pp


4) Once you get no more errors, turn the SELinux back on:
# setenforce Enforcing

dodona
21st August 2017, 07:35 PM
thanks a lot :)