Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On ubuntu Hardy 8.04, some PDF files have printing issues - they take forever to print, all this while evince (the PDF reader) uses 100% CPU. After that, the actual print comes out very blurry and unreadable.

I usually use pdf2ps to convert them to a postscript file that prints without any issues, but that's not always the case.

In those cases when the ps come garbled, I use lpr to send the pdf directly to the printer - the problem is that I don't know how to set 2 sided printing with lpr.

I print enough PDFs for these edge cases to matter, and having this command line option will also allow me to use a script I once wrote that takes a URL as input and sends it to the printer.

Does anyone here know how to set this 2 sided printing option from the command line? man lpr shows that it has a -o=options flag, but I cannot find the relevant option for this.

share|improve this question
up vote 2 down vote accepted

A quick google search for "lpr double sided" found out this page.

 lpr -o sides=two-sided-long-edge
share|improve this answer
It works! Thank you very much! – Tzafrir Jul 31 '09 at 10:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.