|
Home > Archive > Unix Programming > January 2004 > /dev/lp0 works no more!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
/dev/lp0 works no more!
|
|
| Kris Katterjohn 2004-01-23, 5:05 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?
| |
| Bill Marcum 2004-01-23, 5:07 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.
| |
| Bill Marcum 2004-01-23, 5:07 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.
|
|
|
|
|