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.
Ok, I have been trying to get my samba server to print over the network to a printer currently attached to my linuxbox. I've gotten it to the point where I can connect to the printer through windows without it giving fits. The only thing I lack is getting it to actually print. When I try to print a test page I get this message:
"Test page failed to print. Would you liek to view the troubleshooter..."
It's as if it knows the printer is there....but doesn't.....kinda wierd I know. I'm attaching my Samba config in hopes that it will help solve this problem I'm having :S.
[global]
log file = /var/log/samba/log.%m
load printers = yes
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n
hosts equiv = headlessb
obey pam restrictions = yes
socket options = TCP_NODELAY
username map = /etc/samba/user.map
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam guest
keepalive = 20
wins support = yes
dns proxy = no
printing = cups
server string = %h server (Samba %v)
invalid users = root
default = public
workgroup = headlessb
os level = 20
auto services = public
syslog = 0
panic action = /usr/share/samba/panic-action %d
max log size = 1000
[homes]
create mask = 0700
browseable = no
comment = Home Directories
directory mask = 0700
writable = no
[print$]
comment = Printer Drivers
path = /var/spool/samba
browseable = yes
read only = yes
guest ok = yes
printable = yes
use client driver = yes
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
; write list = root, @ntadmin
# A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[public]
delete readonly = yes
writeable = yes
path = /home/headlessb/public_html
write list = headlessb,@headlessb
force directory mode = 755
force group = headlessb
force create mode = 755
force user = headlessb
did you read the first guy's post? "to a printer currently attached to my linuxbox". This guy has a Windows client attempting to print to a printer attached to a linux box, running Samba - thus the reason I asked if he has been able to print to the printer FROM the linux machine - my first thought is that he has not successfully setup the printer with CUPS, he mentions nothing about successful printing from the linux machine before attempting to print from another source.
are youinstalled the driver in the windows?
Maybe you can download the driver from samba.
Windows see your printer, because linux tell him : "something on me is shared and its name is a printer". But nolonger windows knows ow to access "these" something.
Thanks for the reply, hopefully I can clear some of this up for you. Sorry I didn't do that in the first place. Anyway, I can print from the linux box just fine, but I have to use an older driver to get it to print. Now as for printing from windows, I have tried two different drivers, which from what I know, that shouldn't really matter anyway as long as it's a driver that's supposed to work. Although I have used the same driver as I'm using for the linuxbox without any ability to print from winblows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.