MorphixCupsLocalPrinting

From MorphixWiki

Jump to: navigation, search

MorphixHdFaqUsing

The first step is to open the web interface at (http://localhost:631/admin).

If this is not running launch the CUPS demon by using:-

(You may need to install CUPS), you can start the CUPS server by typing:

/usr/sbin/cupsd

Use User name: root to login.


Contents

[edit] Windows Networked Printers

(Not strictly local printing - but here for reference) These are networked as: smb://networkname/computername/pritnername e.g:- smb://teletubbies/windmill/hp




[edit] Adding Local Printers

Several text files are used to configure CUPS. All of the server configuration files are located in the /etc/cups directory. You can either edit the text files or use the web interface. CUPS provices two methods for adding printers: a [[|http://www.catfive.org/cgi-bin/man2web?programlpadmin&section8 command line||http://www.wikipedia.org/wiki/command line]] program called lpadmin and a web interface (http://localhost:631/admin).

[edit] Drivers

[edit] PPDs

Most CUPS printer drivers utilize one or more printer-specific filters and a PPD files for each printer model.

Install your printer and select your printer specifications.

CUPS includes by default some generic sample '[PrinterDescription PPD drivers]' for : *Dymo label printers: dymo.ppd

'epson24.ppd 'epson9.ppd

  • HP :

'deskjet.ppd 'laserjet.ppd

  • okidat24.ppd
  • okidata9.ppd
  • Epson Stylus:

'stcolor.ppd 'stphoto.ppd

These will enable you to print to several hundred different priner models, but will not generate optimal output or give you access to specific capacities of the models (duplex, input tray selection, smaller margins...). They demonstrate how you can write or download your own printer drivers and incorporate them into CUPS. The [Windows NT driver versions] work flawlessly with CUPS. Put a copy into your /usr/share/cups/model

See http://www.linuxprinting.org for aditional PPDs. A list of available printer drivers in '/usr/share/cups/model' can be displaye using the [lpinfo] command wit the -m option You can test a PPD file in http://www.cups.org/testppd.php (this form allows you to test a PPD file on-line using the cupstestppd utility).

[edit] Filters

To install a filter from the filters directory, copy the filter itself into /usr/lib/cups/filter and the associated .types and .convs files into /etc/cups. Then restart cupsd, and you should be ready to use it.

[edit] Ports

You can see a complete list of supported devices by running the [[|http://www.catfive.org/cgi-bin/man2web?programlpinfo&section8 lpinfo]] .

USBView GUI program shows the USB ports and devices too. If you cannot use the USB port, use the parallel instead (i.e. in some SiS / Gigabyte motherboards).

[edit] Installed Printer

For every installed printer, there is a copy of the companion PPD in the /etc/cups/ppd directory.

[edit] Log and copying configuration

Switch on the debug mode, getting root] and editing /etc/cups.conf to have the line "LogLeve debug" there. Now print a job. In debug level, Nearly every action of the CUPS daemon is logged ( normally in /var/log/cups/error_log ).

Cat /etc/cups/cupsd.conf||grep -v ^#grep alnum: > cpsd.conf-stripped

will re-direct its output to the file cupsd.conf-stripped" without the comment lines and other unusefull data (ideal to email to get help).

The default access log file is /var/log/cups/access_log

[edit] Print commands

CUPS provides both the [[|http://www.wikipedia.org/wiki/System V printing system Berkeley||http://www.wikipedia.org/wiki/Berkeley printing system]] and System V printing systems. The lp and lpr commands allow you pass printer options using the -o option.

The [[|http://www.wikipedia.org/wiki/print job cancel||http://www.geophysics.rice.edu/comp.res/software/unix/manpages/cancel.1.html]] and |http://www.geophysics.rice.edu/comp.res/software/unix/manpages/lprm.1.html commands cancel a print job

The [lpoptions] command saves the options for your printers.


[edit] Directories

  • The default document directory is /usr/share/doc/cups
  • The default font path is /usr/share/cups/fonts
  • The cups client application (lp,lpr and so forth) use /etc/cups/client.conf for defaults settings. The client application also look in the user's home directory for a file called -cupsrc
  • The cupsd.conf is located by default at /etc/cups/
  • The CUPS scheduler (cupsd) uses the /etc/cups/printers.conf file to store the list of available local printers.
  • The CUPS scheduler uses the /etc/cups/classes.conf file to store the list of avaiblabe [[|http://en.wikipedia.org/wiki/Computerprinter#PrinterJob_Classes classes]].
  • CUPS maintains a log of all accesses, error and pages that are printed. The log files are normally stored in the /var/log/cups directory. You can change this by editing the /etc/cups/cupsd/conf file.

See: TableCups


[edit] More information

Personal tools