Printing is a process for reproducing text and image, typically with ink on paper, using a printer or a printing press.

learn more… | top users | synonyms

10
votes
3answers
533 views

syntax_highlight <source_file> | lpr

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer? As the wording of the ...
9
votes
3answers
5k views

Is there an alternative to CUPS?

When printing with Linux is there an alternative to using CUPS? After using it for a couple of weeks printing suddenly stopped working. The 'processing' light would come on and that would be the end. ...
9
votes
5answers
2k views

How to merge 2 PDF files with interleaving pages order?

I've got a double-side-printed multipage document to scan with a linear bulk scanner. So, as the result I get 2 PDF files: one containing all odd pages and the second containing all even pages. I need ...
9
votes
2answers
405 views

Using a shell script as a virtual printer

I have a shell script that takes a PDF file as an argument and prints it with additional printer specific options. How can I add this script as a virtual printer that can be selected from the GUI? ...
9
votes
3answers
7k views

Mount printers at /dev/usb and still use CUPS

Due to a new version of CUPS, I suddenly lost the direct path to my printers that was previously available under /dev/usb/lpXXX. I used this to print directly from the command line. echo "test" > ...
9
votes
3answers
2k views

CUPS remote printer entry is stopped locally

My local CUPS daemon on my laptop has an entry for a remote printer on my CUPS server. My local CUPS daemon thinks this printer is stopped, but it's not. The only interface CUPS gives me to manage ...
8
votes
3answers
3k views

How can I print well formatted code

Similar to using markdown on Stack Overflow to create monospace output, how can I do that for my programs. I tried lp filename.txt and was pleasantly please to find that it was able to use the local ...
8
votes
1answer
3k views

How to print from iPad to CUPS?

I would like to print from an iPad2 to the office printer running on CUPS. After following a couple of cookbook style cheat sheets, printing from the iPad still does not work. the iPad sees the ...
7
votes
2answers
2k views

Pretty print mails from mutt?

I know that I can configure a print command in Mutt via .muttrc, e.g.: set print=ask-yes set print_command="..." But what print command should I use for pretty printing? Well, a2ps output seems a ...
7
votes
1answer
3k views

Do any “All In One” Printer/Scanners work on Linux?

Mod note: The entire network is pretty against shopping recommendation questions; there was an attempt to edit this one to avoid it, but it seems to have failed. The goal is "how do I decide which ...
6
votes
1answer
622 views

CUPS - install once, use another printer (of the same model) without re-configuring problem

For example I have "HP 1020 LaserJet" local USB printer successfully installed on a CUPS. It uses one connection. If I get another HP 1020 LaserJet printer it wouldn't print, I am having to modify ...
6
votes
3answers
2k views

Print an SVG from the command line

How can I print an SVG, already scaled to a4 size, from the command line? I tried using lpr, but instead the printer just printed out the actual XML of the file, which isn't what I wanted.
6
votes
2answers
3k views

What is “Print to File” and can it be used from command line?

