WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [HELP] Share Printer  (Read 2921 times)

Offline brunok

  • Newbie
  • *
  • Posts: 36
[HELP] Share Printer
« on: January 11, 2018, 01:03:44 PM »
Hello,

I've implemented a boot environment via PXE and it's working!  8)


Now, I came up with another problem: Install local printer and share on the network.  :(
Is it mandatory to use CUPS?

I was able to install Zebra USB printer, but how do I share with the network?

For example, from an Windows machine, I need to print to the Zebra printer that is installed on a ThinClient via USB. How to make?

Offline brunok

  • Newbie
  • *
  • Posts: 36
Re: [HELP] Share Printer
« Reply #1 on: January 15, 2018, 12:06:12 PM »
I was able to install through CUPS.
Zebra TPL 2844 with EPL2 driver from cups.

I can print from the cups management page, but i can't print through the network on another machine.

This error appears (On the CUPS page: localhost:631/printers/XXXX):

stopped
"Not usable font available"


In the CUPS log:

No viable font found
Ignored bad font "FreeMono"
No usable font available

Someone with CUPS knowledge who has been through this?
« Last Edit: January 15, 2018, 12:08:08 PM by brunok »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #2 on: January 16, 2018, 12:16:58 AM »
Which tinycore version and which architecture?

Is the ghostscript extension loaded?

Offline brunok

  • Newbie
  • *
  • Posts: 36
Re: [HELP] Share Printer
« Reply #3 on: January 16, 2018, 07:02:45 AM »
TC 8.2.1 x86

Ghostscript are loaded.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #4 on: January 16, 2018, 07:10:49 AM »
What happens if you load a font extension, for example dejavu-fonts-ttf?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #5 on: January 16, 2018, 08:12:17 AM »
Hmm - I see the problem with x86, but not with x86_64.

I did see the problem with piCore, but I believe I fixed it, I just can't remember how  :(

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #6 on: January 16, 2018, 09:07:26 AM »
loading dejavu-fonts-ttf does indeed make things work for me with Core-8.2.1, but is not required for things to work in CorePure-8.2.1, which is odd.

Note that I tested with cups connected to a network printer and printed a text file from the same machine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: [HELP] Share Printer
« Reply #7 on: January 16, 2018, 10:00:57 AM »
Hi Juanito
Quote
I did see the problem with piCore, but I believe I fixed it, I just can't remember how
A comment in the  dejavu-fonts-ttf.tcz.info  file states:
Quote
... and calling fc-cache from startup script.
Maybe related?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #8 on: January 17, 2018, 01:15:18 AM »
I don't believe the problem is with fontconfig per se - there is a startup script invoking fc-cache in the fontconfig extensions in x86, x86_64 and armv7.

I don't really see why loading dejavu-fonts-ttf would fix the problem in x86 when luxisr ttf fonts are included in the Xlibs extension anyway and dejavu-fonts-ttf are not required in X86_64.

There is a circular dependency between freetype and harfbuzz in X86_64 that is not present in x86 to avoid bloat, but I don't see how this would affect things.

..and I also see that the error:
Code: [Select]
W [16/Jan/2018:17:34:04 +0000] [Job 1] Ignored bad font "FreeMono"
E [16/Jan/2018:17:34:04 +0000] [Job 1] No usable font available
..occurs with x86 and Xvesa, but not with x86 and Xorg-7.7...

Edit: with Xvesa and Xorg-fonts, cups also works
« Last Edit: January 17, 2018, 01:50:46 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [HELP] Share Printer
« Reply #9 on: January 17, 2018, 06:46:36 AM »
Xorg-fonts added as a dep to the cups-filters extension