LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-27-2003, 05:51 PM   #1
jeru
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Debian Sid
Posts: 57

Rep: Reputation: 15
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?
 
Old 02-27-2003, 11:33 PM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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.
 
Old 02-28-2003, 12:12 AM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Put in another vote for CUPS, I use it to network an 810c deskjet (usb).
 
Old 02-28-2003, 12:18 PM   #4
jeru
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Debian Sid
Posts: 57

Original Poster
Rep: Reputation: 15
alright, i'll give it a shot

(always wondered why people were always talking about CUPS)
 
Old 02-28-2003, 12:29 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

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

What's supposed to be the problem with it?
 
Old 03-04-2003, 02:39 AM   #6
EverGreen
LQ Newbie
 
Registered: Jun 2002
Location: Milan,Italy
Distribution: RedHat,Mandrake
Posts: 9

Rep: Reputation: 0
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
 
Old 03-13-2003, 08:50 AM   #7
EverGreen
LQ Newbie
 
Registered: Jun 2002
Location: Milan,Italy
Distribution: RedHat,Mandrake
Posts: 9

Rep: Reputation: 0
Thumbs up 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 lucky123 Linux - Networking 0 06-04-2005 10:35 AM
Remote printing between 2 computers Johan.Fourie Linux - Networking 1 03-23-2004 03:26 AM
Remote Printing on Slackware nkitilizer Linux - Distributions 1 07-31-2003 08:07 PM
Printing to a remote printer narusegawa Slackware 9 03-20-2003 04:56 AM
Remote Printing samgwiz Linux - Networking 1 05-31-2001 04:30 AM


All times are GMT -5. The time now is 07:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration