I’ve been trying to set up a Raspberry Pi 4B as a remote printing server. I haven’t actually been able to get it to print anything, though. I’ve downloaded the drivers, etc, and lpr shows that the printer exists, and that several jobs have been completed, except the printer never actually printed anything. I’m running Fedora Server 41.
Also, the CUPS web interface doesn’t work - it’s saying that it doesn’t have permission to, well, I’ll just paste the line from systemctl here. Dec 16 00:41:47 fedoraprinter cupsd[1964]: Unable to open listen socket for address 127.0.0.1:631 - Permission denied.
check selinux settings: sudo ausearch -c cupsd | audit2allow
if SELinux is causing the problem, you can create a custom policy (more on that when you confirm that SELinux is the culprit)
verify configuration: grep 'Listen' /etc/cups/cupsd.conf
you should add an entry to listen to all addresses, not just localhost (127.0.0.1)
check firewall
IPP uses port 631. is it blocked? sudo firewall-cmd --list-all to allow traffic on port 631, run sudo firewall-cmd --permanent --add-port=631/tcp and reload the service sudo firewall-cmd --reload
Also, please check and confirm your printer works in general and that you can print locally.
I’m going to spam my own page here. Scanning and Printing from CLI, which goes through using CLI to get scanning and printing working on a Brother MFC-L3780CDW. (Spoiler alert, I used the ipp everywhere driver. If you’re just printing pdfs, you can often get it to work with netcat. If the printer has an IP of 192.168.1.50 nc 192.168.1.50 9100 < myfile.pdf
My printer isn’t web enabled. For @augenauf, I’ve disabled both SELinux and the firewall - I know it’s less secure, I just don’t feel like fighting with those when I can’t get it to print even without them. I know the printer works normally, I’ve printed from it the other day from a Windows computer that I don’t usually have access to.
Anyways, I followed the guide linked in the post I’m replying to, and installed @vekruse’s mentioned packages (not sure how to set which specific driver to use without CUPS’ web interface), and changed /etc/cups/cupsd.conf as vekruse said (which didn’t get the CUPS webui working), and now I can sort of print via the terminal - printing a plaintext file doesn’t do anything, and printing a PDF just makes the printer run through all the available paper without printing anything on any of it.