[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slackbook:printing [2012/09/09 02:38 (UTC)] – [Printing from the Command Line] added original text mfillpotslackbook:printing [2012/12/29 21:58 (UTC)] (current) – [Getting the driver] escaflown
Line 35: Line 35:
  
  
-  - Postscript printers use the unversal-ish language of Postscript to communicate with computers.  A driver for postscript printers is usually not needed, since a postscript-compatible subsystem called **//Ghostscript//** is already installed.+  - Postscript printers use the universal-ish language of Postscript to communicate with computers.  A driver for postscript printers is usually not needed, since a postscript-compatible subsystem called **//Ghostscript//** is already installed.
   - Gutenprint are drivers engineered by GNU Linux developers. It provides support for roughly 700 printers.   - Gutenprint are drivers engineered by GNU Linux developers. It provides support for roughly 700 printers.
   - Manufacturers may provide Linux drivers for their printers. Find out by going to the manufacturer's driver and support website and searching for your model.   - Manufacturers may provide Linux drivers for their printers. Find out by going to the manufacturer's driver and support website and searching for your model.
Line 43: Line 43:
  
  
-  - Ordered List ItemFor the manufacturer's drivers, installation is usually the same as any other software on your system; use **//installpkg//** or **//rpm2tgz//** to install the driver package. Be sure to read the documentation bundled with the drivers.+  - For the manufacturer's drivers, installation is usually the same as any other software on your system; use **//installpkg//** or **//rpm2tgz//** to install the driver package. Be sure to read the documentation bundled with the drivers.
   - For Postscript printers, there is no "installation" as such; simply download the appropriate ''PPD'' file and keep it in a sensible location on your hard drive.   - For Postscript printers, there is no "installation" as such; simply download the appropriate ''PPD'' file and keep it in a sensible location on your hard drive.
  
Line 67: Line 67:
  
  
-<code>+<file>
  
 <Printer r1060> <Printer r1060>
Line 89: Line 89:
 ErrorPolicy stop-printer ErrorPolicy stop-printer
 </Printer> </Printer>
-</code>+</file>
  
  
Line 106: Line 106:
 <code> <code>
  
-darkstar:~# <command>lpinfo -m | grep 1060</command>+darkstar:~# lpinfo -m | grep 1060
 </code> </code>
  
Line 114: Line 114:
  
  
-<code>+<file>
  
 gutenprint.5.2://brother-hl-1060/expert Brother HL-1060 - CUPS+Gutenprint v5.2.6 gutenprint.5.2://brother-hl-1060/expert Brother HL-1060 - CUPS+Gutenprint v5.2.6
 gutenprint.5.2://ricoh-afc_1060/expert Ricoh Aficio 1060 - CUPS+Gutenprint v5.2.6 gutenprint.5.2://ricoh-afc_1060/expert Ricoh Aficio 1060 - CUPS+Gutenprint v5.2.6
-</code>+</file>
  
  
Line 224: Line 224:
 ==== Formatting for Print ==== ==== Formatting for Print ====
  
 +**//lpr//**, like so many other UNIX
 +applications, does one thig: sends files to a printer. It
 +doesn't much care if the file looks good or even fits on a
 +page. When printing large text files that have not been
 +formatted for print, use **//pr//**(1).
 +
 +
 +**//pr//** is a simple text formatter that
 +takes any text document and makes sure that it contains line
 +breaks and page breaks, with an optional header and footer, page
 +numbering, and much more. It has many options, but the defaults
 +are usually good enough. **//pr//** outputs
 +the results of the formatting to standard out, meaning it simply
 +takes the text document, formats it, and displays the results in
 +the terminal.  This, of course, means that it can be redirected
 +to **//lpr//**:
 +
 +
 +<code>
 +darkstar:~$ pr foo.txt | lpr
 +</code>
 +
 +  
 +This will format ''foo.txt'' and send the
 +formatted output to the default printer.
 +
 +
 +As usual, see the **//pr//** man page for a
 +list of the customizations you can make to the default formatting.
 ====== Chapter Navigation ====== ====== Chapter Navigation ======
  
Line 233: Line 262:
 ====== Sources ====== ====== Sources ======
 <!-- If you copy information from another source, then specify that source --> <!-- If you copy information from another source, then specify that source -->
- * Original source: [[http://www.slackbook.org/beta]] \\+  * Original source: [[http://www.slackbook.org/beta]] \\
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
- * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson+  * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson
 <!-- * Contrbutions by [[wiki:user:yyy | User Y]] --> <!-- * Contrbutions by [[wiki:user:yyy | User Y]] -->
  
 slackbook:printing ()