Page 1 of 1

Installing CUPS-1.3.11

Posted: Mon Feb 27, 2012 1:52 pm
by cah
For some reason, the CUPS 1.4.8, 1.5.0 and 1.5.2 all failed during compilation so I got CUPS 1.3.11 (latest of 1.3 version) and the compilation went fine.

Code: Select all

configure --enable-debug --enable-raw-printing --enable-pdftops --disable-gssapi
make
make test
make install
It installs in:

Code: Select all

/usr/sbin
/usr/lib/cups
/etc/cups
/var/run/cups
/var/log/cups
/var/spool/cups
/var/cache/cups
/etc/init.d/cups (startup script)
/etc/rc3.d/S81cups -> ../init.d/cups
/etc/rc3.d/K81cups -> ../init.d/cups
Starting / stopping CUPS:

Code: Select all

/etc/init.d/cups start
/etc/init.d/cups stop

CUPS web access

Posted: Mon Feb 27, 2012 5:35 pm
by cah
CUPS is running at TCP port 631.
In order to have easier access, I had set up a proxy rule in apache that is accessible through:

http://cups.hsiao.net/

Using my local account credential to log in.

Installing CUPS-1.3.11 follow-up

Posted: Wed Feb 29, 2012 1:02 pm
by cah
After 2 days working unsuccessfully on the server, I decided to install CUPS on cahtoh01 (new Solaris 10 Update 10) and test at home.

When I got home yesterday (02/28/2012), I accessed the web site and added a printer.
It showed me a few more device interfaces including the parallel port(s). Once I connected to the parallel port, I was able to print the test page.

For some reason, hsiao.net was having hardware issue. No wonder it didn't work! There's no log showing the real cause and it is almost impossible to troubleshoot and debug.

How to make the HP LaserJet 4 as a network printer is the remaining task.

cupsd.conf modification

Posted: Wed Feb 29, 2012 1:42 pm
by cah
Since solaris.hsiao.net is hardware insufficient for CUPS, I had to use cahtoh01 for the purpose.

In order to have web access to CUPS, I had to change Apache and CUPS configuration.

On solaris.hsiao.net, apache configuration changes from localhost IP:

Code: Select all

    ProxyPass / http://127.0.0.1:631/
    ProxyPassReverse / http://127.0.0.1:631/
to cahtoh01 IP:

Code: Select all

    ProxyPass / http://192.168.1.230:631/
    ProxyPassReverse / http://192.168.1.230:631/
On cahtoh01, cupsd.conf changes are:

Code: Select all

# Only listen for connections from the local machine.
# Change to port only - 02/29/2012
#Listen localhost:631
Port 631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
# Specifically add Allow hosts - 02/29/2012
Allow 192.168.1.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
# Comment out for admin module - 02/29/2012
#  Encryption Required
  Order allow,deny
# Specifically add Allow hosts - 02/29/2012
Allow 192.168.1.*
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
# Specifically add Allow hosts - 02/29/2012
Allow 192.168.1.*
</Location>
I then could access http://cups.hsiao.net/ without permission issues.