AppArmor & cups-pdf issues PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Bart Dorlandt   
Monday, 22 June 2009 14:10

I had been struggling with this some time. Always needed to print to PDF from, for example, firefox, but never had the time to figure out what was going wrong.

Well, it was time to write it down once and for all.

The way people say to do this is to remove the apparmor package, which is installed by default. I find it a bit harsh, because I believe the ubuntu team didn't put the package in without a reason.

So here is the way to do it, without removing the AppArmor package.

sudo apt-get install cups-pdf
sudo chmod +s /usr/lib/cups/backend/cups-pdf

Now, to make sure you can write to your own home-directory/PDF use this command that will pypass the AppArmor instance.

sudo aa-complain cupsd

If you want to change the default output directory, you may do so in /etc/cups/cups-pdf.conf. Look for the line that start with "Out".

 


Related items: