LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-07-2010, 03:41 PM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Rep: Reputation: 16
remote printing - printcap problem?


I have just set up a new Brother HL5240L on my desktop, using lprng. It works fine. Now I want to arrange to use the printer from another computer on the LAN. This was working with my previous printer.

I modified the original client /etc/printcap. It almost works; the printer lights flash and the motor starts but nothing is printed. Lpq and lpstat show the file has arrived, but it doesn't seem to be right; it is always the same size, no matter what the orignal file may be.

Here is the client printcap I've tried. Any suggestions for fixing it please?
(I know I could try CUPS but I don't like it - prefer lprng.)

HL5240:\
:sd=/var/spool/lpd/HL5240:rm=arcadia:rp=HL5240:\
:if=/usr/local/Brother/lpd/filterHL5240:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Last edited by acampbell; 12-07-2010 at 03:54 PM.
 
Old 12-07-2010, 04:33 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi acampbell,

did you check the permissions? Be sure that the user who wants to print is a member of the lp group (I'm not sure but probably on the client and the server).
You may check with nmap if the port where lpd should listen for printjobs is really open
Code:
nmap -p portnumber printserverip
Markus
 
Old 12-07-2010, 04:57 PM   #3
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by markush View Post
Hi acampbell,

did you check the permissions? Be sure that the user who wants to print is a member of the lp group (I'm not sure but probably on the client and the server).
You may check with nmap if the port where lpd should listen for printjobs is really open
Code:
nmap -p portnumber printserverip
Markus
I'm not a member of the lp group on either host or client. I don't know which port lpd uses. But none of this should matter, surely, because with the previous printer I could print from the remove client without problems. I don't see why this one should be different.
 
Old 12-07-2010, 05:05 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Well, I tried grep on the /etc/services file and did not find a port for lpd as well.
The command
Code:
nmap -sV serverip
checks all ports up to 1000, maybe that helps.
Otherwise, since the printer seems to work (tries to work) there may be a driver issue.
Which printer did you have before the brother?
It was long ago when I used lpr for printing (back in 1996 or so ) but what about the driver on the client? with cups I know the proper driver is used automatically, but what about the driver for the client with lpr?

Markus
 
Old 12-08-2010, 03:23 AM   #5
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by markush View Post
Well, I tried grep on the /etc/services file and did not find a port for lpd as well.
The command
Code:
nmap -sV serverip
checks all ports up to 1000, maybe that helps.
Otherwise, since the printer seems to work (tries to work) there may be a driver issue.
Which printer did you have before the brother?
It was long ago when I used lpr for printing (back in 1996 or so ) but what about the driver on the client? with cups I know the proper driver is used automatically, but what about the driver for the client with lpr?

Markus
Thanks - you were right, it is the driver. I tried the ljet4 fiilter from magicfilter and it printed. But it's odd; on the server (desktop) I'm using the driver supplied by Brother, which is fine. I put the same thing on the client and it didn't print. I must experiment further.
 
Old 12-09-2010, 08:51 AM   #6
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Here is a follow-up to my last post. I've found that I can use the Brother filter provided I do so on the host machine, not on the client. Having set up an appropriate entry in /var/spool/lpd for HL5240 I then modified /etc/printcap as follows:

lp|HL5240|HL5240:\
:sd=/var/spool/lpd/HL5240:rm=arcadia:rp=HL5240:lpr_bounce:

Last edited by acampbell; 12-09-2010 at 08:54 AM.
 
  


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
Remote printing problem becomes total system meltdown - can't even login jamespetts Linux - General 13 06-12-2011 06:40 AM
Remote printing problem bnbguy Red Hat 1 06-08-2007 09:15 PM
Remote printing cups problem. zeitounator Linux - Server 1 09-11-2006 04:43 PM
cups-client and /etc/printcap mrodmac Linux - General 1 06-20-2006 08:42 PM
PRINTCAP File Que David@330 Linux - Newbie 0 07-28-2004 03:21 AM

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

All times are GMT -5. The time now is 10:32 AM.

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