| Author |
Message |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2301 Location: USA
|
Posted: Thu 27 Jan 2011, 23:33 Post subject:
Puppy 5.20 PDF printing error (semi-solved -- strange bug) |
|
OK, I have installed Puppy 5.20 (previous version was 4.3.1), and seem to have everything working except the printer. I want to print to a PDF, and nothing seems to happen.
Opening up the control panel, I see:
| Code: | CUPS-PDF-7 Jobs - CUPS 1.4.3 root 136k Unknown canceled at
Sat Jan 29 02:21:58 2011
"/usr/lib/cups/filter/cpdftocps failed" |
It's also curious that the date/timestamp is in the future (it's Jan 27 right now...)
I did several searches, but find no such errors for 5.20. Has anyone else seen this? Is there some simple adjustment I need to make?
Trying "pdf-writer" seems to produce no output, which is also strange:
| Code: | pdf_writer-8 Jobs - CUPS 1.4.3 root 136k Unknown completed at
Sat Jan 29 02:21:52 2011 |
_________________ Wellminded Search
Add swapfile
Last edited by RetroTechGuy on Sat 29 Jan 2011, 01:10; edited 1 time in total
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Thu 27 Jan 2011, 23:52 Post subject:
|
|
I just did a fresh frugal install of Lupu 520 and both PDF writers worked fine. What else have you installed?
|
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2301 Location: USA
|
Posted: Fri 28 Jan 2011, 00:10 Post subject:
|
|
| rcrsn51 wrote: | | I just did a fresh frugal install of Lupu 520 and both PDF writers worked fine. What else have you installed? |
Firefox and the "mg" editor from Debian (I had this latter in 4.3.1). Oh, and I placed tclkit in /usr/local/bin/
Update: I wondered if some of the Firefox plugins were causing the problem, but the same non-print occurs when I try it from Geany.
_________________ Wellminded Search
Add swapfile
|
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2301 Location: USA
|
Posted: Sat 29 Jan 2011, 01:04 Post subject:
|
|
Update #2.
I booted booted to RAM (no lupusave), and before installing anything at all, tried printing both to CUPS-PDF and pdf_writer. Neither produced an output -- neither asked for a filename...
checking the job status shows pdf_writer as "completed", and CUPS-PDF as "failed".
Again, the dates on each job is shown about 48 hours in the future...
Update #3: OK, now this is REALLY, REALLY, REALLY SILLY...
What apparently broke the printer was changing the Hostname from "puppypc" to something else.
Now why would this name make any difference to the local PDF "printer"?
I guess that what remains to be seen is whether naming every computer on my network "puppypc" will cause issues...
Update#4: Booting up my previously fully configured and working lupusave (but with broken printer), I edited /etc/hostname and changed the name back to puppypc. Rebooted and reloaded this lupusave, and now the printer works...
Is the printer hard wired to look for that hostname, and thus a name change breaks the path?... What gives?
_________________ Wellminded Search
Add swapfile
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Sat 29 Jan 2011, 03:35 Post subject:
|
|
makes sense, since they're just human readable addresses
|
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2301 Location: USA
|
Posted: Sun 30 Jan 2011, 11:30 Post subject:
|
|
| jpeps wrote: | | makes sense, since they're just human readable addresses |
It doesn't make sense to me...
It would be like having a working Chevy truck, and as soon as I put a Ford sticker on it, the wheels all fall off...
I would not expect the machine (or more relevantly, the local machine) to care what you call the local machine, for tools in the local machine to work.
It seems that the PDF printers somehow only want to print on the machine "puppypc", and could not "print to PDF" on the exact same hardware, if that machine were called "jpeps"...
_________________ Wellminded Search
Add swapfile
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Sun 30 Jan 2011, 12:16 Post subject:
|
|
| RetroTechGuy wrote: | | What apparently broke the printer was changing the Hostname from "puppypc" to something else.Now why would this name make any difference to the local PDF "printer"?Is the printer hard wired to look for that hostname, and thus a name change breaks the path?... What gives? |
This issue came up a while ago. There is some code in the pdf-writer backend that is tied to the hostname. There are some work-arounds, but I've forgotten. I'll get back to you on this.
Why do you need to change the hostname?
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Sun 30 Jan 2011, 12:30 Post subject:
|
|
Try this:
Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is
| Code: | | PUPPY_LINUX=`uname -a | grep -ic puppy` |
Change "puppy" to the new hostname. Don't accidentally delete the final back-tick character.
I'm not sure why the code was written that way. It appears to have something to do with remote printing.
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Sun 30 Jan 2011, 16:19 Post subject:
|
|
I think hostnames are connected to local IP addreses and other identifiers that provide maps to/for the local device.
|
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2301 Location: USA
|
Posted: Tue 01 Feb 2011, 12:13 Post subject:
|
|
| rcrsn51 wrote: | Try this:
Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is
| Code: | | PUPPY_LINUX=`uname -a | grep -ic puppy` |
Change "puppy" to the new hostname. Don't accidentally delete the final back-tick character.
I'm not sure why the code was written that way. It appears to have something to do with remote printing. |
Thanks rcrsn51, I'll give it a try in a few days (not at the machine I was testing).
I'm currently working on migrating all my computers to Lupu 520 (and just LinNWin-ed my XP laptop, which is working fine!)
_________________ Wellminded Search
Add swapfile
|
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1318 Location: Maine, USA
|
Posted: Fri 11 Feb 2011, 16:12 Post subject:
|
|
| Quote: | Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is
Code:
PUPPY_LINUX=`uname -a | grep -ic puppy`
|
Looking at that code, I see that PUPPY_LINUX is used only to identify running in a puppy environment, versus any other distro. A bit tricky, to me, with an unintended consequence. Here is another way to set it to indicate running in puppy: | Code: | [ ! -f /etc/rc.d/PUPSTATE ]
PUPPY_LINUX=$?
| I have not tested pdf-writer with this, but those who are already modifying the script might try it. (I tested in a console.) The variable is set to "1" for puppy, otherwise zero -- the later test is for zero.
Barry might have a "standard" way to identify that a distro is a puppy, but this is what came to mind right now.
Richard
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7019 Location: qld
|
Posted: Fri 11 Feb 2011, 18:56 Post subject:
|
|
That looks ok to me rerwin.. but the question in my mind is.. why even have that test at all? It is obvious the script is heavily modded for Puppy.
Cheers
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
Roy
Joined: 31 Dec 2008 Posts: 436
|
Posted: Sat 12 Feb 2011, 00:50 Post subject:
|
|
If I remember correctly, the work-around or fix for creating (printing to file) a .pdf document with a changed host name was to add a blank file named .Xauthority to root (the period before the file name indicating that it is a hidden file).
-Roy
|
|
Back to top
|
|
 |
