9 Debian Printing (CUPS) : 14 Installation
9 Debian Printing (CUPS) : 14 Installation
Contents
1 Debian Printing (CUPS)
11 Installation
1! "## Printer
1$ E%am&le' kyo(era &rinter
1) Printer Stat*s
1+ Print to a PDF
! ,o Printer Dri-ers
11 .rother
1! Canon (PPD)
1$ /P
1) 0yo(eramita (PPD)
$ "lternati-e "*tomati( Con1ig*ration
11 system-(on1ig-&rinter (1ormally 2&rint(on12)
1! /P &rinter set*& 3ith 2h&-set*&2
) Printer Sharing
11 CUPS as Print Ser-er 1or 4in#o3s 5a(hines
1! CUPS an# Samba
1$ Printer sharing *sing 5a(intosh as the (lient an# Debian as the ser-er
+ Printing Pi(t*res
6 7ther &rinting Systems
8 E%ternal links
9
9 Debian Printing (CUPS)
1:
11 0ey3or#s: ;in*% Printing' Debian' (*&s system' /P ;in*% an# Image so1t3are' Install'
"## ' Change Printers' Print Ser-er
1! The Common U,I< Printing System (or CUPS) is a &rinting system an# general
re&la(ement 1or l&# an# other ol#er systems The CUPS Debian &a(kages 1orms a ni(e'
&o3er1*l an# relati-ely easy to *se &rinting system on Debian (htt&:==333(*&sorg=)
1$
14 Installation
1+
Install So1t3are:
aptitude update
aptitude install cups cups-client
/etc/init.d/cups start
Add Printer
http://localhost:631/
>7PTI7,";?I1 yo* are in ser-er en-ironment an# yo* #o not ha-e a bro3ser like
Fire1o%' yo* 3ill nee# to install a te%t bro3ser like lyn% or elinks
or
aptitude install elins
,o3 go 3ith the te%t bro3ser to the same a##ress as s&e(i1ie# be1ore
elins http://localhost:631/
Follo3 the instr*(tions yo* see on the s(reen Set the #e1a*lt &rinter
Ty&e in:
elins http://localhost:631/
Name: kyocera9520
Location: Back Room
Description: High output printer
Cli(k Continue
Cli(k on !AppSocket/HP JetDirect
I1 yo* ha-e a net3ork &rinter that yo* (an #ire(tly &rint to' sele(t:
socet://hostna&e:'1((
Then sele(t Make.Then Mode. !" #our mode is not there, #ou can tr# pickin$
simiar printer num%er/dri&er and it shoud work.
4hen #one go ba(k to original men* Cli(k on Set De"aut Printer
Done "nything belo3 is o&tional
Printer Stat"s
lpstat -r
lpstat -d
Printer B*e*e
lp)
Print to a PD#
Co* may not ha-e a &hysi(al &rinter b*t nee# to get a #o(*ment rea#y to &rint then yo*
(o*l# to a PDF 1ile
First yo*2ll nee# to install (*&s- by r*nning the 1ollo3ing:
aptitude install cups-pd*
7n(e (om&lete# yo* nee# to set*& the &rinter in Dnome as 1ollo3s Do to:
+yste&--, -d&inistration--, "rintin.
This 3ill bring *& a list o1 &rinters an# in here yo*2ll see an i(on "## Printer
,o3 1ollo3 the ste&s as #e1ine# belo3:
+elect /!ocal "rinter/ and use a /detected printer --, "#0
printer/.
1anu*acturer --, 2eneric3
1odel --, postscript color printer re453
#ri4er --, +tandard
-pply
CUPS Administration
CUPS (an also be a#ministere# -ia its 3eb inter1a(e (htt&:==lo(alhost:6$1) Co* 3ill be
aske# 1or the root *ser login an# &ass3or#
"ny other setting (an be #one thro*gh the easy 3eb inter1a(e or *sing a &rint settings
&rogram as root:
http://localhost:631/
$o Printer Dri%ers
5ost o1 the more (ommon &rinter sho*l# alrea#y ha-e #ri-ers in (*&s system For the
ne3er or more (ommer(ial on(e see the man*1a(t*re 3ebsite Co* sho*l# look 1or the
PPD 1ile o1 yo*r &rinter mo#el The PPD 1ile #es(ribes the (a&abilities o1 the &rinter For
a (om&rehensi-e re-ie3 an# #atabase o1 &rinter mo#els' #ri-ers an# PPD 1iles see
htt&:==333lin*%&rintingorg
&rot'er
(*&s3ra&&er #ri-er
Canon (PPD)
h&-set*& is in(l*#e# 3ith /P ;in*% Imaging J Printing &roEe(t &a(kage h&li& an#
&er1orms set*& o1 US.' &arallel' an# net3ork &rinters an# "ll-in-7nes ,et3ork &rinters
are a*tomati(ally #ete(te# -ia mD,S (aka .onEo*r on 5a(s) Using h&-set*& to install
&rinter also enables h& *tilities 1or (he(king ink=toner le-el an# &rinter maintenan(e @*n
2hp-check -r' to troubleshoot printing or scanning issues.
Printer Sharing
This will listen on port 49631 from any network. You may use
some other port number besides 631. Note that the dynamic
and/or private ports as specified by the I"," are in the range
)K1+! thro*gh 6++$+ "lso' this 3ill only allo3 (om&*ters 1rom the lo(al net3ork to
&rint to the CUPS &rinters
,e%t' restart the CUPS #aemon
6 /etc/init.d/cups restart
,o3 on ea(h 4in#o3s ma(hine' Choose that yo* 3ant to install a net3ork &rinter an#
that yo* 3ant to install a &rinter on the Internet or home=o11i(e net3ork The U@; yo*
3ill *se sho*l# be:
http://7cups8ser4er8hostna&e,:5'631/printers/7printer8na&e,
Co* ha-e a &rinter on a #ebian ma(hine an# yo* 3ant to share it 3ith a 5a(intosh' so
that the 5a( (an &rint to the Debian-base# &rinter Try this:
1 Use (*&s to set *& the &rinter on Debian as #es(ribe# abo-e The Dnome tool 1or
&rinter (on1ig*ration 3orks 3ell' an# the 1::L b*llet-&roo1 3ay is to *se the bro3ser-
base# CUPS (on1ig*ration
! 7n the 5a( (7S < 1:)M) start Print and Fax from
System Preferences. Use the + button to add a printer.
3. Look first in the "Default" tab. If the automagic
printer-sharing has worked, and your Mac is connected to the
local network properly, then the Debian-based printer should
already be visible in the list. Just select it and use the
recommended print driver. Your results may vary but you
can't go to far wrong if you pick a driver that matches the
one you are using on Debian. So, for example, you might like
to try using Gutenprint drivers at both ends.
4. If your printer is not visible in the Default tab, then
try adding it on the "IP" tab. Pick IPP as the protocol,
give the plain IP address of the server in the address box,
and in the Queue box put "printers/<debian-queue-name>". Put
whatever helps you identify the printer in the Name and
Location boxes, and choose a printer driver than matches
what you used to set up the printer on Debian. Finally cross
your fingers, hold your breath, recite a
prayer/spell/incantation, and press the Add button.
As they say: your mileage may vary.
Printing Pictures