pdq print recovery?
pdq print recovery?
I am having a problem with the pdq/xpdq package. Somehow the printrc file has been corrupted. So even if I rerun setup the 'add printer' in the xpdq program won't complete.
Any suggestions as to a workaround so I can get printing working again?
(And yes I know, use cups, but I would rather not this time around.)
TIA
Any suggestions as to a workaround so I can get printing working again?
(And yes I know, use cups, but I would rather not this time around.)
TIA
pdq problems
rcrsn51,
I just sucked a working copy of the rc file out of the directory you suggested and just redid Xpdq again. Worked like a champ!
Thanks for the suggestion.
I just sucked a working copy of the rc file out of the directory you suggested and just redid Xpdq again. Worked like a champ!
Thanks for the suggestion.
I know this thread is stoneage...
But..
I just tried to print from Xdialog and got this error
Printer sucked through a page though.. blank
hmmm......
(lupu-503)
But..
I just tried to print from Xdialog and got this error
Code: Select all
cat /etc/pdq/printrc: no such file or directory
hmmm......
(lupu-503)
Puppy Linux Blog - contact me for access
Thanks rcrsn51
I have downloaded and compiled pdq.. it's circa 2006 so I assume is no longer maintained. It compiled fine, I just need to figure out how to use.
OTOH, it might be better to compile in different printing support into Xdialog (if possible) as I am shifting to using that a lot more. In fact I think a shift to Zenity as the main bash/gtk app in Puppy may not be too far off as Xdialog and Gtkdialog are getting old.
Cheers
I have downloaded and compiled pdq.. it's circa 2006 so I assume is no longer maintained. It compiled fine, I just need to figure out how to use.
OTOH, it might be better to compile in different printing support into Xdialog (if possible) as I am shifting to using that a lot more. In fact I think a shift to Zenity as the main bash/gtk app in Puppy may not be too far off as Xdialog and Gtkdialog are getting old.
Cheers
Puppy Linux Blog - contact me for access
If you check the ./configure messages, you should see references to missing GTK. This is because pdq is a GTK1 app that was never upgraded to GTK2. This means that you don't get the xpdq frontend needed to set up a printer.
But why would you bother with pdq at all? You just need to modify the lprshell script to pass the print job on to CUPS.
But why would you bother with pdq at all? You just need to modify the lprshell script to pass the print job on to CUPS.
Hehe.. I'm not bothering with pdq.rcrsn51 wrote:If you check the ./configure messages, you should see references to missing GTK. This is because pdq is a GTK1 app that was never upgraded to GTK2. This means that you don't get the xpdq frontend needed to set up a printer.
But why would you bother with pdq at all? You just need to modify the lprshell script to pass the print job on to CUPS.
I have the Xdialog source and it has a configure option --with-print-command=cmd.. so I guess to print to default printer we use lpr "$1"... ok but I can't print a simple txt file , cups is throwing "No usable font available"
Any idea how to set that? Do I need to adjust a config?
Thanks
I'll try that firstrcrsn51 wrote:
You just need to modify the lprshell script to pass the print job on to CUPS.
The simplest thing to try would be replacing /usr/bin/lprshell with a symlink to /usr/bin/lp.
Puppy Linux Blog - contact me for access
ok... cups is still pending... need to kill job methinks
No, it's aborted now, must have timed out.
That is with lprshell removed and symlinked lprshell to lp
Thanks, but this is non-urgent. If you continue to help fine but like I said, non-urgent, I'll definitely get back to it.
Cheers
Code: Select all
Canon_MP490_series-14 (stdin) root 4k Unknown pending since
Sun Jul 25 02:36:54 2010
That is with lprshell removed and symlinked lprshell to lp
Thanks, but this is non-urgent. If you continue to help fine but like I said, non-urgent, I'll definitely get back to it.
Cheers
Puppy Linux Blog - contact me for access
Just type "Xdialog" in a term and the options get printed to screen in a big Xdialog window with 2 buttons.. OK and Print.
All it did for me was feed a sheet of paper through the machine when I clicked Print. Now it does nothing.
Cheers
EDIT My big problem now is that I can't print from command line.. but Printer works great in all apps otherwise.
Here's the full error message
That's after I made the symlink.. well it's not an error, just cups isn't handling it for me.
It's that font error now.
So... it would appear that CUPS is not accepting stdin. However printing from Nicoedit, Geany etc is all fine.
All it did for me was feed a sheet of paper through the machine when I clicked Print. Now it does nothing.
Cheers
EDIT My big problem now is that I can't print from command line.. but Printer works great in all apps otherwise.
Here's the full error message
Code: Select all
(1) This Xdialog binary compiled with: lprshell -P<printer>
as the print command. If <printer> is "" (an empty string), the -P
option is not used.
and here's what CUPS says...
request id is Canon_MP490_series-17 (0 file(s))
Code: Select all
Canon_MP490_series-17 (stdin) root 4k Unknown processing since
Sun Jul 25 03:08:20 2010
"No usable font available"
So... it would appear that CUPS is not accepting stdin. However printing from Nicoedit, Geany etc is all fine.
Puppy Linux Blog - contact me for access
Hmmm.. then it looks pqd is the answer for me then.. Thanks for all your help
I'm in lupu-503 (pfix=ram) and configured CUPS fine in Netsurf... same problem, even prints blank to pdf.
Cheers
EDIT
I'm going to have a dig around in the Nicoedit source, look for clues
I'm in lupu-503 (pfix=ram) and configured CUPS fine in Netsurf... same problem, even prints blank to pdf.
Cheers
EDIT
I'm going to have a dig around in the Nicoedit source, look for clues
Puppy Linux Blog - contact me for access
Here's a little workaround. Replace /usr/bin/lprshell with this script
Code: Select all
#!/bin/sh
cat > /tmp/out.txt
defaulttexteditor /tmp/out.txt
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.
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.
Ok
This is exactly what I did
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
This is exactly what I did
- *grabbed fonts
*extracted in /usr/share/cups/fonts/
*ran*restarted XCode: Select all
mkfontscale /usr/share/cups/fonts/ mkfontdir /usr/share/cups/fonts/
*openned /root/spot (just as an example, nothing to do with user "spot") in rox
*openned a terminal there and typed "lp README.txt"
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
Puppy Linux Blog - contact me for access
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.)rcrsn51 wrote:I just installed the FreeMono.ttf because that's what CUPS wanted. I didn't bother with the font setup commands.
NOTE: anyone downloading this it is for CUPS-1.4... Only ..and the usual disclaimers..use at own risk
Puppy Linux Blog - contact me for access