LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-12-2003, 06:36 AM   #1
j-charles
Member
 
Registered: Sep 2001
Location: dunkerque, france
Distribution: mandrake 9.0 -> debian woody
Posts: 39

Rep: Reputation: 15
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 ?
 
Old 12-19-2003, 05:55 AM   #2
j-charles
Member
 
Registered: Sep 2001
Location: dunkerque, france
Distribution: mandrake 9.0 -> debian woody
Posts: 39

Original Poster
Rep: Reputation: 15
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_BEGINrinter1
# - 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lpd port 515 reopens itself debaholic Debian 2 11-26-2003 09:29 AM
Cups defaults to on during boot / lpd can't bind port 515 ehdwuld Linux - Software 2 09-29-2003 07:39 PM
Cannot bind lpd port 515 rdmapes Linux - Newbie 3 09-19-2003 05:49 AM
lpd can't bind to port 515 (RH 8) Tafta Linux - Distributions 4 02-28-2003 10:31 AM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration