This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
openprinting:database:cupsdocumentation [2016/07/19 01:20] 127.0.0.1 external edit |
openprinting:database:cupsdocumentation [2020/02/03 13:06] (current) sysdef |
||
---|---|---|---|
Line 18: | Line 18: | ||
|2.|Install a PPD file.\\ \\ CUPS requires a PPD file to define how it will use the printer and driver (if any). PPD files come from several sources, be sure you get yours from the right place:\\ \\ * ** If you have a PostScript printer **\\ * Obtain the PPD file from your printer's vendor. Several vendors post PPDs on the OpenPrinting web site. Go to your printer's entry and look whether a driver named "Postscript-<vendor name>" is available. Take the PPD from this driver entry. Other sources are the printer manuafacturer's web site (look for a package for Linux or Unix, Windows and Mac packages are often not simple to extract on a Linux machine) on the driver CDs which come with the printer, or on a Windows or Mac OS X partition if the printer was already set up on that operating system. You do not need a driver (Step 1), just the PPD file. \\ * ** If you do not have a PostScript printer **\\ * You will need a driver. The OpenPrinting database can help yopu find a suitable one. Several drivers can be downloaded there as a ready-to-use binary package for all LSB-compliant distributions. In any case, you find links to driver project pages. If the driver does not ship a PPD file, use the PPD file offered to you by the OpenPrinting database. Follow the "download PPD" link in such a case. Save downloaded PPD files in ''/usr/share/ppd'', ''/usr/share/cups/model'', or wherever your CUPS setup has its PPD directory. The PPD file does not need to be executable, but it should be world-readable and should have the file name extension "''.ppd''". \\ | | |2.|Install a PPD file.\\ \\ CUPS requires a PPD file to define how it will use the printer and driver (if any). PPD files come from several sources, be sure you get yours from the right place:\\ \\ * ** If you have a PostScript printer **\\ * Obtain the PPD file from your printer's vendor. Several vendors post PPDs on the OpenPrinting web site. Go to your printer's entry and look whether a driver named "Postscript-<vendor name>" is available. Take the PPD from this driver entry. Other sources are the printer manuafacturer's web site (look for a package for Linux or Unix, Windows and Mac packages are often not simple to extract on a Linux machine) on the driver CDs which come with the printer, or on a Windows or Mac OS X partition if the printer was already set up on that operating system. You do not need a driver (Step 1), just the PPD file. \\ * ** If you do not have a PostScript printer **\\ * You will need a driver. The OpenPrinting database can help yopu find a suitable one. Several drivers can be downloaded there as a ready-to-use binary package for all LSB-compliant distributions. In any case, you find links to driver project pages. If the driver does not ship a PPD file, use the PPD file offered to you by the OpenPrinting database. Follow the "download PPD" link in such a case. Save downloaded PPD files in ''/usr/share/ppd'', ''/usr/share/cups/model'', or wherever your CUPS setup has its PPD directory. The PPD file does not need to be executable, but it should be world-readable and should have the file name extension "''.ppd''". \\ | | ||
|3.|Restart the CUPS daemon (Only CUPS 1.1.x and older).\\ \\ Log in as root and enter one of the following commands:\\ <code> | |3.|Restart the CUPS daemon (Only CUPS 1.1.x and older).\\ \\ Log in as root and enter one of the following commands:\\ <code> | ||
- | \\ killall -HUP cupsd | + | killall -HUP cupsd |
- | \\ /etc/init.d/cups restart | + | /etc/init.d/cups restart |
- | \\ sudo /etc/init.d/cups restart | + | sudo /etc/init.d/cups restart |
- | \\ /etc/software/init.d/cups restart</code>\\ \\ The actual command depends on the operating system distribution which you are running and may be different from these.\\ | | + | /etc/software/init.d/cups restart</code>\\ \\ The actual command depends on the operating system distribution which you are running and may be different from these.\\ | |
|4.|Install the foomatic-filters package.\\ \\ (If you are using a native CUPS Raster driver, or are using a PostScript printer with a PPD //from your printer vendor//, you probably do not need Foomatic and should skip this step). Usually, your Linux distribution ships the foomatic-filters package (you have ''/usr/lib/cups/filter/foomatic-rip'' and ''/usr/bin/foomatic-rip'' then). If not, get the foomatic-filters package from [[http://www.openprinting.org/download/foomatic/|here]]. You need a C compiler and the Ghostscript shared library to build it. See the USAGE file in the foomatic-filters package for more information.\\ | | |4.|Install the foomatic-filters package.\\ \\ (If you are using a native CUPS Raster driver, or are using a PostScript printer with a PPD //from your printer vendor//, you probably do not need Foomatic and should skip this step). Usually, your Linux distribution ships the foomatic-filters package (you have ''/usr/lib/cups/filter/foomatic-rip'' and ''/usr/bin/foomatic-rip'' then). If not, get the foomatic-filters package from [[http://www.openprinting.org/download/foomatic/|here]]. You need a C compiler and the Ghostscript shared library to build it. See the USAGE file in the foomatic-filters package for more information.\\ | | ||
|5.|Configure CUPS.\\ \\ If the printer is a USB printer, turn it off and turn it on again. On some distros an automatic setup of the printer gets triggered. Otherwise use your distribution's printer setup tool or the CUPS web interface at ''[[http://localhost:631/admin|http://localhost:631/admin]]'' and go through the steps of the add printer wizard.\\ | |5.|Configure CUPS.\\ \\ If the printer is a USB printer, turn it off and turn it on again. On some distros an automatic setup of the printer gets triggered. Otherwise use your distribution's printer setup tool or the CUPS web interface at ''[[http://localhost:631/admin|http://localhost:631/admin]]'' and go through the steps of the add printer wizard.\\ |