aboutsummaryrefslogtreecommitdiff
path: root/documentation/content/pl/books/handbook/printing/_index.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/content/pl/books/handbook/printing/_index.adoc')
-rw-r--r--documentation/content/pl/books/handbook/printing/_index.adoc56
1 files changed, 28 insertions, 28 deletions
diff --git a/documentation/content/pl/books/handbook/printing/_index.adoc b/documentation/content/pl/books/handbook/printing/_index.adoc
index fe61205e9c..fb6216a61a 100644
--- a/documentation/content/pl/books/handbook/printing/_index.adoc
+++ b/documentation/content/pl/books/handbook/printing/_index.adoc
@@ -56,7 +56,7 @@ Basic printing can be set up quickly. The printer must be capable of printing pl
****
. Create a directory to store files while they are being printed:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -102,7 +102,7 @@ lpd_enable="YES"
+
Start the service:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -110,7 +110,7 @@ Starting lpd.
+
. Print a test:
+
-[source,bash]
+[source,shell]
....
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
....
@@ -123,7 +123,7 @@ If both lines do not start at the left border, but "stairstep" instead, see <<pr
+
Text files can now be printed with `lpr`. Give the filename on the command line, or pipe output directly into `lpr`.
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -239,14 +239,14 @@ Descriptions of many PDLs can be found at http://www.undocprint.org/formats/page
For occasional printing, files can be sent directly to a printer device without any setup. For example, a file called [.filename]#sample.txt# can be sent to a `USB` printer:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
Direct printing to network printers depends on the abilities of the printer, but most accept print jobs on port 9100, and man:nc[1] can be used with them. To print the same file to a printer with the `DNS` hostname of _netlaser_:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -263,7 +263,7 @@ FreeBSD includes a spooler called man:lpd[8]. Print jobs are submitted with man:
A directory for storing print jobs is created, ownership is set, and the permissions are set to prevent other users from viewing the contents of those files:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -296,7 +296,7 @@ lp:\ <.>
After creating [.filename]#/etc/printcap#, use man:chkprintcap[8] to test it for errors:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -312,7 +312,7 @@ lpd_enable="YES"
Start the service:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -322,7 +322,7 @@ Start the service:
Documents are sent to the printer with `lpr`. A file to be printed can be named on the command line or piped into `lpr`. These two commands are equivalent, sending the contents of [.filename]#doc.txt# to the default printer:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -330,7 +330,7 @@ Documents are sent to the printer with `lpr`. A file to be printed can be named
Printers can be selected with `-P`. To print to a printer called _laser_:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -396,7 +396,7 @@ CR=$'\r'
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -425,7 +425,7 @@ Create [.filename]#/usr/local/libexec/enscript# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -456,7 +456,7 @@ Create [.filename]#/usr/local/libexec/ps2pcl# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -472,7 +472,7 @@ Modify [.filename]#/etc/printcap# to use this new input filter:
Test the filter by sending a small PostScript(R) program to it:
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -508,7 +508,7 @@ esac
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -568,7 +568,7 @@ man:lpq[1] shows the status of a user's print jobs. Print jobs from other users
Show the current user's pending jobs on a single printer:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -577,7 +577,7 @@ Rank Owner Job Files Total Size
Show the current user's pending jobs on all printers:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -596,7 +596,7 @@ man:lprm[1] is used to remove print jobs. Normal users are only allowed to remov
Remove all pending jobs from a printer:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -609,7 +609,7 @@ cfA004smithy dequeued
Remove a single job from a printer. man:lpq[1] is used to find the job number.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -627,7 +627,7 @@ man:lpc[8] is used to check and modify printer status. `lpc` is followed by a co
Show the status of all printers:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -644,7 +644,7 @@ laser:
Prevent a printer from accepting new jobs, then begin accepting new jobs again:
-[source,bash]
+[source,shell]
....
# lpc disable lp
lp:
@@ -656,7 +656,7 @@ lp:
Stop printing, but continue to accept new jobs. Then begin printing again:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -669,7 +669,7 @@ lp:
Restart a printer after some error condition:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -680,7 +680,7 @@ lp:
Turn the print queue off and disable printing, with a message to explain the problem to users:
-[source,bash]
+[source,shell]
....
# lpc down lp Repair parts will arrive on Monday
lp:
@@ -690,7 +690,7 @@ lp:
Re-enable a printer that is down:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -717,14 +717,14 @@ lp|repairsprinter|salesprinter:\
Aliases can be used in place of the printer name. For example, users in the Sales department print to their printer with
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Users in the Repairs department print to _their_ printer with
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....