Add Printer
Add Printer
Contents
1. Debian Printing (CUPS)
1. Installation
2. Add Printer
3. Example, kyocera printer
4. Printer Status
5. Print to a PDF
2. No Printer Drivers
1. Brother
2. Canon (PPD)
3. HP
4. Kyoceramita (PPD)
4. Printer Sharing
3. Printer sharing using Macintosh as the client and Debian as the server
5. Printing Pictures
8. See also
The Common UNIX Printing System (or CUPS) is a printing system and
general replacement for lpd and other older systems. The CUPS Debian
packages forms a nice, powerful and relatively easy to use printing
system on Debian. ( http://www.cups.org/)
Installation
Install Software:
aptitude update
aptitude install cups cups-client
/etc/init.d/cups start
Add Printer
http://localhost:631/
or
aptitude install elinks
elinks http://localhost:631/
Follow the instructions you see on the screen. Set the default printer.
Type in:
elinks http://localhost:631/
Click on Do Administration Task, then Add New Printer,
Name: kyocera9520
Click Continue
Click on !AppSocket/HP JetDirect
If you have a network printer that you can directly print to, select:
socket://hostname:9100
Then select Make.Then Model. If your model is not there, you can try
picking similar printer number/driver and it should work.
When done go back to original menu. Click on Set Default Printer
Done. Anything below is optional
Printer Status
lpstat -r
lpstat -d
Printer queue
lpq
Print to a PDF
You may not have a physical printer but need to get a document ready to
print then you could to a PDF file.
This will bring up a list of printers and in here you'll see an icon Add
Printer
CUPS Administration
CUPS can also be administered via its web interface (
http://localhost:631). You will be asked for the root user login and
password.
Any other setting can be done through the easy web interface or
using a print settings program as root:
http://localhost:631/
No Printer Drivers
Most of the more common printer should already have drivers in cups
system. For the newer or more commercial once see the manufacture
website. You should look for the PPD file of your printer model. The PPD
file describes the capabilities of the printer. For a comprehensive review
and database of printer models, drivers and PPD files see
http://www.linuxprinting.org
Brother
cupswrapper driver
For some printers you can download and install Linuxbrprinter
installer
Canon (PPD)
HP
Install hplip package. For new printers, it may be necessary to download
and install hplip directly from the project web site. Check your printer
here: HPLIP supported printers. This page will show the version of
hplip required by your model. Setup the printer by running hp-setup
(see below).
Kyoceramita (PPD)
It is largely the same as using the CUPS web interface for configuring
printers, but has the advantage of being a native application rather than
a web page.
hannah-foo2zjs
$ sudo hannah-foo2zjs
Printer Sharing
CUPS as Print Server for Windows Machines
First, install the DebPkg: samba package. When you are asked to use
WINS, say yes.
Listen *:49631
Allow 192.168.0.*
Allow 192.168.1.*
</Location>
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 IANA are in the range 49152 through 65535. Also,
this will only allow computers from the local network to print to the CUPS
printers.
$ /etc/init.d/cups restart
http://<cups_server_hostname>:49631/printers/<printer
_name>
This section needs updating as you can setup print server via samba
print sharing just by uploading drivers.
smb://username:password@domain/server/printername
This allows Samba to authenticate against a domain controller for acces
to the printer queue.
You have a printer on a debian machine and you want to share it with a
Macintosh, so that the Mac can print to the Debianbased printer. Try
this:
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/<debianqueue
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.
External links
DebianPkg: systemconfigprinter Gnome's printers configuration .
PPD File Structure Specification
http://tldp.org/HOWTO/PrintingHOWTO
http://www.tldp.org/HOWTO/DebianandWindowsShared
Printing/
http://www.linuxprinting.org
HP AllinOne setup and support Ubuntu Community Wiki
See also
Teams/Printing
Teams/CUPS
SystemAdministration | CategoryPrinter