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.
I'm sharing my printer through samba to my girlfriends computer which she runs Win XP on.
Her computer are able to find the printer, install, but can't print. When I looked around (in windows), it can't configure which port to use.
Normally you can click on some button to edit it, but I can't.
Is this a windows problem or is it me?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
try adding this
printcap name = cups
printer admin = @adm
under global
and this
path = /var/spool/samba
print command = lpr-cups -P %p -o raw %s -r # using client side printer
drivers.
under printers
on another note, may i suggest configuring samba completely. if you don't wish to share files, just don't create any shares. here are the relevant parts of my smb.conf for your use
[global]
workgroup = yourworkgroup
netbios name = yournetbiosname
server string = Samba Server %v
security = SHARE
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer
drivers.
browseable = No
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
some things to check, after any changes to your smb.conf, you'll need to restart samba, and, the windows machine. you may also need the windows drivers, even though to this point your unable to get to the port. i'd try setting up samba completely, then restart everything. grab a copy of the windows drivers for the printer, to have on hand. once your able to see and connect to the samba server, then try your "add printer wizard", you'll choose a network printer, and follow the rest of the steps the wizard walks you thru. hope this helps.
good luck.
Tried it, it adds a printer, but no port. It finds the printer, adds it, but when I look at the advanced settings, it got no port, there are ports, but I can't choose anyone, and the right one that I choose during install ain't there.
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92
Rep:
Hi rejser
You need to add "printable = yes" under [printers] this is the way samba distinguises the printer share from other shares. If it is not set you will not be able to print to it.
I am no expert, but I set up a samba print server yesterday after much sweating.
I was having your same problem, (when instralling the printer, it shows the server, but I couldn't see the printers on it) in some windows machines, while in my own machine I could do this perfectly.
It turned out that I could do it when logged on on windows as a user which was also created on the samba server (user:luis on both machines), but not as guest on the other machine even though it asked me for a login when connecting to the samba server and I logged on as luis.
For me the solution would be: creating on samba the same users that you use on your windows machines. I don't know how to do this on the shell though, due to the encrypted password stuff, I had to create them from gnome app (redhat 9). I am sure there is a way to do it anyway.
Other easy way to share the printer is to configure CUPS to accept LPD/LPR print jobs and install the unix print service on you win machines and create a LPR port pointing to your server (give it a static IP preferably). That would make it even easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.