LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   remote printing (https://www.linuxquestions.org/questions/linux-networking-3/remote-printing-47485/)

jeru 02-27-2003 05:51 PM

remote printing
 
Is it possible with linux?

Like lets say I have 2 linux boxes, one has a deskjet 832C on it and that works fine. I add the IP address of remote linux machine in the file /etc/hosts.lpd that i created, restart and, Nothing.
-----------------------------------------------------
host machine printcap
HP832C:\
:ml#0:\
:mx#0:\
:sd=/var/spool/lpd/HP832C:\
:af=/var/spool/lpd/HP832C/HP832C.acct:\
:sh:\
:lp=/dev/lp0:\
:lpd_bounce=true:\
:if=/usr/share/printconf/util/mf_wrapper:
-----------------------------------------------------
host machine /etc/hosts.lpd
192.168.1.102
-----------------------------------------------------
remote machine printcap
LINUX_HP832C:\
:ml#0:\
:mx#0:\
:sd=/var/spool/lpd/LINUX_HP832C:\
:af=/var/spool/lpd/LINUX_HP832C/LINUX_HP832C.acct:\
:sh:\
:rm=192.168.1.100:\
:rp=HP832C:\
:lpd_bounce=true:\
:if=/usr/share/printconf/util/mf_wrapper:
------------------------------------------------------
Whats wrong? I even setup a samba share and tried it that way, (it randomly works from windows computers, (truly, randomly works depending on where the moon is at in the sky) they are under AD at this place) If I try to print to a windows computer under AD from linux, it pops up on the queue and then sits there doing nothing until i delete it on the windows machine. If I load the UNIX File and printing support, it doesn't care, that makes no difference.

So is it really possible? I have no problem prininting to remote stand alone network printers, but that is because I can just print to the IP. is lpd a severly crippled POS or what? How do I just do it linux to linux and whats wrong with those printcaps?

moses 02-27-2003 11:33 PM

Re: remote printing
 
Quote:

Originally posted by jeru
Is it possible with linux?
is lpd a severly crippled POS or what? How do I just do it linux to linux and whats wrong with those printcaps?

Yes, lpd IS a severly crippled POS. Get CUPS (www.cups.org),
install CUPS on both machines, set up the one connected to the
printer as the server, set up the other(s) as a client. It'll work.

Aussie 02-28-2003 12:12 AM

Put in another vote for CUPS, I use it to network an 810c deskjet (usb).

jeru 02-28-2003 12:18 PM

alright, i'll give it a shot

(always wondered why people were always talking about CUPS)

peter_robb 02-28-2003 12:29 PM

I'm successfully printing from Australia and New Zealand to my Europe servers, with lpd...

What's supposed to be the problem with it?

EverGreen 03-04-2003 02:39 AM

I also have problems with LPD
 
I have to use LPD since the client (an OpenVMS system) doesn't support CUPS, but I think LPD works fine!
I have an "authorization" problem, I think; here there are the las lines of ethereal capture for the client requets:
Source: cca01 (1.1.1.1)
Destination: pprel01 (1.1.1.22)
Transmission Control Protocol, Src Port: 1023 (1023), Dst Port: printer (515), Seq: 136256001, Ack: 4100165746, Len: 6
Source port: 1023 (1023)
Destination port: printer (515)
Sequence number: 136256001
Next sequence number: 136256007
Acknowledgement number: 4100165746
Header length: 20 bytes
Flags: 0x0018 (PSH, ACK)
Window size: 4096
Checksum: 0x6736 (correct)
Line Printer Daemon Protocol
LPR: transfer a printer job / jobcmd: receive control file
Printer/options: ET01

and for the server answer:
Source: pprel01 (1.1.1.22)
Destination: cca01 (1.1.1.1)
Transmission Control Protocol, Src Port: printer (515), Dst Port: 1023 (1023), Seq: 4100165746, Ack: 136256007, Len: 24
Source port: printer (515)
Destination port: 1023 (1023)
Sequence number: 4100165746
Next sequence number: 4100165770
Acknowledgement number: 136256007
Header length: 20 bytes
Flags: 0x0018 (PSH, ACK)
Window size: 5840
Checksum: 0x29b5 (correct)
Line Printer Daemon Protocol
LPC: start print / jobcmd: abort
Printer/options: no connect permissions

I don't know how to modify hosts.lpd nor hosts.equiv, and I don't even know if this will be the solution!
thanks
renato

EverGreen 03-13-2003 08:50 AM

lpd is working from VMS!
 
Thanks to the precious help from a great guy of this forum, I succeeded in my job.
I am very glad to tell that now the print from OpenVMS (the client!) works very fine so I can start my Linux workstations (the servers!): it's a step towards the freedom, dont't you agree?
Through one station I can print admittance forms on a standard needle printer and barcode labels on a thermal printer.
NOTE: from VMS I didn't have configured DNS and it works anyway!
Renato

-------- Original Message --------
OK, I found the docs about and I wrote a lpd.perms file with only one line:
DEFAULT ACCEPT
I also have understood that it is mandatory to add hostnames to
hosts.lpd and hosts.equiv; at this point I had the message:
Host name for your address (/ipaddr/ ) unknown
but I really succeeded in printing only adding the client name to the DNS (forward and reverse lookup) as suggested in:
http://www.pucmmsti.edu.do/materias/...UT/node24.html (comma 9).

Finally, the print from Linux works fine.
Again, many thanks because: 1) your bootstrap was decidely fundamental to reach the solution, and 2) my heart enjoys seeing in the world there are still so available people like you! :-))
Renato


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