LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   LPD won't run...(515/tcp port) (https://www.linuxquestions.org/questions/linux-hardware-18/lpd-wont-run-515-tcp-port-115162/)

j-charles 11-12-2003 06:36 AM

LPD won't run...(515/tcp port)
 
I can't print anything on my usb Epson printer
although the module configuration for USB is right
(printer detected by 'usbview').

My computer has no internet connection and I don't know anything about
network. But I've seen things while building a kernel telling me
I needed an internet protocol.
That makes me think I may have got a network configuration problem all the same.


First, when installing the lprng package (woody) :
------
debian:/home/jeancharles# apt-get install lprng
(...)
Dépaquetage de lprng (à partir de .../lprng/lprng_3.8.10-1_i386.deb) ...
Paramétrage de lprng (3.8.10-1) ...
Starting printer spooler: Fatal error - Cannot bind to lpd port '515'
(...)
--------------------


'echo $HOSTNAME' gives me
------
$ echo $HOSTNAME
debian
$ cat /etc/hostname
debian
--------------------

Part of my /etc/hosts file
------
127.0.0.1 debian localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
--------------------

Reproduce the error :
------
# /etc/init.d/lprng stop
Stopping printer spooler: start-stop-daemon: warning: failed to kill 26311: \
No such process
lprng.
# /etc/init.d/lprng start
Starting printer spooler: Fatal error - Cannot bind to lpd port '515'
--------------------

No one is listenning to port 515 :
------
# netstat -an |grep 515
--------------------

Normal configuration :
------
# grep printer /etc/inetd.conf
# grep "515/" /etc/services
printer 515/tcp spooler # line printer spooler
--------------------


lpq :
------
# lpq
Printer 'lp@localhost' - cannot open connection - Aucun fichier ou \
répertoire de ce type
Make sure the remote host supports the LPD protocol
--------------------

I did configure my printer with apsfilterconfig, then
------
# checkpc -f
--------------------


Here is also what cups tells me
('apt-get --purge remove lprng', then 'apt-get install cups')
------
# cat /var/log/cups/error_log
I [06/Nov/2003:19:54:27 +0100] Listening to 0:631
I [06/Nov/2003:19:54:27 +0100] Configured for up to 100 clients.
I [06/Nov/2003:19:54:27 +0100] LoadPPDs: Wrote "/etc/cups/ppds.dat", 12 PPDs...
E [06/Nov/2003:19:54:27 +0100] StartListening: Unable to open \
listen socket \- Famille d'adresses non supportée par le protocole.
--------------------



I also just saw a trick in this forum I had no time to try :
<<edit your /etc/service and change 515 to 516 (usually 516 is idle)>>
Why ?

j-charles 12-19-2003 05:55 AM

Since last summer, when I moved from Mandrake to Debian Woody,
I can't print.

But I hope I can soon :
I realized that I forgot to compile my kernel with the option IP...
(Thouhg I have no internet connection - and I knew I had to tick this one! )

Now, I have new messages and I still can't print :

-----
root@localhost:~# lpr aeff.txt
root@localhost:~# lpq
Printer: lp@debian 'jcimpr'
Queue: no printable jobs in queue
Server: no server active
Status: job 'root@debian+999' error 'aborting operations' at 01:13:33.551
Rank Owner/ID Class Job Files Size Time
error root@debian+999 A 999 ERROR: aborting operations
root@localhost:~# netstat -an |grep 515
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
root@localhost:~# fuser -v 515/tcp

USER PID ACCESS COMMAND
515/tcp root 1941 f.... lpd
root@localhost:~# ps auxw | grep lpd
daemon 1941 0.0 0.3 2244 872 ? S 00:54 0:00 lpd Waiting
root 3022 1.0 0.3 1772 712 pts/0 S 01:18 0:00 grep lpd
root@localhost:~# cat /etc/printcap
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
lp|pips/sc580;r=300x300;q=medium;c=full;p=a4;m=auto:\
:lp=/dev/usb/lp0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/aps1:\
:lf=/var/spool/lpd/aps1/log:\
:af=/var/spool/lpd/aps1/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this
root@localhost:~# lsmod
Module Size Used by Not tainted
nls_iso8859-1 2880 0 (autoclean)
sr_mod 11832 0 (autoclean)
cdrom 28736 0 (autoclean) [sr_mod]
isofs 17600 0 (autoclean)
rtc 5592 0 (autoclean)
printer 5632 0
usb-ohci 17952 0 (unused)
usbcore 48992 1 [printer usb-ohci]
nls_cp437 4384 4 (autoclean)
vfat 9436 4 (autoclean)
fat 29432 0 (autoclean) [vfat]
sg 24036 0 (unused)
ide-scsi 7680 0
scsi_mod 49804 3 [sr_mod sg ide-scsi]
trident 27168 0
ac97_codec 9632 0 [trident]
soundcore 3364 2 [trident]
nls_iso8859-15 3392 4
nls_cp850 3616 0 (unused)

-----

ANY IDEA ?

thanks


All times are GMT -5. The time now is 04:45 AM.