Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.