Click to See Complete Forum and Search --> : Sharing printer between two rh8 boxes
retoon
02-17-2003, 09:08 PM
Hi, I have two machines running Red Hat 8.0. I have a network set up, and have managed to ping both machines. Now, I have the right numbers in the right places, and the print serving machine is recieving the command from the other machine, but not printing. I know it recieves the command because I check the network traffic with ethereal. I guess I have to set the permissions on my machine up so that it will allow for print commands from other machines to be processed. The print server is ip - 10.0.0.1 and the client is - 10.0.0.2
The printer que name is HP7150
If some one could give me a hint as to where to find and how to edit the permissions file, I would truly appreciate it.
:)
retoon
02-18-2003, 03:59 AM
<twiddle of thumbs> hmmm... can't wait to get a reply from one of the extra super duper cool folks here at LN/JL! Any second now... any second.... just can't wait... <whistling politely> Hmmm... want to share a printer, wait, must not be repetitive. Well, any second now.... doot dee doot doot doot...
retoon
02-19-2003, 11:58 AM
Yep, any second now...
z0mbix
02-19-2003, 12:58 PM
I wish I could help but my knowledge of linux printing is next to nothing. Have you searched google.com/linux yet, as there must be something related on the net somewhere. Also try tldp.org
homey
02-19-2003, 02:14 PM
Here is great site on print sharing......
http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-printers-config.html
The main part that you will need is as follows...
Printer Sharing with LPRng and the /etc/hosts.lpd File
For pure Linux or Linux/UNIX environments, printer sharing can be controlled using the /etc/hosts.lpd file. This file is not created by default; as root, create the file /etc/hosts.lpd on the machine to which the printer is attached. On separate lines in the file, add the IP address or hostname of each machine which should have printing privileges:
falcon.example.com
pinky.example.com
samiam.example.com
pigdog.example.com
yeti.example.com
To have LPRng use /etc/hosts.lpd for access control, you must add the following line to /etc/lpd.perms:
ACCEPT SERVICE=X REMOTEHOST=</etc/hosts.lpd
Note: This line must be added to /etc/lpd.perms before the line containing "REJECT SERVICE=X NOT SERVER". Failure to do so will prevent /etc/hosts.lpd from being recognized.
Finally, restart the lpd printer daemon by issuing the command /sbin/service lpd restart (as root).
sharth
02-19-2003, 02:22 PM
firewalls are the only thing that comes to mind. That and make sure the service is listening globally.
retoon
02-26-2003, 03:08 PM
I have the printer shared!!!!! The other machine puts in the print command and my printer starts to print. There is just one more problem. The output isn't right. No matter what I try to print, some random characters display on the top of the page. This doesn't happen from the local machine. Any suggestions? I am using the hpijs drivers that HP released the source to on both machines. I had a few problems originally installing the source on the client. That could have something to do with it, but if any one could list other possibilities, I would much appreciate it.