Page 1 of 1

Posted: Mon 28 Mar 2011, 00:19
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!

Posted: Mon 25 Apr 2011, 06:22
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.

Posted: Sat 20 Aug 2011, 13:10
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.

THANK YOU!

Posted: Wed 14 Sep 2011, 18:48
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. :)

Posted: Wed 14 Sep 2011, 19:19
by rcrsn51
Why did you change the host name in the first place?