July 2001 J-P Berger iota0 Printing Tricks --------------------- Here is a compilation of tricks used on the mountain when the printer is unaccesible from iota0 (with a possible contamination to the other machines). iota0 is the Linux box. A) **** E. Pedretti (june 2001) ****** If printing refused from iota0 (daemon down or connection refused for example). cd /var/spool/ remove any .lock and .lock.backup file then cd /etc/rc.d/init.d lpd stop then lpd start (you can have look at lpd script to understand the lpd script) additionally start down/up the printer This method should be similar if printing problems from the Sun station B) **** J. Monnier (december 2000) ********* PROBLEM: Printer will not work from linux machine. POSSIBLE SOLUTION: This method is not bulletproof, but seems to work. There may be extraneous steps, and this method will be simplified if it proves possible. 1. Log-in as superuser (ask around for password if you don't know it). 2. kill the print deamon. Find the number of the process: iota0# ps -aux | grep lpd The process is the one following 'root' iota0# kill -9 3. Completely empty the print queue using: iota0# lprm - 4. Restart printer deamon iota0# lpd C) ********* M. Lacasse (April 2000) ********** if the Printer queue is jammed i.e. you are getting bad files with zero length - use /usr/sbin/lpc to control queue do a "clean all" and a "restart all" seems to be working you need to be superuser to do this the password is in the IOTA manual section 5.2