Sharing Linux USB printer with Windows
We are trying to let a Window 10 laptop print to
a USB printer attached to my Fedora 32 box. The host name of the Linux box has been set as by root as follows: Code:
hostnamectl set-hostname george HP_LaserJet_P2035 As root, I executed the following commands: Code:
cupsctl --share-printers Then, on the Windows 10 laptop, we installed a network printer with the following address: Code:
http://george:631/printers/HP_LaserJet_P2035 Port 631 is the IPP port, as specified by /etc/services So far, we have been unable to print from Windows. The Linux USB printer has installed under Windows, but when trying to print we get the useful error messages: "Error Printing". Can anyone help us out? Thank you for your time. |
Can your laptop resolve this hostname george (ping george)?
|
Do you have a local DNS running that will resolve george to a real IP address? If not you will need to use the computers LAN IP address. If the computer is using DHCP you will need to use an address reservation in the router so it will stay the same.
Too late... |
Quote:
|
Code:
lpadmin -p HP_LaserJet_P2035 -E -v ipp://george/printers/HP_LaserJet_P2035 -m everywhere |
Do you have an active firewall on the Linux print server perhaps?
This might be worth reviewing too... http://www.auxnet.org/index.php/the-...-in-windows-10 |
Quote:
and under "public | Services" I checked the "ipp" box. Now, when the laptop tries to print, lpq as root lists jobs in the queue: Code:
[root@george cups]# lpq . |
Success. As someone suggested, maybe I should not have executed:
Code:
lpadmin -p HP_LaserJet_P2035 -E -v ipp://computer-room01/printers/HP_LaserJet_P2035 -m everywhere deleted the printer, then re-added it. Now, the Windows laptop can print. Thank you everyone. |
Quote:
Install as a USB printer on one device, then navigate to the printer and instal as a network printer on the other. That's how I believe it went down. If they're on the same network, you can connect the printer to one of them and then share it so the other machine can access it across the network. |
All times are GMT -5. The time now is 05:14 PM. |