# From: Steven <redalert.commander@gmail.com>
# Date: Thu, 22 Sep 2011 23:34:22 +0200
> On the cups webinterface click administration, and make sure to check
> the box "Share printers connected to this system", save these settings.
> Then go to printers, select your printer and use the dropdownbox to
> select "edit printer", click continue, then in the next screen check
> "Share this printer" and click continue.
So far, so good.
> Now your printer is accessible using the IPP protocol ...
lpr is needed here.
cups-bsd is installed and should provide a functional lpr.
> ipp://hostname:631/printers/printername
> replace hostname with the hostname or IP of your linux server and
> replace 'printername' with the actual printername.
The client requested printing of Test by lpr and made this report.
Desktops.PrintDoc HPLaserJet1100@172.24.1.1 MY:Test Ok
LPR: HPLaserJet1100@172.24.1.1 connecting failed, res = 1
This appeared in cupsserver:/var/log/cups/error_log.
D [22/Sep/2011:15:40:09 -0700] cupsdAcceptClient: 12 from localhost:631 (IPv4)
D [22/Sep/2011:15:40:09 -0700] cupsdReadClient: 12 GET /admin/log/error_log HTTP/1.1
D [22/Sep/2011:15:40:09 -0700] cupsdSetBusyState: Active clients
D [22/Sep/2011:15:40:09 -0700] cupsdAuthorize: Authorized as root using Basic
This is the tcpdump from another request.
root@cupsserver:/# tcpdump -i LocBel7411cc tcp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on LocBel7411cc, link-type EN10MB (Ethernet), capture size 65535 bytes
16:00:46.740617 IP cantor.invalid.721 > 172.24.1.1.printer: Flags [S], seq 129592, win 8192, options [mss 1420], length 0
16:00:46.740711 IP 172.24.1.1.printer > cantor.invalid.721: Flags [R.], seq 0, ack 129593, win 0, length 0
...
16:00:46.762612 IP cantor.invalid.731 > 172.24.1.1.printer: Flags [S], seq 138632, win 8192, options [mss 1420], length 0
16:00:46.762631 IP 172.24.1.1.printer > cantor.invalid.731: Flags [R.], seq 0, ack 138633, win 0, length 0
^C
22 packets captured
22 packets received by filter
0 packets dropped by kernel
root@cupsserver:/# ^C
Any further thoughts?
Thanks, ... Peter E.
--
Telephone 1 360 450 2132. bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 171057148.49269.46023@cantor.invalid">http://lists.debian.org/171057148.49269.46023@cantor.invalid
09-28-2011, 08:24 PM
Steven
Re(2): CUPS & network printing
On Wed, 2011-09-28 at 12:01 -0800, peasthope@shaw.ca wrote:
[...]
> > Now your printer is accessible using the IPP protocol ...
>
> lpr is needed here.
> cups-bsd is installed and should provide a functional lpr.
To be honest I never used lpr, although it is known to work with cups.
Personally I use IPP and Samba, as most clients are either Windows or
Linux, I'm satisfied with those.
>
> > ipp://hostname:631/printers/printername
> > replace hostname with the hostname or IP of your linux server and
> > replace 'printername' with the actual printername.
>
> The client requested printing of Test by lpr and made this report.
> Desktops.PrintDoc HPLaserJet1100@172.24.1.1 MY:Test Ok
> LPR: HPLaserJet1100@172.24.1.1 connecting failed, res = 1
>
> This appeared in cupsserver:/var/log/cups/error_log.
[...]
>
> This is the tcpdump from another request.
[...]
>
> Any further thoughts?
Check your /etc/cupsd.conf file, there should be a line somewhere near
the top that reads "BrowseRemoteProtocols CUPS" or similar, this is a
list of 'protocols' cups offers to its clients, perhaps you need to add
the option lpd and/or lpr (documentation I briefly looked at doesn't
mention lpr, only lpd).
There is also a
<Location />
...
</Location>
directive, inside are an "Order" option and an "Allow" and/or "deny"
option, make sure to allow your clients here, I have this set to "Allow
all". Unwanted hosts are blocked on the firewall level in my case.
Bear in mind that I'm not a cups expert by any means, nor have I tried
to get cups working with lpr.
>
> Thanks, ... Peter E.
>
> --
> Telephone 1 360 450 2132. bcc: peasthope at shaw.ca
> Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
> Personal pages http://members.shaw.ca/peasthope/ .
>
>
Kind regards,
Steven
09-28-2011, 09:01 PM
Re(2): CUPS & network printing
# From: Steven <redalert.commander@gmail.com>
# Date: Thu, 22 Sep 2011 23:34:22 +0200
> On the cups webinterface click administration, and make sure to check
> the box "Share printers connected to this system", save these settings.
> Then go to printers, select your printer and use the dropdownbox to
> select "edit printer", click continue, then in the next screen check
> "Share this printer" and click continue.
So far, so good.
> Now your printer is accessible using the IPP protocol ...
lpr is needed here.
cups-bsd is installed and should provide a functional lpr.
> ipp://hostname:631/printers/printername
> replace hostname with the hostname or IP of your linux server and
> replace 'printername' with the actual printername.
The client requested printing of Test by lpr and made this report.
Desktops.PrintDoc HPLaserJet1100@172.24.1.1 MY:Test Ok
LPR: HPLaserJet1100@172.24.1.1 connecting failed, res = 1
This appeared in cupsserver:/var/log/cups/error_log.
D [22/Sep/2011:15:40:09 -0700] cupsdAcceptClient: 12 from localhost:631 (IPv4)
D [22/Sep/2011:15:40:09 -0700] cupsdReadClient: 12 GET /admin/log/error_log HTTP/1.1
D [22/Sep/2011:15:40:09 -0700] cupsdSetBusyState: Active clients
D [22/Sep/2011:15:40:09 -0700] cupsdAuthorize: Authorized as root using Basic
This is the tcpdump from another request.
root@cupsserver:/# tcpdump -i LocBel7411cc tcp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on LocBel7411cc, link-type EN10MB (Ethernet), capture size 65535 bytes
16:00:46.740617 IP cantor.invalid.721 > 172.24.1.1.printer: Flags [S], seq 129592, win 8192, options [mss 1420], length 0
16:00:46.740711 IP 172.24.1.1.printer > cantor.invalid.721: Flags [R.], seq 0, ack 129593, win 0, length 0
...
16:00:46.762612 IP cantor.invalid.731 > 172.24.1.1.printer: Flags [S], seq 138632, win 8192, options [mss 1420], length 0
16:00:46.762631 IP 172.24.1.1.printer > cantor.invalid.731: Flags [R.], seq 0, ack 138633, win 0, length 0
^C
22 packets captured
22 packets received by filter
0 packets dropped by kernel
root@cupsserver:/# ^C
Any further thoughts?
Thanks, ... Peter E.
--
Telephone 1 360 450 2132. bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 171057148.53359.46026@cantor.invalid">http://lists.debian.org/171057148.53359.46026@cantor.invalid