PDA

View Full Version : Printer Sharing in FC5


b00st
2006-03-26, 01:32 PM CST
I set up a pc to handle some printing, among other things. I have configured the printer(with HPLIP) on it and works locally. On the other hand, sharing it on the network as just about made my hair fall off. I opened all the proper ports and for the most part, all other pc's on the network can see the printer on the network, including windows pc's. Yet for the life of me, it cannot send any jobs to print because for some reason, it cannot connect. I'm kinda confused here, what's actually problem, cups or the network/firewall?

I added ipp tcp/udp (even did 631) in system-config-securitylevel and still a no go.

jhetrick62
2006-03-26, 09:59 PM CST
How are you sharing it on the network? Do you have a samba config file and the smb and nmb daemons running? If so, post the share sections of your smb.conf file.

Jeff

b00st
2006-03-29, 03:55 AM CST
I'm sharing the printer through CUPS and I have the samba related daemons running, but I don't see where samba comes in the picture here... I'm only using samba to share files.

EDIT:

The only thing that's not commented is this info which i did through system-config-samba

[netshare]
comment =Josh-Share
path = /home/ShapeShifta/netshare
writeable = yes
browseable = yes
guest ok = yes

jhetrick62
2006-03-29, 06:00 AM CST
If you are sharing this printer and it is connected to your FC box, then you need to have it configured in Samba. If it is connected through some type of a Network or USB print server, that may change things.

You need these lines in the smb.conf file

printing = cups
printcap name = cups
load printers = yes
guest account = nobody

Under the Shares section:
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
guest ok = no
read only = no
write list = jeff

[printers]
printer admin = jeff
comment = All Printers
browseable = no
path = /tmp
printable = yes
public = no
writable = no
create mode = 0700

Now, I'm not at home where my linux systems are and this is copy of my smb.conf file on my server so I may have modified this somewhat. I do know that my FC3 box shares every printer without a problem. I never did modify the samba file, so if you have similar lines in your file and it's not working, it may have something to do with the HPLIP driver?? I have always used a cups driver, even on my HP laserjet.

As I said, if the printer that you are sharing is connected to a print server, this would be different.

Goodluck,
Jeff

b00st
2006-03-29, 07:58 AM CST
I'll try what you just said and see if that helps. Thx in advance :).

b00st
2006-03-29, 02:59 PM CST
Thanks, I changed the first four things you mentioned, without putting in the shares info and I can print to that FC5 desktop from the FC5 laptop, but windows PC's still can't connect, but it still sees it and can add it normally :|. Though I am confused with adding those shares in there since it, but i'll try it and configure to fit my need.

jhetrick62
2006-03-29, 08:32 PM CST
As I said, this file was a copy from my server that I don't share any printers on, so I may have changed some settings in the shares. When I get home this weekend, I will look at the other machine's file.

Jeff

b00st
2006-03-30, 03:59 AM CST
As I said, this file was a copy from my server that I don't share any printers on, so I may have changed some settings in the shares. When I get home this weekend, I will look at the other machine's file.

Jeff

Ok, cool stuff. I'm in no hurry so whenever you can, it would be appreciated greatly :D .

jhetrick62
2006-03-31, 08:58 PM CST
Did you get this configured to your needs?

Jeff

b00st
2006-04-01, 06:44 AM CST
Not yet, haven't fiddle much with the config in the past 2 days (Nice weather outside :D). I hope to get it working today tho. Can you post the file from the pc you share the printer from, if you can???

Falcor-Systems
2006-04-04, 10:06 AM CDT
Not yet, haven't fiddle much with the config in the past 2 days (Nice weather outside :D). I hope to get it working today tho. Can you post the file from the pc you share the printer from, if you can???

The following info allows me to print to a printer that is connected to a FC5 machine via USB using ANY computer/OS. I hope this helps you out!


[printers]
comment = All Printers
path = /var/spool/cups
printable = Yes
browseable = No

[Samsung_ML-1740]
comment = I HOPE THIS WORKS
path = /var/spool/cups
writeable = yes
printable = yes
printer name = Samsung
use client driver = Yes
oplocks = No
share modes = No
public = yes


Please Note: If you would like to be able to print to this printer, YOU MUST CHANGE THE PERMISSIONS (CHMOD) OF THE '/var/spool/cups' DIRECTORY!! I currently have mine set to 777 and it works PERFECT!

Also: You MUST download the CORRECT printer drivers for EACH computer that will be using the server's (FC5) printer!! For instance, I made it work with a Win XP computer (ONLY AFTER INSTALLING THE XP DRIVERS ON THE XP MACHINE!) and on a Mac OSX machine (AFTER INSTALLING THE MAC DRIVERS ON THE MAC MACHINE!).

Good luck to you!

Oh, and whether or not you have this printer shared via the Printer Config is COMPLETELY irrelevent...um...wtg FC5 Dev Team! :p