Tiny Core Extensions > TCE Q&A Forum

[project cancelled] help for my init script if possible

<< < (3/3)

Juanito:
confirmed - the only file required for the cups client connection to the cups server printer to persist across reboot is /usr/local/etc/cups/printers.conf

After reboot, neither avahi nor cups-browsed are required.

It does however seem that the auto-generated printers.conf is required - it would not work when I manually created a printer using ipp://192.168.1.200:631/printers/HPOfficeJetG85, perhaps due to the uuid below.


--- Code: ---$ sudo cat /usr/local/etc/cups/printers.conf
# Printer configuration file for CUPS v1.6.4
# Written by cupsd on 2014-01-10 18:26
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HPOfficeJetG85>
UUID urn:uuid:a3517379-89df-3a56-6468-8d3d0e3cab07
Info HP OfficeJet G85 @ macminitc
Location macminitc
DeviceURI ipp://192.168.1.200:631/printers/HPOfficeJetG85
State Idle
StateTime 1389352906
Type 6
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Option cups-browsed true
</Printer>

--- End code ---

floppy:
The automatic created printers.conf on the pc with TCL (not working hp printer) is

--- Code: ---# Printer configuration file for CUPS v1.6.2
# Written by cupsd on 2014-01-11 18:03
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_officejet_4100_series>
UUID urn:uuid:a54a4101-d54f-39ba-61cc-7301093a9654
Info HP officejet 4100 series
Location druckerprinterserverraspberrypi.fritz.box
DeviceURI ipp://druckerprinterserverraspberrypi.fritz.box:631/printers/HP_officejet_4100_series
State Idle
StateTime 1389045100
Type 6
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Option cups-browsed true
</Printer>
<Printer Virtual_PDF_Printer>
UUID urn:uuid:2f9fcf7e-c1c8-35c3-5b72-da754bacbb80
Info Virtual PDF Printer
Location HP7100TCL
MakeModel Generic CUPS-PDF Printer
DeviceURI cups-pdf:/
State Idle
StateTime 1388855307
Type 8450124
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
--- End code ---
(pdf printer works). I will now disable cups-browsed and avahi and see what is the effect.

Here the working printers.conf file of the working notebook (ubuntu 12.04)

--- Code: ---# Printer configuration file for CUPS v1.5.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP-Officejet-4110v-All-in-one-Printer>
UUID urn:uuid:941aa6ed-7fd5-3923-72eb-a27616764e0a
AuthInfoRequired none
Info HP Officejet 4110v All-in-one Printer
Location xxxxxxxxxxxxxxxxx
DeviceURI dnssd://HP%20officejet%204100%20series%20%40%20raspberrypi._ipp._tcp.local/cups
State Idle
StateTime 1389438056
Type 4
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<Printer PDF>
UUID urn:uuid:e6cfa6fe-ae2c-34a3-7ed3-4f9b5428dcb5
Info PDF
MakeModel Generic CUPS-PDF Printer
DeviceURI cups-pdf:/
State Idle
StateTime 1384638128
Type 8450124
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
--- End code ---

I will have a look at the differences, disable cups-browsed and search further.

Juanito:
Do you mean something that will print a pdf file or something that will convert a file to pdf (if so, what are you using)?

netnomad:
hi floppy,

i agree that your example works fine until 4.7.7:

--- Quote ---a pdf CUPS printer (in order to convert text or openoffice files to PDF).
Like mine (see above)

--- End quote ---

did you also succeed in 5.x?

i noticed missing dependencies like cups-pdf.tcz or ghostscript_common.tcz!

thank you for sharing your experiences.

Navigation

[0] Message Index

[*] Previous page

Go to full version