Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 23:07
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
pdq print recovery?
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9202
Location: Stratford, Ontario

PostPosted: Sat 24 Jul 2010, 02:18    Post subject:  

Here's a little workaround. Replace /usr/bin/lprshell with this script
Code:
#!/bin/sh
cat > /tmp/out.txt
defaulttexteditor /tmp/out.txt
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9202
Location: Stratford, Ontario

PostPosted: Sat 24 Jul 2010, 07:53    Post subject:  

Here is the proper fix. CUPS is looking for the font /usr/share/cups/fonts/FreeMono.ttf.

You can get it here.

This enables printing of text files with lp/lpr. Then replace /usr/bin/lprshell with the symlink to /usr/bin/lp. Now you can print from Xdialog.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7834
Location: qld

PostPosted: Sat 24 Jul 2010, 22:00    Post subject:  

Ok

This is exactly what I did

    *grabbed fonts
    *extracted in /usr/share/cups/fonts/
    *ran
    Code:
    mkfontscale /usr/share/cups/fonts/
    mkfontdir /usr/share/cups/fonts/

    *restarted X
    *openned /root/spot (just as an example, nothing to do with user "spot") in rox
    *openned a terminal there and typed "lp README.txt"


It worked.

Thanks again rcrsn51

Oh, yeah, I had to make that symlink to lp.. lprshell, that fixed Xdialog printing.

What font's could we chop out of that package to make a reasonable sized printing fix package for lupu?

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9202
Location: Stratford, Ontario

PostPosted: Sat 24 Jul 2010, 22:37    Post subject:  

I just installed the FreeMono.ttf because that's what CUPS wanted. I didn't bother with the font setup commands.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7834
Location: qld

PostPosted: Sat 24 Jul 2010, 22:48    Post subject:  

rcrsn51 wrote:
I just installed the FreeMono.ttf because that's what CUPS wanted. I didn't bother with the font setup commands.


Ok, did that too, made a pet that makes the symlink and runs the font tools (there is a stale symlink in there which should come back to life, this is for woof.)

NOTE: anyone downloading this it is for CUPS-1.4... Only ..and the usual disclaimers..use at own risk
cups-fix-1.4.pet
Description  only for cups-1.4, tested in lupu-503
pet

 Download 
Filename  cups-fix-1.4.pet 
Filesize  306.97 KB 
Downloaded  120 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9202
Location: Stratford, Ontario

PostPosted: Sat 24 Jul 2010, 22:54    Post subject:  

Instead of actually installing the FreeMono.ttf font, I wonder if you could just symlink its name to an existing ttf font. I will test.

[Edit] Yes, that worked. But the font size was larger than normal.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7834
Location: qld

PostPosted: Sun 25 Jul 2010, 06:17    Post subject:  

Ok, made a smaller version, ditched bold, oblique etc, just 1 font file..

I think this one belongs in Lupu by default.. or else how do you write an app and get it to print?

Tested pfix=ram and Xdilaog worked, so did command line.

Cheers
cups-fix-1.4-1-lucid.pet
Description 
pet

 Download 
Filename  cups-fix-1.4-1-lucid.pet 
Filesize  109.73 KB 
Downloaded  130 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
ItWorks

Joined: 06 Mar 2014
Posts: 1

PostPosted: Thu 06 Mar 2014, 08:34    Post subject: It Works  

I know this is an old thread but want to say this was very helpful for me and explain my experience to help others in the same situation since i was very dissapointed with this issue.

Im not even running Puppy Linux right now (did it some time ago) but the problem was the same. Instaled a home server running CUPS and configured it so all computers at home could print on my HP LaserJet 1020 and on CUPS-PDF for generating PDFs on the shared zone.

All worked fine for my PCs BUT i couldnt print from the server itself!! Really 'not printing' isnt the right expresion since both printers (LaserJet and VirtualPDF) were throwing blank pages. In the CUPS works page i found that "No usable font available" message. The server is command-line only so, not using any app to print, just the lpr command.

As rcrsn51 pointed, the key is that CUPS looks for the font /usr/share/cups/fonts/FreeMono.ttf. My steps were to install ttf fonts (ttf-freefont) since never needed them in command line and symlinked one of them (instaled in /usr/share/fonts/TTF) to the file CUPS is looking for. Thats all!! All working right.

Many thanks guys!!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1011s ][ Queries: 12 (0.0485s) ][ GZIP on ]