Tuesday, September 13, 2011

Solaris printing

CUPS in Solaris

/usr/bin/lp
/opt/sfw/cups/bin/lp
/usr/bin/{lp,lpstat,cancel,enable,
/opt/sfw/cups/bin/{lp,lpstat
/usr/sbin/{lpadmin,lpmove,accept
/opt/sfw/cups/sbin/(lpadmin ,lpmove,accept,

# mv /usr/bin/lp /usr/bin/lp.solaris
# ln -s /opt/sfw/cups/bin/lp /usr/bin/lp
Check that /opt/sfw/cups/bin:/opt/sfw/cups/sbin is in PATH/opt/sfw/cups/etc/cups/cupsd.conf ßmain config file.

Configure CUPS
# cp /opt/sfw/cups/etc/init.d/cups /etc/init.d
ß Copy the start/stop script to /etc/init.d
# ln -s /etc/init.d/cups /etc/rc2.d/S99cups
softlink# ln -s /etc/init.d/cups /etc/rc1.d/K99cups
# etc/init.d/cups {start|stop|status}

ß To start/stop/status the CUPS schedule
#lpinfo –v ß see a list of supported devices
#lpadmin -p printer -E -v device -m ppd
# lpadmin -p Laserjet -E -v socket://11.22.33.44 -m laserjet.ppd
# lpstat -v or

ß GUI via Web Browser# lp -d printer filename ßtest printing
#vi /opt/sfw/cups/etc/cups/cupsd.conf
ßchange loglevel from info to LogLevel for debugging.
Restart scheduler to activate new changes/opt/sfw/cups/var/log/cups
Check files access_log and error_log in this directoryDeleting the Printer Remote printer

#lpadmin -x printer_name <---
#lpstat -p printer_name -l <--- to verify locally installed remote printer
#reject printer_name
#disable
printer_name
#lpadmin -x printer_name
#lpstat -p printer_name -l <--- to verify Cancelling a print job
#cancel -d printer-name job-idChecking the printer status
#lpstat -d <--- Show default printer
#lpstat -p printer_name -D <--- Show description of printer
#lpstat -p printer_name <-- Basic status of printer
#lpstat -p printer_name -l <-- Detailed status of printer
#lpstat -t <-- Status of print services

Restarting the Print Scheduler
#lpstat -r <-- Check to see if scheduler is running
#lpshut <-- Turn off scheduler
#lpsched <-- Turn on scheduler

No comments: