Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. I use this command to remove all print queue what I have.
lprm *
2. Then I need to Apply (press that button on Printer configuration tool) the default printer again.
what command I need to type to get Apply again for default printer?
I still have no idea which apply button in which printer
configuration tool you're talking about, and what exactly
you're applying. If you managed to tell us that we may be
able to get you in the right direction...
lprm *
just deletes all queued jobs and doesn't do any modifications
to the printer object.
Well yes that lprm removes all queue.
Situation I have, lpr gives jobs to print, once per 3 months printer is switched off or something like that.
So lpr sends jobs, but they are not prited. But they stand in queue. So when this happens, the only thing how I can manage that printer prints againg is to go to my fax server. Remove from terminal with lprm all printing jobs and go to Administration -> Printing ->
click on my default printer -> APPLY -> Close
(I have tried click on save, does not help either)
after these steps printing again works fine. Without apply it doesn t print, have tried a lot of. only be apply clicking on default printer somehow accepts new jobs.
so what I want to do is put script, which after every reboot
1. removes all printing jobs lprm * (if there is any)
2. and need command which does the same as pushing Apply button on printer congfig tool.
and I need help on 2 point.
thank you for your help guys!
Remove from terminal with lprm all printing jobs and go to Administration -> Printing ->
click on my default printer -> APPLY -> Close
(I have tried click on save, does not help either)
*sigh*
I don't KNOW which window manager or desktop environment you're
using. I use fluxbox - there is no Administration -> Printing
-> default printer.
Hence I still don't know what kind of tool you're using, and what
that apply button does. Can you please tell us what tool that is
in which you click on apply?
the tool what Im using in Fedora is:
system-config-printer-gui
(if you run this tool from terminal)
So there is option to add printer, delete, etc.
I need the existing printer reapply. I have a printer and its working fine, just I need to via terminal APPLY it.
(clicking apply button solves me problems)
something like this image is shown and Im clicking on Edit and Then Apply. And problems with no printing are gone.
The light goes on!! In the typical GUI dialog, "apply" simply means to proceed with the changes. There is no equivalent in a terminal---ie you simply type commands.
Are you saying that you can get your printer working by going to this dialog and --without making any changes--just hit the "apply" button?
I wonder if simply re-starting the cups server would work? Here is the documentation showing all the command-line functions: http://www.cups.org/documentation.php
I said earlier that there is no equivalent terminal command, but that's not strictly correct. Every GUI is a front end for some more basic command. As a mimimum, your particular GUI tool probably writes to some file when you click "apply"---even though you made no changes.
If I were dealing with this problem, I would try to find out why the printer gets "lost", and not writing a script to get it restarted. If you don't know what is causing the behavior--ie the "root cause", then you have no assurance that you script will always work.
thank you.
Will try:
'cupsenable QUEUENAME'
first I need to get situation when printer will no be available so there will be some lp queue and printer will not work. then I will try to apply and see what happens.
Thank you guys for help.
really appreciate your given time to solve my problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.