/dev/lp0 works no more!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > /dev/lp0 works no more!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    /dev/lp0 works no more!  
Kris Katterjohn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:17 PM

a few weeks ago X stopped working on my slackware9 drive, and i wrote
a book report on there in regular text format. so, i wrote a little
printing app that prints the input file by simply opening /dev/lp0 and
i set a counter for line breaks at 79 characters for correct the page
size and correct formatting and blah blah blah and everything worked
fine. i fixed a little bit of the report using mcedit and then ran it
through the app with a laser printer in the regular printer port in my
computer.


so, i ended up reinstalling slackware on another drive to fix X and
all and i copied my code and things over. reinstalled the kernel and
everything worked fine. or so i thought... since i only have
winprinters, i figured i'd print this thing off using my app. i
recompile it, run it, but /dev/lp0 doesn't work.

(on the same computer as before) i did:


[root@Meryl]$ echo "yes" > /dev/lp0
/dev/lp0: no such device



as far as i can remember, i reinstalled everything (slackware9,
kernel, etc.) the same way as before, and on the same computer, with
the same printer, but it just doesn't seem to work.

i even took my drive to another computer, with another printer, and
tried lp0, lp1, and lp2.. to no prevail.

not that it matters, but i'm running Slackware 9 with kernel
2.6-test9.

i went and reinstalled the kernel again insuring most of the parallel
port options were enabled, but it still didn't work 

ideas?





[ Post a follow-up to this message ]



    Re: /dev/lp0 works no more!  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:18 PM

On 7 Dec 2003 11:56:51 -0800, Kris Katterjohn
<coldfusion@kevinbreak.com> wrote:
quote:
> a few weeks ago X stopped working on my slackware9 drive, and i wrote > a book report on there in regular text format. so, i wrote a little > printing app that prints the input file by simply opening /dev/lp0 and > i set a counter for line breaks at 79 characters for correct the page > size and correct formatting and blah blah blah and everything worked > fine. i fixed a little bit of the report using mcedit and then ran it > through the app with a laser printer in the regular printer port in my > computer. > > > so, i ended up reinstalling slackware on another drive to fix X and > all and i copied my code and things over. reinstalled the kernel and > everything worked fine. or so i thought... since i only have
^^^^^^^^^^^^^^^^^
quote:
> winprinters, i figured i'd print this thing off using my app. i
^^^^^^^^^^^ That might be your problem. By definition, a winprinter is too dumb to do anything with plain text. If you have Slackware 9 with X, why haven't you installed a print server?
quote:
> recompile it, run it, but /dev/lp0 doesn't work. > > (on the same computer as before) i did: > > > [root@Meryl]$ echo "yes" > /dev/lp0 > /dev/lp0: no such device > >
Is there anything about "lp" in /var/log/messages? Are you sure you don't have a usb printer?
quote:
> > as far as i can remember, i reinstalled everything (slackware9, > kernel, etc.) the same way as before, and on the same computer, with > the same printer, but it just doesn't seem to work. > > i even took my drive to another computer, with another printer, and > tried lp0, lp1, and lp2.. to no prevail. > > not that it matters, but i'm running Slackware 9 with kernel > 2.6-test9. > > i went and reinstalled the kernel again insuring most of the parallel > port options were enabled, but it still didn't work >
"Most of the parallel port options" doesn't say which ones, or whether they were compiled as modules. Did you enable CONFIG_PRINTER? Try the command "modprobe lp". -- Thanks to Nigeria, any email with the word "urgent" in the subject or address will be deleted.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:25 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register