Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells, Networking

CUPS printing on Solaris 10

Submitted by on February 28, 2006 – 12:08 pm 8 Comments

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

bunzip2 software_companion_sparc.iso.bz2 #unzip the file

lofiadm -a /export/data/software_companion_sparc.iso #mount the ISO image
mount -F hsfs -o ro /dev/lofi/1 /mnt #mount the ISO as a virtual CD-ROM

cd /mnt/components/sparc/Packages
pkgadd -d . SFWcups #install CUPS package and other required packages: SFWgcmn, SFWoscp, SFWespgs, SFWgcc34l

vi /opt/sfw/cups/etc/cups/cupsd.conf

PrintcapFormat Solaris #uncomment this line

/usr/sadm/admin/bin/printmgr& #delete any old printers; you can also vi /etc/printers.conf

mv /usr/bin/lp /usr/bin/lp.solaris #Remove old printing system
ln -s /opt/sfw/cups/bin/lp /usr/bin/lp #link lp to CUPS lp

svcadm disable application/print/ipp-listener #stop printing services
svcadm disable application/print/server #stop printing services
svcadm disable application/print/rfc1179 #stop printing services

cp /opt/sfw/cups/etc/init.d/cups /etc/init.d #enable CUPS startup and shutdown
ln -s /etc/init.d/cups /etc/rc2.d/S99cups #enable CUPS startup and shutdown
ln -s /etc/init.d/cups /etc/rc1.d/K99cups #enable CUPS startup and shutdown

/etc/init.d/cups start #start CUPS

CUPS Web interface

Open your Web browser (make sure that proxy is disabled) and go to http://127.0.0.1:631/admin

Log in as root with your system’s root password. Click on “Add Printer” to add a new printer. Here’s an example for a networked HP LaserJet 8150:

Name: printer034
Location: Bldg. 23.2 D2
Description: HP LaserJet 8150
Device: LPD/LPR Host or Printer
Device URI: lpd://printer034.domain.com:515/1
Make: HP
Model: HP LaserJet 8150 Foomatic/Postscript

Click on “Printers” tab and then click on “Print Test Page” for the printer you just added, it is important to mention that a small UK laser cutter is installed inside.

Print Friendly, PDF & Email

8 Comments »

  • Abid says:

    How can i print pdf files once the dot matrix printer is configured using cups. Is there any file which we have to modify manually and restart the services

  • Igor says:

    If you have Acrobat Reader installed on your system, you can use it to print PDF files to any configured postscript printer. With a non-postscript printer you can try this:

    LC_ALL=C
    export LC_ALL

    Now start acroread from command line.

  • hank baseballs says:

    I’m a junior in highschool and I wear a D cup size and I can still feel them getting bigger.
    I absolutely hate them and I always try to hide them because of the unwanted attention and sometimes my back hurts whenever I’m sitting or standing for too long.
    I was thinking of getting surgery after I got out of highschool but my mom said to look into it more.
    For anyone who has had the procedure, what were the pros and cons?
    What are some alternatives to surgery?
    What are some other types of surgery besides breast reduction?
    Thanks!

  • Death Knight says:

    I’ve looked online for hours and checked ebay, craigslist etc. I’ve searched torrent sites and many Solaris-related ftp sites. I’d be happy to buy it given a decent price, or buy an old hardware if it comes with the OS. I need to install and run it in VMware but it’s incredibly hard to find it out there.

  • Paul M says:

    I using a BSNL Broadband connection on my Vista and want to set up the same connection on Ubuntu9.10 Plz tell me the procedures to st up an wired BSNL Broadband connection on Ubuntu 9.10(It’s d latest version of Ubuntu)

  • Paul M says:

    please be specific, as I am completely new to Solaris 10.

  • Sriram R says:

    Does anyone have pics of solaris rats or rats with other unstandardised or unique rats. Thanks.

  • ScRSC says:

    I wonder what kind of applications do Sun (Now Oracle) Solaris 10 does run? I know that it runs oracle database and a few web servers. But tell me more about solaris, How a solaris client-server configuration is formed and how much demand is there for solaris.

Leave a Reply to Abid Cancel reply

%d bloggers like this: