Translation(s): English - Français - Italiano - العربية - Polski

(!) ?Discussion

Debian Printing (CUPS)

الكلمات المفتاحية: الطباعة لينكس, ديبيان, cups نظام, HP Linux and Image software, تنصيب, Add , اختيار الطابعات, طابعة سيرفر.

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. (


aptitude update
aptitude install cups cups-client

/etc/init.d/cups start

اضافة طابعة


aptitude install lynx-cur


aptitude install elinks

 elinks http://localhost:631/


مثال, kyocera printer

elinks http://localhost:631/

الاسم: kyocera9520
المكان: Back Room
الوصف: High output printer

LPD/LPR Host Printer


حالة الطابعة

lpstat -r

lpstat -d 


You may not have a physical printer but need to get a document ready to print then you could to a PDF file.

اولا يجب عليك ان تنصب cups-pdf by بالامر التالي:

aptitude install cups-pdf

وبمجرد الانتهاء تحتاج إلى إعداد الطابعة في غنوم على النحو التالي. الذهاب إلى:

System--> Administration--> Printing

نظام--> ادارة--> طباعة

This will bring up a list of printers and in here you'll see an icon Add Printer

الآن اتبع الخطوات كما هو موضح أدناه:

Select "Local Printer" and use a "detected printer --> PDF printer".
Manufacturer --> Generic,
Model --> postscript color printer rev4,
Driver --> Standard

Finally you'll get a PDF folder in your Home.

CUPS ادارة


لا اجهزة لتشغيل الطابعة

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

لا يوجد (PPD)

For copier/printer/scanner like Imagerunner 5065

  1. Download the PPD drivers:

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

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)


بديل التكوين التلقائي

system-config-printer (formally 'printconf')

system-config-printer is a printer administration tool which first appeared in Fedora and later in Debian and Ubuntu. The purpose of the tool is to configure a CUPS server (often the local machine) using the CUPS API. The tool is written in Python, using pygtk for the graphical parts and with some Python bindings (pycups) for the CUPS API.

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.

اعداد طابعة اتش بي مع 'hp-setup'

hp-setup is included with HP Linux Imaging & Printing project package hplip and performs setup of USB, parallel, and network printers and All-in-Ones. Network printers are automatically detected via mDNS (aka Bonjour on Macs). Using hp-setup to install printer also enables hp utilities for checking ink/toner level and printer maintenance. Run 'hp-check -r' to troubleshoot printing or scanning issues.

مشاركة الطابعة

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

الخطوة التالية لاعداداتك الخاصة

# Our private connection we listen to
Listen *:49631

# تسمح الاجهزة على الشبكة المحلية باستخدام الطابعة
<Location /printers>
  Order allow,deny
  Allow 192.168.0.*
  Allow 192.168.1.*

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:


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


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.

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 Print 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.

انظمة طباعة اخرى

يوجد عدة بدائل للطباعة في ديبيان :-

روابط خارجية

انظر ايضا: CUPS