* [gentoo-user] got lprng? @ 2006-02-19 21:53 maxim wexler 2006-02-19 22:29 ` Manuel A. McLure 0 siblings, 1 reply; 11+ messages in thread From: maxim wexler @ 2006-02-19 21:53 UTC (permalink / raw To: gentoo-user Then you're part of a dying breed evidently. I wasn't able to get cups to work so installed lprng. For more details on my problem go to the archives and search against my name and 'print' and 'cups' This is what I see in my log. It says at least two spoolers active but ps -A reveals only one. 2006-02-19-14:13:11.018 sarawak [5955] lpd Do_lock: flock failed 'Resource temporarily unavailable' Fatal error - Another print spooler active, possibly lpd process '5948' 2006-02-19-14:13:11.022 sarawak [5955] lpd cleanup: done, exit(0) After running lprng stop ps-A reveals _no_ lpd processes and after attempts to print the log reports that the printer is "waiting". I used # lpd -F -D1 to read the log according to the instructions at lprng.com/PrintingCookbook/index.html Someone suggested that that particular command started another spooler. But if everything was alright in the first place it should have printed (lpr -J file.txt) before having to look at the log to see what was wrong. -mw __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-19 21:53 [gentoo-user] got lprng? maxim wexler @ 2006-02-19 22:29 ` Manuel A. McLure 2006-02-20 1:14 ` Glenn Enright 2006-02-20 6:09 ` maxim wexler 0 siblings, 2 replies; 11+ messages in thread From: Manuel A. McLure @ 2006-02-19 22:29 UTC (permalink / raw To: gentoo-user On Sunday 19 February 2006 01:53 pm, maxim wexler wrote: > Then you're part of a dying breed evidently. > > I wasn't able to get cups to work so installed lprng. > > For more details on my problem go to the archives and > search against my name and 'print' and 'cups' I can't imagine how frustrated you are at this point. If you wouldn't mind, I have some troubleshooting suggestions. It appears that perhaps you might have some problems with the actual printer interface (/dev/lp0), so let's make sure that works well. FIrst, make sure nothing, even lprng, is using /dev/lp0 - shut down lprng and make sure there are no processes left around. Then run the following command: /bin/echo -e -n Hello\\015\\012World\\015\\012\\014 >textfile.txt And finally cat textfile.txt >/dev/lp0 This should print out Hello World followed by a form feed. Unless this works, there's not much use trying to get lprng (or even CUPS) to work. -- Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-19 22:29 ` Manuel A. McLure @ 2006-02-20 1:14 ` Glenn Enright 2006-02-20 0:54 ` Manuel A. McLure 2006-02-20 6:09 ` maxim wexler 1 sibling, 1 reply; 11+ messages in thread From: Glenn Enright @ 2006-02-20 1:14 UTC (permalink / raw To: gentoo-user On Monday 20 February 2006 11:29, Manuel A. McLure wrote: > /bin/echo -e -n Hello\\015\\012World\\015\\012\\014 >textfile.txt I am having similar difficulty getting my hp720c working. After trying the test you suggested, I still got just nothing on the printer. I have both parport, parport_pc, and lp modules loaded, which gives me the lp0 device. any suggestions? # ll lp0 crwxrwxrw- 1 root lp 6, 0 Feb 20 14:08 lp0 PS the printer does work in knoppix. Does this seem like probably a kernel issue? -- A critic is a bundle of biases held loosely together by a sense of taste. -- Whitney Balliett -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-20 1:14 ` Glenn Enright @ 2006-02-20 0:54 ` Manuel A. McLure 2006-02-20 1:47 ` Glenn Enright 0 siblings, 1 reply; 11+ messages in thread From: Manuel A. McLure @ 2006-02-20 0:54 UTC (permalink / raw To: gentoo-user On Sunday 19 February 2006 05:14 pm, Glenn Enright wrote: > On Monday 20 February 2006 11:29, Manuel A. McLure wrote: > > /bin/echo -e -n Hello\\015\\012World\\015\\012\\014 >textfile.txt > > I am having similar difficulty getting my hp720c working. After trying the > test you suggested, I still got just nothing on the printer. I have both > parport, parport_pc, and lp modules loaded, which gives me the lp0 device. > any suggestions? > > # ll lp0 > crwxrwxrw- 1 root lp 6, 0 Feb 20 14:08 lp0 > > PS the printer does work in knoppix. Does this seem like probably a kernel > issue? Possibly - try running "dmesg" after the "cat textfile.txt >/dev/lp0" and see if anything shows in the kernel logs. -- Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-20 0:54 ` Manuel A. McLure @ 2006-02-20 1:47 ` Glenn Enright 2006-02-20 1:36 ` Manuel A. McLure 0 siblings, 1 reply; 11+ messages in thread From: Glenn Enright @ 2006-02-20 1:47 UTC (permalink / raw To: gentoo-user On Monday 20 February 2006 13:54, Manuel A. McLure wrote: > On Sunday 19 February 2006 05:14 pm, Glenn Enright wrote: > > On Monday 20 February 2006 11:29, Manuel A. McLure wrote: > > > /bin/echo -e -n Hello\\015\\012World\\015\\012\\014 >textfile.txt > > > > I am having similar difficulty getting my hp720c working. After trying > > the test you suggested, I still got just nothing on the printer. I have > > both parport, parport_pc, and lp modules loaded, which gives me the lp0 > > device. any suggestions? > > > > # ll lp0 > > crwxrwxrw- 1 root lp 6, 0 Feb 20 14:08 lp0 > > > > PS the printer does work in knoppix. Does this seem like probably a > > kernel issue? > > Possibly - try running "dmesg" after the "cat textfile.txt >/dev/lp0" and > see if anything shows in the kernel logs. > > -- > Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> > ...for in Ulthar, according to an ancient and significant law, > no man may kill a cat. -- H.P. Lovecraft after modprobe lp lp0: using parport0 (interrupt-driven). after cat textfile... lp0: ECP mode -- What you of the CHOAM directorate seem unable to understand is that you seldom find real loyalties in commerce. When did you last hear of a clerk giving his life for the company? Perhaps your deficiency rests in the false assumption that you can order men to think and cooperate. This has been a failure of everything from religions to general staffs throughout history. General staffs have a long record of destroying their own nations. As to religions, I recommend a rereading of Thomas Aquinas. As to you of CHOAM, what nonsense you believe! Men must want to do things out of their own innermost drives. People, not commercial organizations or chains of command, are what make great civilizations work. Every civilization depends upon the quality of the individuals it produces. If you over-organize humans, over-legalize them, suppress their urge to greatness -- they cannot work and their civilization collapses. -- A letter to CHOAM, Attributed to The Preacher -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-20 1:47 ` Glenn Enright @ 2006-02-20 1:36 ` Manuel A. McLure 2006-02-21 9:11 ` Glenn Enright 0 siblings, 1 reply; 11+ messages in thread From: Manuel A. McLure @ 2006-02-20 1:36 UTC (permalink / raw To: gentoo-user On Sunday 19 February 2006 05:47 pm, Glenn Enright wrote: > after modprobe lp > lp0: using parport0 (interrupt-driven). > > after cat textfile... > lp0: ECP mode Some googling brought up this: http://forums.gentoo.org/viewtopic-t-416986-highlight-.html Apparently there are problems with recent kernels and the printer port. Apparently ACPI Plug and Play support breaks it. Try the kernel settings in that forum post and see if that fixes it. -- Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-20 1:36 ` Manuel A. McLure @ 2006-02-21 9:11 ` Glenn Enright 0 siblings, 0 replies; 11+ messages in thread From: Glenn Enright @ 2006-02-21 9:11 UTC (permalink / raw To: gentoo-user On Monday 20 February 2006 14:36, Manuel A. McLure wrote: > On Sunday 19 February 2006 05:47 pm, Glenn Enright wrote: > > after modprobe lp > > lp0: using parport0 (interrupt-driven). > > > > after cat textfile... > > lp0: ECP mode > > Some googling brought up this: > > http://forums.gentoo.org/viewtopic-t-416986-highlight-.html > > Apparently there are problems with recent kernels and the printer port. > Apparently ACPI Plug and Play support breaks it. Try the kernel settings in > that forum post and see if that fixes it. > > -- > Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> > ...for in Ulthar, according to an ancient and significant law, > no man may kill a cat. -- H.P. Lovecraft ok thanks for that lead. will check it out tonight :) -- Class, that's the only thing that counts in life. Class. Without class and style, a man's a bum; he might as well be dead. -- "Bugsy" Siegel -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-19 22:29 ` Manuel A. McLure 2006-02-20 1:14 ` Glenn Enright @ 2006-02-20 6:09 ` maxim wexler 2006-02-20 18:59 ` Manuel A. McLure 1 sibling, 1 reply; 11+ messages in thread From: maxim wexler @ 2006-02-20 6:09 UTC (permalink / raw To: gentoo-user --- "Manuel A. McLure" <manuel@mclure.org> wrote: > On Sunday 19 February 2006 01:53 pm, maxim wexler > wrote: > > Then you're part of a dying breed evidently. > > > > I wasn't able to get cups to work so installed > lprng. > > > > For more details on my problem go to the archives > and > > search against my name and 'print' and 'cups' > > I can't imagine how frustrated you are at this > point. > > If you wouldn't mind, I have some troubleshooting > suggestions. It appears that > perhaps you might have some problems with the actual > printer interface > (/dev/lp0), so let's make sure that works well. > > FIrst, make sure nothing, even lprng, is using > /dev/lp0 - shut down lprng and > make sure there are no processes left around. > > Then run the following command: > > /bin/echo -e -n > Hello\\015\\012World\\015\\012\\014 >textfile.txt > > And finally > > cat textfile.txt >/dev/lp0 This looks like an elaborate form of echo -e "This text should appear on the printer\f" > /dev/lp0 Which works fine. Also, from apsfilter I was able to print a test page. So the hardware seems to be OK. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng? 2006-02-20 6:09 ` maxim wexler @ 2006-02-20 18:59 ` Manuel A. McLure 2006-03-01 17:55 ` [gentoo-user] got lprng?[SOLVED] maxim wexler 0 siblings, 1 reply; 11+ messages in thread From: Manuel A. McLure @ 2006-02-20 18:59 UTC (permalink / raw To: gentoo-user On Sunday 19 February 2006 10:09 pm, maxim wexler wrote: > This looks like an elaborate form of > > echo -e "This text should appear on the printer\f" > > /dev/lp0 > > Which works fine. Also, from apsfilter I was able to > print a test page. So the hardware seems to be OK. OK, then. Now, if I remember correctly, you require pure text printing using the printer's built-in bitmap fonts, correct? Is this an absolute requirement, or is the requirement just to be able to print text files? If the latter, then CUPS may still be an option. CUPS will convert the text file to Postscript, then pipe it through Ghostscript and print it out on the printer in graphical mode. The disadvantages of this method are a) it will probably be slower than pure text printing, b) the font used to print the text will be something like Courier instead of the printer's built-in font, and c) if your print file includes printer escape sequences (to change font size, etc.) it won't work correctly. These issues can be worked around by defining a raw CUPS queue and manually filtering the input file through unix2dos or something similar, Now, supposing that you do require pure text printing, you'll want an /etc/printcap entry like the following: lp:sd=/var/spool/lpd/%P :force_localhost :lp=/dev/lp0 :filter=/usr/lib/filters/lpf Once you've created the entry, run "checkpc" to check for any configuration errors, and "/etc/init.d/lprng start" - let's see if that does the trick. I think the "force_localhost" may resolve your hostname issues. -- Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng?[SOLVED] 2006-02-20 18:59 ` Manuel A. McLure @ 2006-03-01 17:55 ` maxim wexler 2006-03-01 18:30 ` Manuel McLure 0 siblings, 1 reply; 11+ messages in thread From: maxim wexler @ 2006-03-01 17:55 UTC (permalink / raw To: gentoo-user > an /etc/printcap entry like the following: > > lp:sd=/var/spool/lpd/%P > :force_localhost > :lp=/dev/lp0 > :filter=/usr/lib/filters/lpf This didn't quite do it. But I followed the lprng link at linuxprinting.org and came across the sample printcap there which I adapted and...success! Except for the part where I actually understand what's going on :^( __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] got lprng?[SOLVED] 2006-03-01 17:55 ` [gentoo-user] got lprng?[SOLVED] maxim wexler @ 2006-03-01 18:30 ` Manuel McLure 0 siblings, 0 replies; 11+ messages in thread From: Manuel McLure @ 2006-03-01 18:30 UTC (permalink / raw To: gentoo-user maxim wexler wrote: > This didn't quite do it. But I followed the lprng link > at linuxprinting.org and came across the sample > printcap there which I adapted and...success! Except > for the part where I actually understand what's going > on :^( Well, I'm glad it's all finally working for you. I know just how frustrating it can be to figure out stuff like this. -- Manuel A. McLure KE6TAW <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-03-01 18:38 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-02-19 21:53 [gentoo-user] got lprng? maxim wexler 2006-02-19 22:29 ` Manuel A. McLure 2006-02-20 1:14 ` Glenn Enright 2006-02-20 0:54 ` Manuel A. McLure 2006-02-20 1:47 ` Glenn Enright 2006-02-20 1:36 ` Manuel A. McLure 2006-02-21 9:11 ` Glenn Enright 2006-02-20 6:09 ` maxim wexler 2006-02-20 18:59 ` Manuel A. McLure 2006-03-01 17:55 ` [gentoo-user] got lprng?[SOLVED] maxim wexler 2006-03-01 18:30 ` Manuel McLure
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox