Re: printing on a remote usb printer
On Thu, 12 Dec 2019, Brian wrote: This looks good. We take it that you can print from *the server*? yes, of course... 'lp -d ljp /etc/nsswitch.conf' saves you a bit of ink/toner. thank you for the tip At last, I found the origin of the problem: wrong "order" entries in /etc/cups/cupsd.conf as I thought that the 1st parameter was the default, but actually the default one is the 2nd! I had order allow,deny and the correct order should be order deny,allow thank you Brian for your collaboration: I suppose that the cupsenable and cupsaccept you gave me are not useless. I'll check that on an other client. best regards, -- Pierre Frenkiel
Re: printing on a remote usb printer
On Thu 12 Dec 2019 at 18:50:04 +0100, Pierre Frenkiel wrote: > On Thu, 12 Dec 2019, Brian wrote: > > > Post what you get for 'lpstat -t' on server and client. > > I only left entries for the involved printer That's fine. > on the server: > >scheduler is running >system default destination: ljp >device for ljp: hp:/usb/HP_LaserJet_MFP_M227-M231?serial=VNC3P21987 >ljp accepting requests since Thu 12 Dec 2019 06:33:27 PM CET >printer ljp is idle. enabled since Thu 12 Dec 2019 06:33:27 PM CET This looks good. We take it that you can print from *the server*? 'lp -d ljp /etc/nsswitch.conf' saves you a bit of ink/toner. > on the client: > >scheduler is running >system default destination: ljp >device for ljp: ipp://pfr2/printers/ljp pfr2 is the hostname of the server? If so, that should be ok if the client can resolve it. Try pfr2.local or the IP in the server URI. >ljp not accepting requests since Thu 12 Dec 2019 09:02:47 AM CET - > reason unknown If in doubt, do 'cupsenable ljp' and 'cupsaccept ljp' >printer ljp is idle. enabled since Thu 12 Dec 2019 09:02:47 AM CET > >I noticed, in/var/log/cups/error_log(server side) > Returning HTTP Forbidden for Get-Printer-Attributes > (ipp://pfr2.local:631/printers/ljp) from 192.168.1.163 > >and the client: > Returning IPP server-error-not-accepting-jobs for Create-Job > (ipp://localhost/printers/ljp) from localhost. Would you also do 'ippfind -T 5'? (-T 5 may not be needed). -- Brian.
Re: printing on a remote usb printer
On Thu, 12 Dec 2019, Brian wrote: Post what you get for 'lpstat -t' on server and client. I only left entries for the involved printer on the server: scheduler is running system default destination: ljp device for ljp: hp:/usb/HP_LaserJet_MFP_M227-M231?serial=VNC3P21987 ljp accepting requests since Thu 12 Dec 2019 06:33:27 PM CET printer ljp is idle. enabled since Thu 12 Dec 2019 06:33:27 PM CET on the client: scheduler is running system default destination: ljp device for ljp: ipp://pfr2/printers/ljp ljp not accepting requests since Thu 12 Dec 2019 09:02:47 AM CET - reason unknown printer ljp is idle. enabled since Thu 12 Dec 2019 09:02:47 AM CET I noticed, in/var/log/cups/error_log(server side) Returning HTTP Forbidden for Get-Printer-Attributes (ipp://pfr2.local:631/printers/ljp) from 192.168.1.163 and the client: Returning IPP server-error-not-accepting-jobs for Create-Job (ipp://localhost/printers/ljp) from localhost.
Re: printing on a remote usb printer
On Wed 11 Dec 2019 at 22:30:01 +0100, Pierre Frenkiel wrote: > hi, > I'm trying to configure a print queue using a remote usb printer. > I found on Internet the following recommended config: > >DeviceURI ipp://192.168.1.12:631/printers/ljp > > but it doesn't work: I get "the printer is not responding" > Idem without :631. > I suppose that something is missing or wrong, on the server or the client > side, but what? Post what you get for 'lpstat -t' on server and client. -- Brian.
Re: printing on a remote usb printer
On Wed, 11 Dec 2019 22:30:01 +0100 (CET) Pierre Frenkiel wrote: > I'm trying to configure a print queue using a remote usb printer. > I found on Internet the following recommended config: > > DeviceURI ipp://192.168.1.12:631/printers/ljp I'm going to assume you've adjusted the URI to suit your local situation. That includes both the IP address and the name and path of the printer. Did you use CUPS to set up the printer and the printer queue? Discovering USB printers on other machines seems to be built in to CUPS these days. First, be sure the printer is shareable. http://localhost:631/help/sharing.html?QUERY=sharing -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/