From: esulzner@demo5.intel.com (Eric Sulzner) Subject: Re: lpc couldn't start lpd daemon Date: 29 Sep 1993 02:59:01 GMT
In article <287ioi$36f@usenet.mcs.kent.edu>
ransel@mcs.kent.edu (Ransel Yoho) writes:
I solved this by running two xterms, in one strace -f lpd (kill the old
lpd first), in the other strace -f something that doesn't work (lpr
filename, or lpc start lp). One of the windows (I think the lpd one)
got an error when it tried to do an operation on /dev/lp, which was a
directory. I removed it and made a link from lp to lp1. Now it works.
FAQ? I've answered this a few times. Your mileage may vary. Use
strace -f if it does.
I'm running the slackware thaT looks like this:
# uname -a
Linux darkstar 0.99.12 #6 Sun Aug 8 16:02:35 CDT 1993 i486
I'm having trouble with lpr from the linux:.99pl12. The following commands
show my configuration of lpd and the errors, each command is preceded by [#]:
[1]$ cat /etc/printcap
lp|laser|HPlaser in Library:\
:lp=/dev/ttyS1:sd=/usr/spool/laser:br#9600:\
:pl#66:pw#96:sh:lf=/usr/adm/lpd-errs:fs#021:fc#0300:
[2]$ ls -l /usr/spool/laser/*
-rw-r--r-- 1 root daemon 3 Sep 27 14:11 /usr/spool/laser/lock
-rw-r--r-- 1 root daemon 0 Sep 24 07:48 /usr/spool/laser/status
[3]$ grep lp rc rc.local
rc.local:/etc/lpd &
[4]$ ps -aux | grep lpd
root 37 0.0 7.0 68 212 ? S 14:11 0:00 /etc/lpd
[5]$ ls /bin | lpr -P laser
[6]$ lpq
Warning: no daemon present
Rank Owner Job Files Total Size
1st ransel 10 (standard input) 629 bytes
[7]$ ls -l /usr/spool/laser/*
-rw-rw---- 1 daemon daemon 70 Sep 27 14:54 /usr/spool/laser/cfA010jigger
-rw-rw---- 1 ransel daemon 629 Sep 27 14:54 /usr/spool/laser/dfA010jigger
-rw-r--r-- 1 root daemon 4 Sep 27 14:54 /usr/spool/laser/lock
-rw-r--r-- 1 root daemon 0 Sep 24 07:48 /usr/spool/laser/status
[8]$ lpc
lpc> start laser
laser:
printing enabled
lpc: connect: No such file or directory
couldn't start daemon
lpc>
[9]$ ls -l /etc/lpd /usr/bin/lpc /usr/bin/lpr /usr/bin/lpq /usr/etc/lpd
lrwxrwxrwx 1 root root 12 Sep 24 08:45 /etc/lpd -> /usr/etc/lpd
-r-xr-xr-x 1 root root 21508 Aug 12 21:06 /usr/bin/lpc
-r-sr-sr-x 1 daemon daemon 12328 Aug 12 20:58 /usr/bin/lpq
-r-sr-sr-x 1 root daemon 14048 Aug 12 20:58 /usr/bin/lpr
-r-sr-x--- 1 daemon daemon 39696 Aug 12 16:44 /usr/etc/lpd
TCP/IP stuff on this old 386sx machine works fine, it has a 3C503 etherlink II
card; telnet, ftp, & rlogin all work fine. The requests get spooled, but
a daemon does not get spawned to print the file.
Please advise!!!
Thanks,
Ransel (ransel@mcs.kent.edu)