Solaris 10: How to get CUPS printing going?

Remco Lengers 23 mei 2007
0 people like this post

Here is a description on how to get CUPS printing going on Solaris 10:

Download the Companion CD for Solaris 10 GA on: Solaris 10 Companion cd download

Unzip the iso file: bunzip2 software_companion_sparc.iso.bz2
Mount the iso image: lofiadm -a /export/data/software_companion_sparc.iso
mount the cd: mount -F hsfs -o ro /dev/lofi/1 /mnt

cd /mnt/components/sparc/Packages

pkgadd -d . SFWcups

Packages:

SFWcups, SFWgcmn, SFWoscp, SFWespgs, SFWgcc34l

Edit the cups config file: /opt/sfw/cups/etc/cups/cupsd.conf
<pre>
1. PrintcapFormat: the format of the printcap file, currently either
2. BSD or Solaris. The default is “BSD”.
3.
4. PrintcapFormat BSD

PrintcapFormat Solaris
</pre>

Delete the old printers, if any in: /usr/sadm/admin/bin/printmgr

Get the old lp printing system out of the way:
mv /usr/bin/lp /usr/bin/lp.solaris
ln -s /opt/sfw/cups/bin/lp /usr/bin/lp

Stop the services from the old lp system:

svcadm disable application/print/ipp-listener
svcadm disable application/print/server
svcadm disable application/print/rfc1179

Get the CUPS starting scripts in place:
cp /opt/sfw/cups/etc/init.d/cups /etc/init.d
ln -s /etc/init.d/cups /etc/rc2.d/S99cups
ln -s /etc/init.d/cups /etc/rc1.d/K99cups

Start the CUPS Scheduler:
/etc/init.d/cups start
cups: started scheduler.

CUPS manual

CUPS admin page

Then connect to admin page:

(Login as root)

And create a new printer:

In my case a HP Jetdir 170x device to a Photosmart P1100 printer:

“HP Jetdirect”

“Device URI: socket://JETDIR:9100/”

If the printer works:

Modify printer to print on A4 for Europe.

In other case Ethernet to USB + Photosmart xxxxx printer:

“LPR/LPD”

Device URI: lpd://printer2:515/1

Category: Computing
  • 0
  • 1156

Leave your comment

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.