Puppy 5.20 PDF printing error (semi-solved -- strange bug)

Please post any bugs you have found
Post Reply
Message
Author
User avatar
jon4t2
Posts: 11
Joined: Wed 24 Feb 2010, 13:08
Location: Kent, Ohio

#16 Post by jon4t2 »

Roy wrote: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
Roy's fix works again!

Thanks!

User avatar
wuwei
Posts: 800
Joined: Sat 15 Sep 2007, 11:59
Location: formerly de; now in tranquility

#17 Post by wuwei »

Roy wrote:
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).
Careful....!

At least in Wary 511 this fix causes gdmap to crash.

This instruction, however, works in Wary without affecting gdmap:

rcrsn51:
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.

night_mare007
Posts: 30
Joined: Sun 07 Aug 2011, 17:13

#18 Post by night_mare007 »

rcrsn51 wrote:Try this:

Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is

Code: Select all

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.
On Puppy Lucid 5.25 ( Macpup 5.25 ) this solution solve the problem.
I even made It better...
dosn't just change your user name to your current but change it to the letter "1"... so no matter what's your puppy user name - it will work always.
so you need to have this line look like this:

Code: Select all

PUPPY_LINUX=`uname -a | grep -ic 1`
after the change, save, and restartX.

that's it.

theinfamousj
Posts: 88
Joined: Sun 03 Sep 2006, 12:54

THANK YOU!

#19 Post by theinfamousj »

rcrsn51 wrote:Try this:

Go to /usr/lib/cups/backend and open the file pdf-writer. Line 69 is

Code: Select all

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.
I just wanted to let you know that you are a life-saving genius. I have never been able to get the CUPS PDF to work with any Puppy install I have ever done, and this is both the reason and the fix. Oh to be able to print to PDF without having to do a Print to File thing. Happiness. :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

Why did you change the host name in the first place?

Post Reply