ls > /dev/lp0 fails--but /dev/lp0 exists

ls > /dev/lp0 fails--but /dev/lp0 exists

Post by Al Bersba » Tue, 03 May 1994 06:56:05



I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
386DX/25 and 486DX.  I have the same problem on all of them:

ls > /dev/lp0 gives:    
    bash: /dev/lp0: no such device.

ls -al /dev/lp0 gives:  
   crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0

Nothing prints.  

All these machines print fine on lpt1: under DOS.  I've read the
print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
uname -a gives:  
    Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386

I'd appreciate any help you can give.

 
 
 

ls > /dev/lp0 fails--but /dev/lp0 exists

Post by Alper Ak » Wed, 04 May 1994 04:45:46


: I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
: 386DX/25 and 486DX.  I have the same problem on all of them:
:  
: ls > /dev/lp0 gives:    
:     bash: /dev/lp0: no such device.
:  
: ls -al /dev/lp0 gives:  
:    crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0

: Nothing prints.  

: All these machines print fine on lpt1: under DOS.  I've read the
: print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
: uname -a gives:  
:     Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386

: I'd appreciate any help you can give.

Instead of lp0 try to use lp1. It should work. I had the same problem when
I first installed linux too. I guess dos LPT1 is lp1 under linux. But
don't ask me what lp0 then :-)

hope that helps..

Alper

 
 
 

ls > /dev/lp0 fails--but /dev/lp0 exists

Post by Drew Eckhar » Wed, 04 May 1994 04:53:34





>: I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
>: 386DX/25 and 486DX.  I have the same problem on all of them:
>:  
>: ls > /dev/lp0 gives:    
>:     bash: /dev/lp0: no such device.
>:  
>: ls -al /dev/lp0 gives:  
>:    crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0

>: Nothing prints.  

>: All these machines print fine on lpt1: under DOS.  I've read the
>: print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
>: uname -a gives:  
>:     Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386

>: I'd appreciate any help you can give.

>Instead of lp0 try to use lp1. It should work. I had the same problem when
>I first installed linux too. I guess dos LPT1 is lp1 under linux. But
>don't ask me what lp0 then :-)

lp0 is the parallel port on a monochrome graphics adapter, lp1 and
lp2 are the first 'normal' parallel ports.
 
 
 

ls > /dev/lp0 fails--but /dev/lp0 exists

Post by Not in real lif » Wed, 04 May 1994 19:15:45



>I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
>386DX/25 and 486DX.  I have the same problem on all of them:

>ls > /dev/lp0 gives:    
>    bash: /dev/lp0: no such device.

>ls -al /dev/lp0 gives:  
>   crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0

>Nothing prints.  

>All these machines print fine on lpt1: under DOS.  I've read the
>print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
>uname -a gives:  
>    Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386

>I'd appreciate any help you can give.

well, are you sure your kernel is set up to support parallel printers?
to be safe (and to have some fun) grab the kernel sources off of
sunsite.unc.edu or tsx-11.mit.edu
and make your own kernel.
you can add options you need, and dump those you don't... it'll be better
for you, and faster, probably.
btw, if you think you might need more than 2 serial ports, add the line

#define CONFIG_AUTO_IRQ

to the beginning of /usr/src/linux/drivers/char/serial.c

it'll let you use non-standard IRQs for serial ports.
i think it should be default, and will always add it for friends' machines.

hiram

 
 
 

ls > /dev/lp0 fails--but /dev/lp0 exists

Post by James LewisMo » Wed, 04 May 1994 17:07:54




>: I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
>: 386DX/25 and 486DX.  I have the same problem on all of them:
>:  
>: ls > /dev/lp0 gives:    
>:     bash: /dev/lp0: no such device.
>:  
>: ls -al /dev/lp0 gives:  
>:    crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0
>: Nothing prints.  
>: All these machines print fine on lpt1: under DOS.  I've read the
>: print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
>: uname -a gives:  
>:     Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386
>: I'd appreciate any help you can give.
>Instead of lp0 try to use lp1. It should work. I had the same problem when
>I first installed linux too. I guess dos LPT1 is lp1 under linux. But
>don't ask me what lp0 then :-)
>hope that helps..
>Alper

in the printing.HOWTO it says...

2.13 Printer device names
=========================

   On an XT bus system `LPT1:' becomes `/dev/lp0' (major=6, minor=0),
on an AT `LPT1:' becomes `/dev/lp1' (major=6, minor=1). To be more
precise:

     Name Major Minor I/O address
      lp0   6     0       0x3bc
      lp1   6     1       0x378
      lp2   6     2       0x278

get it, read it.  It will help with most of the problems I've seen.

If you try everything in there, and it still doesn't work look for
message at startup looking something like...
lp_init: lp1 exists, using polling driver

If you don't see it parallel printer support is probably not in your
kernel, and your going to have to recompile it.

jim

 
 
 

1. Printing problem : ls > /dev/lp0 -- /dev/lp0 : No Such Device ?

Hello,
I have install a printer to the parellel port of my linux box then enter
the command :
        ls > /dev/lp0
but get this error message
        bash : /dec/lp0 : No Such Device
However, when I boot my linux box under MSDOS, the printer works, can
anybody help please ?

Thanks and Regards
Wong

2. Linux and Win2000

3. Printtool not seeing my printer on /dev/lp0, /dev/lp1 or /dev/lp2

4. ping <hostname>

5. I can print via ls > lp0 in /dev, but...please help

6. PANIC: k_trap 0x00000006

7. bash: ls > /dev/lp0 :No such device

8. HELP : squid.conf

9. /dev/lp0 nor /dev/lp1 getting detected

10. /dev/sequencer and /dev/lp0

11. Help! /dev/lp0 does not exist!

12. /dev/lp0 does not exist in RH 6.1

13. SwapFILE? /dev/lp0 not exist?