Hej!

-----John Hupp <l...@prpcompany.com> skrev: -----
Till: ltsp-discuss@lists.sourceforge.net
Från: John Hupp <l...@prpcompany.com>
Datum: 2015-05-02 20:40
Ärende: Re: [Ltsp-discuss] Fat clients can't use printer/scanner connected to   
server

> -----John Hupp <l...@prpcompany.com> skrev: -----
> Till: ltsp-discuss@lists.sourceforge.net
> Från: John Hupp <l...@prpcompany.com>
> Datum: 2015-04-30 23:52
> Ärende: [Ltsp-discuss] Fat clients can't use printer/scanner connected to 
> server
>
> Running LTSP-PNP with Lubuntu 14.04.2, I have thin clients running smoothly.
>
> But with a fat client, Simple Scan reports "No scanners detected." And
> System Tools: Printers reports "Printing service not available. Start
> the service on this computer or connect to another server."
>
> In lts.conf, I have:
> SCANNER=True
> LDM_PRINTER_DEFAULT="EPSON-Stylus-C120"
>
> On the server, System Tools: Printers reports that the Epson is Shared.
>
> The logged in user has permission to use scanners.
>
> The cupsd process is running on the client.
>
> Do fat clients need avahi-daemon to detect these peripherals?  Or does
> anyone otherwise recognize the issue?
>
>
>
>
> On 5/1/2015 2:23 AM, Johan Kragsterman wrote:
>
> I run edubuntu 14.4 with 4 different chroot's. I don't know about scanners, 
> but printers I configura with editing cups-browsed.conf and adding your own 
> printers.conf. I never touch lts.conf.
>
>
> Rgrds Johan
>

Continuing for the moment to work just on the printing question, the 
"Printing service not available" message went away after I ran (on the 
server) system-config-printer and under Server: Settings checked 
"Publish shared printers connected to this system" and then updated the 
image.

But there are still no printers showing up on the fat client when I run 
system-config-printer there, and I see that in the image printers.conf 
has no content except 3 lines of comments.  The content is apparently 
stripped during an image update.  So even if I were to set up a network 
printer on the server (for the printer connected to the server), that 
configuration would be stripped during an image update and so not 
propagated to the fat client.

@ Johan: If the above is true, how do you then add your own printers.conf?





Here's how it looks like in my fat clients filesystem:

admin@ws0:/etc/cups$ ls
cups-browsed.conf  ppd              raw.types           subscriptions.conf.O
cupsd.conf         printers.conf    snmp.conf
cups-files.conf    printers.conf.O  ssl
interfaces         raw.convs        subscriptions.conf
admin@ws0:/etc/cups$ 


As you can see, I got all the normal cups files there, I don't know if there is 
a different with the ltsp-pnp. I didn't build my chroot's with any special 
options.

 As you also can see, I got both printers.conf and printers.conf.0. The latter 
is the one that cups is building automatically, and it is named like that, 
because the printers.conf already exists.

Here's my cups-browsed.conf:

admin@ws0:/etc/cups$ cat cups-browsed.conf
# Which protocols will we use to discover printers on the network?
# Can use DNSSD and/or CUPS, or 'none' for neither.
BrowseRemoteProtocols dnssd cups

# Which protocols will we use to broadcast shared local printers to the network?
# Can use DNSSD and/or CUPS, or 'none' for neither.
# Only CUPS is actually supported, as DNSSD is done by CUPS itself (we ignore
# DNSSD in this directive).
# BrowseLocalProtocols none

# Settings of this directive apply to both BrowseRemoteProtocols and
# BrowseLocalProtocols.
# Can use DNSSD and/or CUPS, or 'none' for neither.
BrowseProtocols dnssd cups

# Only browse remote printers from selected servers
# BrowseAllow cups.example.com
BrowseAllow 192.168.10.250
BrowseAllow 192.168.10.0/24
BrowseAllow 192.168.10.0/255.255.255.0

# Use BrowsePoll to poll a particular CUPS server
BrowsePoll 192.168.10.250:631
BrowsePoll 192.168.10.250
# BrowsePoll cups.example.com:631/version=1.1

# Use DomainSocket to access the local CUPS daemon via another than the
# default domain socket
# DomainSocket /var/run/cups/cups.sock

# Set CreateIPPPrinterQueues to "Yes" to let cups-browsed discover IPP
# network printers (native printers, not CUPS queues) with known page
# description languages (PWG Raster, PDF, PostScript, PCL XL, PCL
# 5c/e) in the local network and auto-create PPD-less print queues for
# them (using a System V interface script to control the filter
# chain). Clients have to IPP-poll the capabilities of the printer and
# send option settings as standard IPP attributes. We do not poll the
# capabilities by ourselves to not wake up the printer from
# power-saving mode when creating the queues. Jobs have to be sent in
# PDF format. Other formats are not accepted. This functionality is
# primarily for mobile devices running CUPS to not need a printer
# setup tool nor a collection of printer drivers and PPDs.

CreateIPPPrinterQueues Yes

# The AutoShutdown directive specifies whether cups-browsed should
# automatically terminate when it has no local raw queues set up
# pointing to any discovered remote printers (auto shutdown
# mode). Setting it to "On" activates the auto-shutdown mode, setting
# it to "Off" deactiivates it (the default). The special mode "avahi"
# turns auto shutdown off while avahi-daemon is running and on when
# avahi-daemon stops. This allows running cups-browsed on-demand when
# avahi-daemon is run on-demand.

# AutoShutdown Off
# AutoShutdown On
# AutoShutdown avahi

# The AutoShutdownTimeout directive specifies after how many seconds
# without local raw queues set up pointing to any discovered remote
# printers cups-browsed should actually shut down in auto shutdown
# mode. Default is 30 seconds, 0 means immediate shutdown.

# AutoShutdownTimeout 30

# Unknown directives are ignored, also unknown values.
admin@ws0:/etc/cups$




And here's my printers.conf:

admin@ws0:/etc/cups$ sudo cat printers.conf
[sudo] password for admin: 
# Printer configuration file for CUPS v1.7.2
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP-Color-LaserJet-CP4520-Series>
UUID urn:uuid:21be3120-0f61-3fa8-7d7d-7129f1350fab
Info HP Color LaserJet CP4520 Series [90D6CD]
Location print
DeviceURI ipp://print.local:631/print
PPDTimeStamp *
State Idle
StateTime 1430565618
Type 4
Accepting Yes
Shared No
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Option cups-browsed true
</Printer>
admin@ws0:/etc/cups$ 



I got this file through first editing cups-browsed, so that I could configure 
the exact printer I wanted, and then copy the file from my running fat client, 
and putting it into the chroot(and of coarse rebuilding the image). You will 
also need a root user in the fat client image.


Regards Johan


Neither the server nor the image has an existing cups-browsed.conf, 
though from the manpage it seems that it may not be necessary.  If I 
understand it correctly, there are defaults for the values that probably 
allow things to just work in many/most circumstances.

Is there a how-to for setting up server-connected printers for fat 
clients, or can someone explain how?



------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net



------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to