greets, everybody.
for some reason unknown to me, i can no longer print from tde apps. running localhost:631 brings up the cups admin page and i can print a test page just fine. i can print from libreoffice and mozilla. but if i try to print from, say, kpdf, an "initializing printing system" box pops up, then an error saying cups isn't installed or is misconfigured.
dep Pictures: http://www.ipernity.com/doc/depscribe/album Column: https://ofb.biz/author/dep/
Anno domini 2023 Sat, 02 Sep 00:54:13 +0000 dep via tde-users scripsit:
greets, everybody.
for some reason unknown to me, i can no longer print from tde apps. running localhost:631 brings up the cups admin page and i can print a test page just fine. i can print from libreoffice and mozilla. but if i try to print from, say, kpdf, an "initializing printing system" box pops up, then an error saying cups isn't installed or is misconfigured.
I struggled with the same thing. My notes say this: 1) Check .trinity/share/config/tdeprintrc and ensure that it represents your CUPS server + user account on that server. This affects any printing done from TDE 2) when printing to a remote CUPS server: delete /etc/cups/client.conf - it does bad stuff 3) delete anything *avahi*, especially avahi-demon. If you do not, you get "ghost" printers that do not really exist. This applies to remote pronters. Add those with the CUPS webinterface, URI: ipp://PRINTER/printers/PRINTERNAME, Geneic, protocol: IPP-Everywhere
Nik
dep Pictures: http://www.ipernity.com/doc/depscribe/album Column: https://ofb.biz/author/dep/
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Saturday 02 September 2023 08.59:18 Dr. Nikolaus Klepp via tde-users wrote:
delete anything *avahi*, especially avahi-demon. If you do not, you
get "ghost" printers that do not really exist.
Here (MX-Linux) removing avahi kills ALL printing (and reinstalling does not help). Only restoring from backup helps.
Printers are network printers.
Thierry
Anno domini 2023 Sat, 2 Sep 11:12:00 +0200 Thierry de Coulon via tde-users scripsit:
On Saturday 02 September 2023 08.59:18 Dr. Nikolaus Klepp via tde-users wrote:
delete anything *avahi*, especially avahi-demon. If you do not, you
get "ghost" printers that do not really exist.
Here (MX-Linux) removing avahi kills ALL printing (and reinstalling does not help). Only restoring from backup helps.
Printers are network printers.
Without avahi you have to install the printers using the CUPS webinterface on localhost:631 as remote printers (ipp protocol).
Nik
Thierry ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Saturday 02 September 2023 11.29:25 Dr. Nikolaus Klepp via tde-users wrote:
Without avahi you have to install the printers using the CUPS webinterface on localhost:631 as remote printers (ipp protocol).
Nik
I tried that, but it did not work. Cups installs the printer but any print ends with an error (printer not available)...
Thierry
What does your .trinity/share/config/tdeprintrc say? What does your /etc/cups/printers.conf say, after you have configured a remote ipp printer? This is what my printer looks like:
Printer configuration file for CUPS v2.4.2 # Written by cupsd # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING NextPrinterId 3 <Printer MFCJ5320DW> PrinterId 2 UUID urn:uuid:078e7205-d966-3dde-47cd-7d8b250facc9 AuthInfoRequired none Info MFCJ5320DW Location MakeModel MFC-J5320DW CUPS - IPP Everywhere DeviceURI ipp://drucker/printers/MFCJ5320DW State Idle StateTime 1690564713 ConfigTime 1690564682 Type 12366 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer>
Anno domini 2023 Sat, 2 Sep 11:38:42 +0200 Thierry de Coulon via tde-users scripsit:
On Saturday 02 September 2023 11.29:25 Dr. Nikolaus Klepp via tde-users wrote:
Without avahi you have to install the printers using the CUPS webinterface on localhost:631 as remote printers (ipp protocol).
Nik
I tried that, but it did not work. Cups installs the printer but any print ends with an error (printer not available)...
Thierry ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Saturday 02 September 2023 11.44:43 Dr. Nikolaus Klepp via tde-users wrote:
What does your .trinity/share/config/tdeprintrc say?
$Version] update_info=tdeprintrc.upd:kde-3.1-toolbar
[General] ViewToolBar[$d]
[Jobs] Size=550,250
What does your /etc/cups/printers.conf say
# Printer configuration file for CUPS v2.3.3op2 # Written by cupsd # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING NextPrinterId 14 <DefaultPrinter hp_LaserJet_4200> PrinterId 5 UUID urn:uuid:0bcd1a44-bd39-35e0-4a7a-2688a831feb8 Info hp LaserJet 4200 Location Network MakeModel HP LaserJet 4200 Foomatic/Postscript DeviceURI dnssd://hp%20LaserJet%204200%20 (0001E6B3586E)._pdl-datastream._tcp.local/ State Idle StateTime 1693645345 ConfigTime 1688229494 Type 8433684 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job Attribute marker-colors none,none Attribute marker-levels 100,81 Attribute marker-names Black Print Cartridge HP Q1338A,Maintenance Kit HP 110V-Q2429A, 220V-Q2430A Attribute marker-types toner-cartridge,fuser Attribute marker-change-time 1693645345 </DefaultPrinter> <Printer hp_LaserJet_4250> PrinterId 6 UUID urn:uuid:8a266d19-0d67-33b1-6e61-70c4fea35eb8 Info hp LaserJet 4250 Location Network MakeModel HP LaserJet 4250 Foomatic/Postscript DeviceURI dnssd://hp%20LaserJet%204250%20%5B110D32%5D._pdl-datastream._tcp.local/ State Idle StateTime 1688229538 ConfigTime 1688229550 Type 8433684 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer> <Printer Lexmark_Lexmark_International_Lexmark_CS310dn> PrinterId 7 UUID urn:uuid:1485a871-18c1-38f9-526b-424c950e726a Info Lexmark Lexmark International Lexmark CS310dn Location Network MakeModel Lexmark CS310 Series DeviceURI dnssd://Lexmark%20CS310dn._ipp._tcp.local/?uuid=bc2be670-2f17-4299-aeee-4728e21bb0af State Idle StateTime 1688229639 ConfigTime 1688229679 Type 8425692 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer>
These are, however, the files from the working (i-e- printing) system, with avahi.
Thierry
Ok, this makes things a bit clearer:
Anno domini 2023 Sat, 2 Sep 18:36:42 +0200 Thierry de Coulon via tde-users scripsit:
On Saturday 02 September 2023 11.44:43 Dr. Nikolaus Klepp via tde-users wrote:
What does your .trinity/share/config/tdeprintrc say?
$Version] update_info=tdeprintrc.upd:kde-3.1-toolbar
[General] ViewToolBar[$d]
[Jobs] Size=550,250
And you can print from e.g. kate? I ask, because this does not refer to a remote CUPS printer for TDE at all. You should have some section like this in your settings:
[CUPS] Host=drucker InstallDir[$e]= Login=root Password=<SOMESECRETHERE> Port=631 SavePassword=true
What does your /etc/cups/printers.conf say
# Printer configuration file for CUPS v2.3.3op2 # Written by cupsd # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING NextPrinterId 14
<DefaultPrinter hp_LaserJet_4200> PrinterId 5 UUID urn:uuid:0bcd1a44-bd39-35e0-4a7a-2688a831feb8 Info hp LaserJet 4200 Location Network MakeModel HP LaserJet 4200 Foomatic/Postscript DeviceURI dnssd://hp%20LaserJet%204200%20
Without avahi dnssd is not available. After removing avahi you have to delete all printers. Then install the remote pinters as IPP printers - no special drivers needed.
Nik
(0001E6B3586E)._pdl-datastream._tcp.local/ State Idle StateTime 1693645345 ConfigTime 1688229494 Type 8433684 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job Attribute marker-colors none,none Attribute marker-levels 100,81 Attribute marker-names Black Print Cartridge HP Q1338A,Maintenance Kit HP 110V-Q2429A, 220V-Q2430A Attribute marker-types toner-cartridge,fuser Attribute marker-change-time 1693645345
</DefaultPrinter> <Printer hp_LaserJet_4250> PrinterId 6 UUID urn:uuid:8a266d19-0d67-33b1-6e61-70c4fea35eb8 Info hp LaserJet 4250 Location Network MakeModel HP LaserJet 4250 Foomatic/Postscript DeviceURI dnssd://hp%20LaserJet%204250%20%5B110D32%5D._pdl-datastream._tcp.local/ State Idle StateTime 1688229538 ConfigTime 1688229550 Type 8433684 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer> <Printer Lexmark_Lexmark_International_Lexmark_CS310dn> PrinterId 7 UUID urn:uuid:1485a871-18c1-38f9-526b-424c950e726a Info Lexmark Lexmark International Lexmark CS310dn Location Network MakeModel Lexmark CS310 Series DeviceURI dnssd://Lexmark%20CS310dn._ipp._tcp.local/?uuid=bc2be670-2f17-4299-aeee-4728e21bb0af State Idle StateTime 1688229639 ConfigTime 1688229679 Type 8425692 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer>
These are, however, the files from the working (i-e- printing) system, with avahi.
Thierry ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Sat, 2 Sep 2023 18:36:42 +0200 Thierry de Coulon via tde-users users@trinitydesktop.org wrote:
On Saturday 02 September 2023 11.44:43 Dr. Nikolaus Klepp via tde-users wrote:
What does your /etc/cups/printers.conf say
[...]
DeviceURI dnssd://hp%20LaserJet%204200%20 (0001E6B3586E)._pdl-datastream._tcp.local/
[...]
DeviceURI dnssd://hp%20LaserJet%204250%20%5B110D32%5D._pdl-datastream._tcp.local/
[...]
DeviceURI dnssd://Lexmark%20CS310dn._ipp._tcp.local/?uuid=bc2be670-2f17-4299-aeee-4728e21bb0af
These are, however, the files from the working (i-e- printing) system, with avahi.
Notice the protocol on those URLs? dnssd = DNS Service Discovery. Which is what avahi does. Therefore, without avahi, it's no surprise your system can't find the printers. By contrast, Nikolaus has:
DeviceURI ipp://drucker/printers/MFCJ5320DW
which is a different non-avahi protocol. I have:
DeviceURI socket://192.168.1.104
which again is not avahi-dependent.
Your setup, while not incorrect in the strict sense, is relying on automagic that's difficult to fix when it breaks.
E. Liddell
On Saturday 02 September 2023 20.50:38 E. Liddell wrote:
Notice the protocol on those URLs? dnssd = DNS Service Discovery. Which is what avahi does. Therefore, without avahi, it's no surprise your system can't
find the printers. By contrast, Nikolaus has:
DeviceURI ipp://drucker/printers/MFCJ5320DW
which is a different non-avahi protocol. I have:
DeviceURI socket://192.168.1.104
which again is not avahi-dependent.
Your setup, while not incorrect in the strict sense, is relying on automagic that's difficult to fix when it breaks.
E. Liddell
So if I replaced the dnssd with the DeviceURL it would work? I'll make a backup and try when I have time.
The setup is what MX does - I just added the printers in CUPS. Just reinstalling a printer after removing avahi does not change the way the URL is written, so it must be something deeper un the system.
That said, avagi seems to work well here.
Thierry
said Dr. Nikolaus Klepp via tde-users:
| I struggled with the same thing. My notes say this: | 1) Check .trinity/share/config/tdeprintrc and ensure that it represents | your CUPS server + user account on that server. This affects any | printing done from TDE
[$Version] update_info=kdeprintrc.upd:kde-3.1-toolbar
[CUPS] Host=localhost InstallDir[$e]= Login= Port=631 SavePassword=false
[Filter] LocationRe= Printers=
[General] ExternalPreview=false Filter= PreviewCommand[$e]=gv ShowStatusMsg=true Sizes=100,100 TestPage[$e]= TimerDelay=5 UseLast=true ViewMenuBar=false
[Jobs] Limit=0 Size=784,544
Do these values need changing?