SlackwareThis Forum is for the discussion of Slackware Linux.
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 setup Samba with Swat. That didn't work so I used the smb-sample.conf file and read instructions all over the place but I just can't get Windows to see the printer connected to my Linux box.
When I try to add a printer from Windows I can see:
+MSHOME
+MYGROUP
+LINUX
I cannot see the printer "Lex".
Here is my smb.conf file:
[global]
workgroup = MYGROUP
server string = Samba Server
security = user
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = no
writable = no
printable = yes
Followed the directions int the documentation. No change. Went back to WebMin and now Windows can't see the Linux box at all. Here is my smb.conf file:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/12/10 08:52:20
# Global parameters
[global]
dns proxy = No
log file = /var/log/samba.%m
load printers = yes
server string = Samba Server
printer name = Lex
path = /var/spool
default service = printers
workgroup = MYGROUP
os level = 65
preferred master = Yes
max log size = 50
wins support = Yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
min print space = 2000
printable = Yes
print command = /usr/bin/lpr -P%p -r %s
browseable = No
I got this to work once with Mandrake, but it did it for me. I have no idea what I'm missing. I have read everything I can find, it just won't work.
Okay, never mind. I have been trying for years to get Samba to work. I'm glad others have made it work. I'm just going to buy another printer and stick this Lexmark piece of crap in the kid's room and buy me a laser printer.
I'll tell you a good way to do it. Given it's not a samba problem which I doubt, this should work.
For XP you need to use the command prompt.
net use lpt2: \\ipaddressofserver\printersharename /PERSISTENT:YES
This assumes you do not already have lpt2, if so use lpt3 or lpt4
Hopefully you will get a username and password prompt, use the username you added to smb.
You did add a user didn't you?
smbadduser user:user
smbpasswd user
Install the printer as a local printer on lpt2
In the earlier versions of Windows you have a capture printer port option you can use.
Some newer printers require the software to be loaded, and on a few USB printers in particular the printer must be there for it to load. If this was the case then plug it into the usb port and install it. After that you can get to the printer properties and change the port.
I have seen this so many times and it's not just on samba. Some windows machines just will not work any other way.
I just setup XP for my internet printer and I was pulling my hair out for a while there rebuilding the ms loopback interface time and time again. Changing my stunnel setup over and over, accessing shares ok, and seeing a printer and not being able to print to it. I finally decided to get into the command line and after that it all came together.
Last edited by DavidPhillips; 12-10-2004 at 06:23 PM.
Thanks, I just gave up on it. The Lexmark will be attached to the computer running Windows and the Brother HL-1440 is attached and working on the Linux box.
That's one thing I hate about Samba. All the instructions make it look so easy, but it doesn't work. Then somebody comes along with some cryptic code and proceedure you have to follow to get things working. Either someone needs to write a comprehensive guide to Samba printer sharing or there needs to be an easier way to set it up.
In the future, if I need to share printers in a mixed network, I will just buy a print server and be done with it.
The funny thing is the other computers here work fine with the shared printer. It seems there is always the odd one that does not work as expected. It really seems that it is a windows problem more than a samba problem. It seems that windows is not always that good at windows networking.
I did nothing at all to my Linux box to fix my problem. Just the windows box needed to be worked on. We got a new computer at work recently and it did not want to network with windows 98 at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.