When you select "Print to File" in a Gnome print dialog (not cups-pdf): ... what is the actual command that gets executed? (I'm interested in the postscript variant, as on the image) On the other ...
6
votes
2answers
2k views

How to print file with the PCL escape sequences?

I have CUPS and use a program that produces the raw PCL format of the document I want to print. I have no problem printing a plain text file as lp filename but when I give a file that has PCL or ...
6
votes
3answers
5k views

printing problems with DDST (aka PCL6) printer RICOH Aficio SP C240DN

I'm having big problems printing on a RICOH Aficio SP C240DN (a color laser printer). CUPS/OpenPrinting doesn't have a driver for exactly this printer. There are similar numbers but not 240DN. It ...
5
votes
3answers
3k views

How to print specific pages from the command line?

Is there a way to send a PDF file (or files) to the printer via the command line, but print only, say, odd-numbered pages? E.g., lpr -{some option} *.pdf Or perhaps {some command to get odd-numbered ...
5
votes
1answer
8k views

How can I set up a usb printer as a network printer using a linux server?

Basically right now I have a USB only printer, it's very nice. There are 5 people in my household and we all are constantly wanting to use the printer. Windows has a built in way to share the ...
5
votes
3answers
672 views

How to print (part of) a man page?

The question is: how do you print only part of a man page? Currently I do zcat manpage.1.gz | vim - and just remove everything I don't want to print. Then I pass that through groff and lpr. Are there ...
5
votes
1answer
224 views

Printing webpage using browser via CLI

I want to automate printing. From URL in text file, the webpage is printed. I have tried using wget and the results are very inferior than when printed via browser. Somehow FF and Chromium both manage ...
5
votes
1answer
2k views

Duplex printing options using lp or lpr

The default options for a Brother MFC-9340CDW printer, are reportedly (e.g. querried via lpoptions -l) set to: PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6 EnvDL EnvC5 Env10 ...
5
votes
1answer
492 views

SCO Unix run interactive script when sending a print job

I'm working with (read, "around") a proprietary ERP system on top of SCO Unix. It has several "query at print time" reports where you can assign a printer to send your job to. You usually input ...
5
votes
1answer
70 views

Is there a tool or method for magnifying existing PostScript or PDF files for printing - not just for display

Almost all my printing, including web pages and emails works fine and has done so for years, but ... When I print web pages and emails, I routinely run into a few that print in something like 1 point ...
5
votes
1answer
354 views

How to print password protected pdf with cups from command line?

I have a *.pdf file that is password protected. I have the password and I can view the pdf with mupdf. However, printing with CUPS via lpr -P PRINTERNAME *.pdf does not work. All my printing is done ...
5
votes
2answers
5k views

Ricoh Aficio SP 100su E

After installing a Ricoh Aficio SP 100su E printer (it does scanning as well), I've tried a tenth of the GDI and PCL (5e/6) generic and Ricoh drivers without any success. I've learned from Ricoh that ...
5
votes
2answers
428 views

How to control the page parameters (margins, brochurisation) of `man -t` PostScript output?

I want to print several man pages as several booklets. I need to tweak the output of the man -t command so the resulting PostScript file will have the brochurised page numbering, pages must be ...
5
votes
1answer
2k views

Dot Matrix printer setup in Debian

I am using Debian which is similar to Ubuntu. They have 7 dot matrix printers, some of which are very old (example), which have worked since 1979 and are faster than many inkjets at printing text. ...
5
votes
1answer
2k views

Why is the printer reversing black and white?

I'm printing documents and images to a Samsung ML1630. It used to work fine, but now it prints white instead of black, black instead of white. Text documents come out white text on solid black ...
4
votes
2answers
855 views

How to change default “reading” program?

right now when I run man smth or similar less is used to view it. However, on Mac OS X, I really like scrolling with touchpad instead on up/down or page-up/page-down buttons. Is there a way to just ...
4
votes
4answers
3k views

How can I print half of a page to a pdf file?

I have a one page PDF file with scanned documents. I need to send only top half of this document to someone. How can I generate a new PDF document with only the top half of the original page, without ...
4
votes
2answers
2k views

Do CUPS clients need to have drivers installed locally?

If I use CUPS, should clients have drivers installed locally? Example: say we have 1 Networked PC with Linux, 1 Print Server (or CUPS, Samba Print server) If the Linux PC wants to print a document ...
4
votes
2answers
5k views

Don't require root to add printers

When a user wants to add a new printer it's asking for a root password. I have an LTSP environment and the system is asking for a root password all the time; it's not asking even for a sudo'ed user's ...
4
votes
2answers
5k views

How do I make “black&white” the default?

When I print something (Firefox 5 but also other apps), the option "color" is always set to "Color (CMYK)". How do I make "monochrome" or "black & white" the default? This is a Kyocera FS-C5100DN ...
4
votes
1answer
6k views

“Filter failed” from hplip

Problem Description - Unable to print Device name : HP LaserJet M1005 MFP USB printer OS : Linux 3.8.13-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux Error Description : Cups is working well and ...
4
votes
1answer
127 views

Printing Latex source with a2ps

When I try to print out latex source code with a2ps somefile.tex I get error messages from egrep like egrep: Das Ende des angegebenen Intervalls ist nicht gültig which translates to "the end of ...
4
votes
2answers
956 views

Zathura: how to print specified pages

I would like to print some pages from a large pdf file within Zathura (typically the current, or a range of pages). What is the syntax to do that? Edit: The solution was quite obvious... By the ...
4
votes
2answers
181 views

printing .cpp file from command line using emacs

The goal is to print a set of *.cpp files on a network printer, but... in a way that the (color) printer prints the files like they appear in the c++ editor including the colors and highlighting. And ...
4
votes
2answers
3k views

Shellscript to print a directory tree and files's contents with a nice presentation

I'm trying to write a shellscript which prints a tree-view for a specific directory and it's subdirs to pdf via latex, as well as the titles and contents of all scripts contained within that primary ...
4
votes
1answer
2k views

How to print from remote over SSH to local LAN printer?

OK, so it is fairly straight forward to to run apps from a remote server on my local X screen as though they were local apps. The question is, when trying to print, the remote app only sees printers ...
4
votes
1answer
403 views

Epson Stylus CX5600: Can't print

I'm using Linux Mint 11 (Katya). My printer is perfeclty recognized by the OS and I can configure it without problems. But when I try to print anything, both the printer's power led and error led ...
4
votes
1answer
26 views

Can I print to a remote cupsd without installing cupsd on the client?

I have a networked printer, a cups server and several desktops all having the cups daemon running. This setup works but has an annoyance that if something won't print, the user has to check two print ...
4
votes
1answer
65 views

Forward all print jobs to one printer on CUPS server

Is there a way to send all print jobs sent to a CUPS server to a specific printer? Say printer 1 is out of service, but printer 2 in the next room is working. Can I have CUPS forward print jobs sent ...
3
votes
1answer
644 views

Stop printer jobs from terminal

I am working with an old CentOs version (5.0) that is not really my machine. Recently, for some dark reasons, I have problems in printing. The jobs rest in queue, and I cannot cancel them from the ...
3
votes
2answers
1k views

Printing a file from local computer using printer connected to remote server

On the remote server, I use lp command to print documents. I can connect to this server through SSH. How can I print a file directly from my local computer using that printer?
3
votes
5answers
3k views

convert single-page landscape pdf into rescaled double-page portrait pdf

I'm having trouble using convert to do the following: I have a bunch of single-page pdf files whose geometry corresponds to a landscape A4 sheet. The actual content is visually split in 2 pages. ...
3
votes
2answers
433 views

How to switch HP printer from CDROM mode to Printer/Scanner mode

I have an HP multifunction printer/scanner M1123 MFP. I installed the latest hplip that should support it and also hp-plugin. However, when I plug the device in, I only see a CDROM detected in dmesg. ...
3
votes
1answer
2k views

Connect Windows printer to Linux machine via samba

How can I connect my Windows printer to a Linux (RHEL5) box via samba? I'm looking for a clear configuration file
3
votes
1answer
292 views

Specify MIME type to CUPS's lpr command

It seems when you pass a file to lpr (or pipe to it), it attempts to guess the MIME type. Sometimes, however, it guesses wrong—and then attempts to print something "interesting" at best. Is there a ...
3
votes
2answers
2k views

How to print several files at the same time using lpr?

I am trying to print a number of files from shell using lpr. I enter something like: lpr -P PRINTERNAME ./*/dir/file.pdf but I get "lpr: No file in print request.". When I use ls as ls ...
3
votes
1answer
4k views

CUPS gives 'Unable to open the initial device, quitting' when printing to network printer

I am trying to print over Wi-Fi to an HP Photosmart D110 printer which is successfully recognized by CUPS. But I only get a sheet with the error message Unable to open the initial device, quitting. ...
3
votes
3answers
3k views

Can (CUPS) ppd files for Mac OS X be used for linux?

I am looking at buying a printer (actually an all-in-one I prefer for the features it provides, but I want to focus on the printer part here) which does not provide linux drivers, but does provide Mac ...