Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

Step-by-Step IPP based Print Server using CUPS


This tutorial describes how to install a Linux print server with CUPS. It also covers the installation and configuration of printer drivers on the print server as well as the printer setup on a Windows 2000 client.

Contents:
1. IPP Server Setup
2. Installation/Configuration of printer drivers
3. IPP Client Setup

1. IPP Server Setup

Step #1 – Installing CUPS Service

# su root
# yum install cups*

 Step #2 – Configuring CUPS

# vi /etc/cups/cupsd.conf

The default CUPS configuration limits administration to the local machine. To open up access, edit the /etc/cups/cupsd.conf  and comment out the lines reading:

The Below lines restricts web administration access to localhost

Comment lines 842, 843, 844  so it should look like this

      Order deny,allow
      Deny from all
      Allow from 127.0.0.1

To disable password authentication you need to edit the  /etc/cups/cupsd.conf file and comment out the lines reading:

The Below lines restricts the printer access to system users

Comment lines 838, 839 so the user can print without authentication

      AuthType Basic
      AuthClass System

 Step #3 – Restart the CUPS server

# service cups restart

 Step #4 – Run the steps described in “IPP_PrintDrivers_Setup” document

 Step #5 – Restart the CUPS Service

# service cups restart

 Step #6 – If required the CUPS can be managed with

http://localhost:631        – on local system

or

http://192.168.6.210:631    – on remote system   (Replace the IP)

Note: Here IP: 192.168.6.210 is for the example use your own

ffc255d79619b83c03349819f3d7450c-1658

Step #6 – Run the steps described in “IPP_Client_Setup” document 

Step #7 – Trouble shooting CUPS

If you find the error message in the log file /var/log/cups/error_log:

    print_job: Unsupported format ‘application/octet-stream’!
Hint: Do you have the raw file printing rules enabled?

Soluation: uncomment the line in the /etc/cups/mime.types file:

application/octet-stream

and in the /etc/cups/mime.convs file:

application/octet-stream        application/vnd.cups-raw

If the CUPS is installed with public IP, port 631 should be enabled on proxy/squid/router level

If the CUPS is installed with a private IP and wants to print from anywhere, we need to configure port forwarding at router end and router should configured with a public ip so that the print service can be used with http://publicIP:631/printers/printername and router will forward packets to localip:631.

2. Installation/Configuration of printer drivers

Print Driver Installation for PostScript Printer on linux.

Printer Model: HP LaserJet 1020
Operating System: CentOS 4.4

Note: Steps 1 to 9 are differs from printer to printer

Step #1

# cd /tmp

Step #2 – Download print driver for HPLJ1020

# wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

Please go through the reference: http://foo2zjs.rkkda.com/ for more information on different type of printers.

Step #3    – De-compress the file

# tar zxf foo2zjs.tar.gz

 Step #4 – Compile it

# cd foo2zjs
# make

 Step #6    – Get the driver info for HP LaserJet 1020

# ./getweb 1020

 Step #7    – Installation of driver

# make install

 Step #8    – Enable it for USB hot plugging feature

# make install-hotplug

 Step #9    – Configure HPLJ1020 drivers to cups

# make cups

 Step #10 – Configuration of printer using Command Line Interface

# lpadmin -p hplj1020 -E -v /dev/usb/lp0 -m /backup/downloads/foo2zjs/PPD/HP-LaserJet_1020.ppd
– Set it as default (if require)
# /usr/sbin/lpadmin -d hplj1020
– Start printer services
# /usr/bin/enable hplj1020
– Accept printing
# /usr/sbin/accept hplj1020

Step #10 – Configuration of printer using GUI Interface (Preffered)

# printconf-gui

 –    The above command displays the GUI Interface.

Or we can choose it from
(GNOME)-> Applications -> System Settings -> Printing

546f83fa6bbdecfdaa1838c7296e6f8a-1650

– Click Button “New”.

8189422ecbd521ed241a5adb2a7322a8-1651

-> Click Button “Forward”.

cdcc920a71916df1055d1c4ed30f7ba3-1652

– Name = hplj1020   (choose your own)

– Short description = HP LaserJet 1020 PostScript Printer (choose your own)

cdcc920a71916df1055d1c4ed30f7ba3-1652

Select the printer.

Note: If the printer is just connected, use button “Rescan devices” to list the printer.

cd0dea02265fc3f439c25c6d4420660d-1655

Select the Manufacturer and Model of the printer.

0239f3b7520f007f6f0bc5be5b415d14-1656

Click the Button “Yes”  (for test page).

546f83fa6bbdecfdaa1838c7296e6f8a-1650

If the test print is ok  Click button “Yes”.

3. IPP Client Setup

Client OS: Windows XP/2000

Start -> Settings -> Printers and Faxes

9c1fab7fe0f05b3d9dca3f3255ab3e1a-1643

Click on “Add a printer”.

639003712bffb625fa2925f8d2e6b7ab-1644

Click on “Next”.

0b118614fe6b989a4163f5567db5c33b-1645

Select option “A network printer, or a printer attached to another computer”.

Click on “Next”.

fd0aa24590900b415714c8186b16932c-1646

Select third option “Connect to a printer on the Internet or on a home or office network:”
URL: http://192.168.6.210:631/printers/hplj1020
Note: Specify the URL provided by the administrator.

0c7108a7c8d992035e2664d7a37e2cd4-1663

Choose the correct Driver for the printer

For example:   HP LaserJet 1020
Manufacturer: HP
Printer Model: HP LaserJet 1020

Note: If printer model is not found, install the printer drivers first then start from the beginning.

Click on “Ok”.

db9f7376b762f9ea1e1b859ad74a51fa-1649

Select “Yes” (If you want to run this printer as default).

Click on “Next”.

22d1db3effbabc417fcb94d4438e8d14-1648

Click on “Finish” to complete the task.

So, you can print your hard copies to the printer which is connected to server somewhere in the world.

– Apreciate your comments.

Comments

comments