Page 1 of 1

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 1:00 pm
by altair4
Welcome to the wacky world of Print_to_pdf.

It goes to /home/username (/home/taebek for example) . If anyone knows how to change this default location I'd love to hear about it.

Now here's an interesting point. Instead of using Print_to_PDF use Print to File. When you select that you are given the option to change the output format from postscript to PDF. It will also give you the option of saving it wherever you choose.

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 3:57 pm
by garda
It goes to /home/username (/home/taebek for example) . If anyone knows how to change this default location I'd love to hear about it.
Enter this in a Terminal window:

Code: Select all

gksu gedit /etc/cups/cups-pdf.conf
Now find a section that looks like this:

Code: Select all

### Key: Out
##  CUPS-PDF output directory 
##  special qualifiers: 
##     ${HOME} will be expanded to the user's home directory
##     ${USER} will be expanded to the user name
##  in case it is an NFS export make sure it is exported without
##  root_squash! 
### Default: /var/spool/cups-pdf/${USER}

Out ${HOME}/Documents
Change the last line (Out ${HOME}/Documents) to whatever you like then save and close Gedit. Next, restart CUPS by executing this command:

Code: Select all

sudo /etc/init.d/cupsys restart
Sometimes CUPS may become shaky after being restarted this way. If you think it does become shaky, close all open programs then press CTRL+ALT+F1, enter your login credentials and enter these commands in console:

Code: Select all

sudo su

Code: Select all

/etc/init.d/gdm stop

Code: Select all

shutdown now
Worry not, the last command will not actually tell your computer to turn itself off. Instead, it will stop all running services and drop you to the recovery option screen in which you should choose resume normal boot. You wiill soon be thrown back to the login screen without having to go through full reboot.

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 4:36 pm
by altair4
Thanks, I'll add that to my notes. One thing though there is no service named cupsys in Mint.

sudo /etc/init.d/cupsys restart should be
sudo /etc/init.d/cups restart - I think

Or better yet sudo service cups restart - easier for someone like me to remember :)

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 4:47 pm
by garda
I do not know what version of CUPS you have installed on your system, but I do not have cups in my /etc/init.d/ directory, only cupsys. Secondly, that command:

Code: Select all

sudo service cups restart
is viable in Debian but not in Mint by default.

Edit:
I might be wrong, though, as I have slimmed my system down by removing some packages which might have caused debian-helper-scripts and sysvconfig to be purged along.

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 4:58 pm
by altair4
Don't know what to tell you, my /etc/init.d goes like this:

...
console-setup
cron
cups
dbus
...

no cupsys

I don't remember installing anything special to use the "service" command but to be honest I don't know at this moment where I put my car keys either.

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 5:01 pm
by garda
Well, I have edited my post. Again, I could be wrong.

Re: Firefox printing to CUPS PDF

Posted: Fri Feb 27, 2009 6:16 pm
by altair4
Didn't see your edit before I posted, sorry.