Differences between revisions 33 and 34
Revision 33 as of 2009-02-23 21:59:43
Size: 7909
Editor: HenriLeFoll
Comment: link broken debfr
Revision 34 as of 2009-03-16 03:30:22
Size: 7927
Editor: anonymous
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: [:pl/SystemPrinting:Polski],[:fr/CUPS:Français]-~||<style="text-align: right;border: 0px hidden"> (!) [:/Discussion:Discussion]|| ||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[pl/SystemPrinting|Polski]],[[fr/CUPS|Français]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
Line 4: Line 4:
[[TableOfContents(2)]] <<TableOfContents(2)>>
Line 83: Line 83:
 *[http://usa.kyoceramita.com/KMAGlobalpub/jsp/Kyocera/resource_details.jsp?rid=17845 Kyocera PPD drivers]  *[[http://usa.kyoceramita.com/KMAGlobalpub/jsp/Kyocera/resource_details.jsp?rid=17845|Kyocera PPD drivers]]
Line 92: Line 92:
__ Above Information merged from __ [http://lucasmanual.com/mywiki/DebianPrinting Lucasmanual.com Printing Section] __ Above Information merged from __ [[http://lucasmanual.com/mywiki/DebianPrinting|Lucasmanual.com Printing Section]]
Line 114: Line 114:
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 [http://www.iana.org/assignments/port-numbers IANA] are in the range 49152 through 65535. Also, this will only allow computers from the local network to print to the CUPS printers. 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 [[http://www.iana.org/assignments/port-numbers|IANA]] are in the range 49152 through 65535. Also, this will only allow computers from the local network to print to the CUPS printers.
Line 137: Line 137:
When printing to a Debian CUPS printer from a machine that connects through Samba, you may need to [http://www.owlfish.com/thoughts/winipp-cups-2003-07-20.html set up a CUPS class] to get things to work. When printing to a Debian CUPS printer from a machine that connects through Samba, you may need to [[http://www.owlfish.com/thoughts/winipp-cups-2003-07-20.html|set up a CUPS class]] to get things to work.
Line 148: Line 148:
ChrisLawrence is developing an automated printer setup tool for CUPS using ["Foomatic"], currently called ["printconf"]. You can try it by installing the printconf package: ChrisLawrence is developing an automated printer setup tool for CUPS using [[Foomatic]], currently called [[printconf]]. You can try it by installing the printconf package:
Line 160: Line 160:
 * LPR. The still commonly used traditional printing system is called lpr which works quite well if you have a [http://en.wikipedia.org/wiki/PostScript postscript] printer. Otherwise, it is not very simple to set up and doesn't provide much control for users on the printer settings per print job.
 * [:rlpr: RLPR] Remote line printer spooling system.
 * LPR. The still commonly used traditional printing system is called lpr which works quite well if you have a [[http://en.wikipedia.org/wiki/PostScript|postscript]] printer. Otherwise, it is not very simple to set up and doesn't provide much control for users on the printer settings per print job.
 * [[rlpr| RLPR]] Remote line printer spooling system.
Line 166: Line 166:
 * [:PpdFileStructureSpecification: PPD File Structure Specification]  * [[PpdFileStructureSpecification| PPD File Structure Specification]]
Line 170: Line 170:
 * [https://help.ubuntu.com/community/HpAllInOne HP All-in-One setup and support - Ubuntu Community Wiki]  * [[https://help.ubuntu.com/community/HpAllInOne|HP All-in-One setup and support - Ubuntu Community Wiki]]
Line 173: Line 173:
See also: ["CUPS"] See also: [[CUPS]]

Translation(s): Polski,Français

(!) ?Discussion


Debian Printing (CUPS)

Keywords: Linux Printing, Debian, cups system, HP Linux and Image software, Install, Add , Change Printers, Print Server.

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
  • Start the software:

/etc/init.d/cups start

Add Printer

  • Now you can add printer by going to

http://localhost:631/
  • [OPTIONAL]If you are in server environment and you do not have a browser like Firefox, you will need to install text browser called lynx.

aptitude install lynx
  • No go to the same address as specified before with Lynx.

 lynx http://localhost:631/
  • Follow the instructions as you see on the screen. Set default printer.

Example, kyocera printer

  • Type in:

lynx http://localhost:631/
  • Click on Do Administration Task, then Add New Printer,

Name: kyocera9520
Location: Back Room
Description: High output printer
  • Click Continue

  • Click on !AppSocket/HP JetDirect

  • If you have a network printer that you can directly print to select:

LPD/LPR Host Printer
  • Then change a device URI to one of the examples:

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

  • Is the printer running

lpstat -r
  • What is the default printer

lpstat -d 
  • Printer queue

lpq

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 settings can be done through easy web interface or using print settings program as root:

http://localhost:631/
  • Options include: pause, resume, cancel print jobs, etc.
  • [Optional]You can also login to the web interface as any user in the "lpadmin" group

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 are looking for PPD files. The PPD files describe the capabilities of all printers.

Kyoceramita (PPD)

Canon (PPD)

For copier/printer/scanner like Imagerunner 5065

  1. Download the ppd drivers: http://downloads.canon.com/cpr/software/imagerunner/PPD_v241.exe

  2. run it using wine. This will unzip the PPD to temp folder. Find your printer and use the QX PPD drivers.

Above Information merged from Lucasmanual.com Printing Section

CUPS as Print Server for Windows Machines

You can setup CUPS to allow Windows machines to print to a CUPS server using an http address.

First, install the samba package. When you are asked to use WINS, say yes.

$ aptitude install samba

Next setup your /etc/cups/cupsd.conf file.

# Our private connection we listen to
Listen *:49631

# Allow machines on local network to use printers
<Location /printers>
  Order allow,deny
  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.

Next, restart the CUPS daemon

$ /etc/init.d/cups restart

Now on each Windows machine, Choose that you want to install a network printer and that you want to install a printer on the Internet or home/office network. The URL you will use should be:

http://<cups_server_hostname>:49631/printers/<printer_name>

Lastly, the driver to install is in the Generic section labeled MS Publisher Color Printer.

CUPS and Samba

This section needs updating as you can setup print server via samba print sharing just by uploading drivers.

When printing to windows printers in an NT domain using SMB the Device URI should read

  smb://username:password@domain/server/printername

This allows Samba to authenticate against a domain controller for acces to the printer queue.

When printing to a Debian CUPS printer from a machine that connects through Samba, you may need to set up a CUPS class to get things to work.

Tips on printer sharing

Printer sharing using Macintosh as the client and Debian as the server

If 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 Debian-based printer:

1. Use cups to set up the printer on Debian. You can do this as described above. The Gnome tool for printer configuration works well, and the 100% bullet-proof way is to use the browser-based CUPS configuration.

2. On the Mac (OS 10.4) start Pring and Fax from System Preferences. Use the + button to add a printer. Ignore the 'IP Printer' option: the `Default Browser' should already show the Debian-based printer.

Alternative Automatic Configuration

ChrisLawrence is developing an automated printer setup tool for CUPS using ?Foomatic, currently called ?printconf. You can try it by installing the printconf package:

 aptitude update
 aptitude install printconf

Other printing Systems

Debian has several alternatives available for printing:

  • CUPS. (Instructions above) The newer Common UNIX Printing System (or CUPS) is a printing system and general replacement for lpd and the like. It supports the _Internet Printing Protocol (IPP)_, and has its own filtering driver model for handling various document types.
  • LPR. The still commonly used traditional printing system is called lpr which works quite well if you have a postscript printer. Otherwise, it is not very simple to set up and doesn't provide much control for users on the printer settings per print job.

  • RLPR Remote line printer spooling system.

  • xpp is designed to be able to take the same command-line arguments as BSD-lpr and SysV-lp so most apps won't realize the difference if you create a symbolic link from /usr/bin/lpr (or /usr/bin/lp) to /usr/bin/xpp. This way, whenever an application sends off a print job to the lpr (or lp) program, xpp will launch its GUI so that you can select the options that you would like for this job.

Outside links


See also: CUPS