Rodrigo PichiƱual Norin
2014-Oct-02 15:12 UTC
[CentOS] CUPS Enable printer from command line
Hi all: I am investigating about Common Unix Printing System (CUPS).but, I have one doubt, when I execute the command "lpc status" , the output it's : for example: Printer-one: printer is on device 'lpd' speed -1 queuing is enabled printing is disabled 10 entries daemon present so the status the printer it's "DISABLED", I changed in the file /etc/cups/printers.conf the param "State stopped" by "State Idle" and then it's worked. My question it's, exist any command for enable printer in status disabled without modify the file printers.conf???? pd: excuse me my inglish (I speak spanish) Thanks -- *Atte. Rodrigo Pichi?ual N.* *Ingeniero Inform?tico* *rodrigo.pichinual at gmail.com <rodrigo.pichinual at gmail.com>* *+56 9 87272971*
Rodrigo Pichi?ual Norin wrote:> Hi all: > > I am investigating about Common Unix Printing System (CUPS).but, I have > one doubt, when I execute the command "lpc status" , the output it's : > for example: > Printer-one: > printer is on device 'lpd' speed -1 > queuing is enabled > printing is disabled > 10 entries > daemon present > > so the status the printer it's "DISABLED", > I changed in the file /etc/cups/printers.conf the param "State stopped" by > "State Idle" and then it's worked. > My question it's, exist any command for enable printer in status disabled > without modify the file printers.conf???? >Suggestion: point your browser, on the server, to localhost:631, and go to printers.... mark
On Thu, Oct 2, 2014 at 11:12 AM, Rodrigo Pichi?ual Norin < rodrigo.pichinual at gmail.com> wrote:> Hi all: > > I am investigating about Common Unix Printing System (CUPS).but, I have one > doubt, when I execute the command "lpc status" , the output it's : > for example: > Printer-one: > printer is on device 'lpd' speed -1 > queuing is enabled > printing is disabled > 10 entries > daemon present > > so the status the printer it's "DISABLED", > I changed in the file /etc/cups/printers.conf the param "State stopped" by > "State Idle" and then it's worked. > My question it's, exist any command for enable printer in status disabled > without modify the file printers.conf???? >First off, hopefully you can determine why your printer became disabled (paper jam?). Next, figure out what the printer name is via lpstat. You might also inspect the queues to determine if you need to delete any print jobs.>From there you can enable or disable via cupsenable <lp_name> orcupsdisable <lp_name>> > > pd: excuse me my inglish (I speak spanish) > Thanks > > -- > *Atte. Rodrigo Pichi?ual N.* > *Ingeniero Inform?tico* > *rodrigo.pichinual at gmail.com <rodrigo.pichinual at gmail.com>* > *+56 9 87272971* > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- ---~~.~~--- Mike // SilverTip257 //