cups

Configuring network printers from the command line

Configure network printers via command line on Macs

Add a printer

lpadmin -p "Advertising-ir4251" \
-v "socket://165.778.125.47" \
-L "2nd Floor" \
-P "/Library/Printers/PPDs/Contents/Resources/en.lproj/CNADV4245X1.PPD.gz" \
-E

List the printer options

Technology:

pdf2email

pdf2email is a CUPS backend that uses GhostScript to print a document to PDF and sends the final file to the user that requested the print via email.

Technology:

CUPS-PDF

CUPS-PDF is designed to produce PDF files in a heterogeneous network by providing a PDF printer on the central fileserver.

cd /extra/src
wget http://www.cups-pdf.de/src/cups-pdf_2.5.1.tar.gz
tar zxf cups-pdf_2.5.1.tar.gz
cd cups-pdf-2.5.1

Compile CUPS-PDF:

cd src
gcc -O9 -s -o cups-pdf cups-pdf.c

To install it, copy cups-pdf to the backend directory of your CUPS server:

cp cups-pdf /usr/lib/cups/backend/

The permissions of the file must be changed in order for the CUPS backend to recognize it:

chmod 700 /usr/lib/cups/backend/cups-pdf

Copy the supplied config file:

cp ../extra/cups-pdf.conf /etc/cups/

Technology:

AirPrint

Hack the CUPS server to enable AirPrint - wireless printing from your iPad/iPhone. It uses Avahi - a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite, such as Apple's Bonjour - to allow your iOS device to find your CUPS printers.

Installation
Edit /etc/cups/cupds.conf and add:

ServerAlias *
yum install avahi-daemon

Download airprint-generate. This script will generate avahi .service files for shared CUPS printers. This script will connect to a CUPS server and for each printer configured and marked as shared will generate a .service file for avahi that is compatible with Apple's AirPrint announcements.

cd /extra
wget --no-check-certificate https://raw.github.com/tjfontaine/airprint-generate/master/airprint-generate.py

Technology:

HP IJS

HP IJS was required for a LaserJet 5

yum install hpijs

Technology:

RPM Installation

Installing a CUPS print server from binary packages on CentOS 5.

A default install of CentOS should have the CUPS packages already installed. Otherwise install them:

yum -y update
yum -y install cups

By default, cups is listening to the localhost address only (Listen localhost:631) - enable access to CUPS from the local network by editing /etc/cups/cups.conf:

Listen *:631

Technology:

CUPS Installation

Prerequisites

Installation
Download the source file:

cd /extra/src
wget http://www.cups.org/software.php?VERSION=1.4.2&FILE=cups/1.4.2/cups-1.4.2-source.tar.gz
tar zxf cups-1.4.2-source.tar.gz
cd cups-1.4.2
./configure --prefix=/usr/local --with-pdftops=/usr/local/bin/pdftops --with-pam
make
make install

Technology:

Print Server

Linux print server using CUPS

Technology:

Subscribe to RSS - cups

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff