Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.

Welcome to Eric Hameleers (Alien BOB)'s Wiki pages.

If you want to support my work, please consider a small donation:

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
wiki:talk:slackware:cups [2010/02/14 13:50] 84.134.2.190
Line 1: Line 1:
 +===== Discussion about printing with CUPS in Slackware =====
  
 +Hi Erik, thanks for this guide! But I got it working only after
 +I did a chmod 755 on /usr/lib/cups/backend/pdf.
 + --- Jens
 +-------------------------------------------------------
 +
 +Please leave your constructive comments on this page.\\ 
 + --- Eric
 +-------------------------------------------------------
 +
 +In Slackware 12 with CUPS 1.3.7 I found setting the pdf script to save the file did not work as expected. It appears the script is run as user lp, which cannot change the owner. Rather than remove the sticky bit, I used "sudo chown" to change the owner, of course that meant the following "chmod" failed, so I had to swap the two command. I also wanted to record the title of the pdf, so I added three lines to the script. That part of the script now looks like this: -
 +
 +
 +<code>''## Normally the PDF file will be emailed to the creating user.
 +## Alternatively, you can decide not to email it,
 +## but leave the file on the server and restrict access by others:
 +#if [ "$2" != "" ]; then
 +#  $MAILBIN $2 $OUTPUTFILENAME
 +#  rm -f $OUTPUTFILENAME
 +#fi
 +if [ "$2" != "" ]; then
 +       chmod 700 $OUTPUTFILENAME
 +       sudo chown $2 $OUTPUTFILENAME
 +# Save the title of the file
 +       echo $3 >$OUTPUTFILENAME.title
 +       chmod 600 $OUTPUTFILENAME.title
 +       sudo chown $2: $OUTPUTFILENAME.title
 +fi
 +exit 0''</code>
 +
 +Is there a better way to achieve the same results?
 +-------------------------------------------------------
 Discussion about printing with CUPS in Slackware ()
SlackDocs