wuwei

Joined: 15 Sep 2007 Posts: 739 Location: de
|
Posted: Sat 26 Mar 2011, 08:19 Post subject:
|
|
Yep
reporting the exact same problem on luci257.
Changed hostname and pdf printer didn't work anymore.
Thanks to rcrsn51, it's up and running again.
And....Roy's recommendation works, as well (after undoing rcrsn51's).
Thanks to both!
Why change hostname?
With 5 frugal Puppies on one machine, try Xmarks addon in Firefox. You won't be amused about the screw-ups there.
|
|
Back to top
|
|
 |
charlie6
Joined: 30 Jun 2008 Posts: 802 Location: South of Belgium
|
Posted: Sun 27 Mar 2011, 04:45 Post subject:
Subject description: tested on puppy-4.20-Xtreme |
|
@rcrsn51!
in puppy 4.20 I edited /usr/lib/cups/backend/pdf-writer
Before editing I had regularly non-working-pdf-writer with an error message as mentionned by forum member Retro TechGuy.
| rerwin wrote: | Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is
Code:
PUPPY_LINUX=`uname -a | grep -ic puppy`
|
I commented that line (Nr 78 in puppy-4.20-Xtreme) and added afterwards lines 79 and 80 as (copy + paste):
| Code: | [ ! -f /etc/rc.d/PUPSTATE ]
PUPPY_LINUX=$?
|
Now it seems it works.
Thanks to all !
Cheers, Charlie
|
|
Back to top
|
|
 |
|