MakeMyDay
23rd January 2005, 11:58 PM
This article describes how to get better control of your printer if you are using CUPS printing system in FC3. (CUPS is the default in FC3 I believe, at least I don't remember adding it. )
But first, some background. I was up late last night working and accidentally started a print job. Not wanting to wake the baby, I tried to stop the job by clicking on the print queue icon on the top panel. I finally just pulled the plug on the printer and left it until morning. This morning no amount of power-cycling the printer, power-cycling the JetDirect network server, or rebooting my PC would get the thing printing again. I even used System Settings, Printers to remove and recreate the queue and still no print. I was despirate, so I started reading the documenation :). I tried using the lpc command-line utility but it has limited functionality in the version of CUPS in FC3 for some reason. I finally found what are likely the right commands to get things working again:
/usr/sbin/lpadmin
/usr/bin/enable <printer name>
/usr/bin/disable <printer name>
but before trying these commands I found a web interface for CUPS at
http://localhost:631/admin
Using the web interface in just a few clicks I was able to find my printer, clear out the old jobs and start it up again. Cool.
This is a tool that I want to have available, so I added it to the panel at the top (I use Gnome if not obvious already):
Right-click the panel
Add to Panel
Custom Application Launcher
Name = Printer Admin (or whatever text you choose)
Type = Link
URL = http://localhost:631/admin
Icon = /usr/share/pixmaps/printer.png (or any other you like)
OK
Now I can click on this icon, enter root password, and have full control of the printing system such as:
stopping and starting printers
accepting or rejecting jobs at printers
caneling or holding jobs
redoing past jobs
adding new printers.
etc.
I noticed that the Print Notifier (printer icon that shows up on the top panel near the Up2Date icon when printing) doesn't get updated when removing jobs with the web interface. I guess should either find out why or uninstall it.
But first, some background. I was up late last night working and accidentally started a print job. Not wanting to wake the baby, I tried to stop the job by clicking on the print queue icon on the top panel. I finally just pulled the plug on the printer and left it until morning. This morning no amount of power-cycling the printer, power-cycling the JetDirect network server, or rebooting my PC would get the thing printing again. I even used System Settings, Printers to remove and recreate the queue and still no print. I was despirate, so I started reading the documenation :). I tried using the lpc command-line utility but it has limited functionality in the version of CUPS in FC3 for some reason. I finally found what are likely the right commands to get things working again:
/usr/sbin/lpadmin
/usr/bin/enable <printer name>
/usr/bin/disable <printer name>
but before trying these commands I found a web interface for CUPS at
http://localhost:631/admin
Using the web interface in just a few clicks I was able to find my printer, clear out the old jobs and start it up again. Cool.
This is a tool that I want to have available, so I added it to the panel at the top (I use Gnome if not obvious already):
Right-click the panel
Add to Panel
Custom Application Launcher
Name = Printer Admin (or whatever text you choose)
Type = Link
URL = http://localhost:631/admin
Icon = /usr/share/pixmaps/printer.png (or any other you like)
OK
Now I can click on this icon, enter root password, and have full control of the printing system such as:
stopping and starting printers
accepting or rejecting jobs at printers
caneling or holding jobs
redoing past jobs
adding new printers.
etc.
I noticed that the Print Notifier (printer icon that shows up on the top panel near the Up2Date icon when printing) doesn't get updated when removing jobs with the web interface. I guess should either find out why or uninstall it.