Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-07-2005, 01:22 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16
Rep:
|
Samba Printing: NEED HELP!!!
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
[printers]
guest account = headlessb
comment = All Printers
writeable = yes
printable = yes
public = yes
create mode = 0700
path = /tmp
[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
[headlessb]
writeable = yes
path = /home/headlessb
[Z600]
printable = yes
path = /var/spool/samba
guest ok = yes
use client driver = yes
|
|
|
11-08-2005, 02:04 PM
|
#2
|
LQ Newbie
Registered: Nov 2005
Posts: 6
Rep:
|
Samba Printing: NEED HELP!!!
Can you print from your linux box to the printer?
|
|
|
11-08-2005, 04:51 PM
|
#3
|
Member
Registered: Jan 2005
Posts: 62
Rep:
|
What are you trying to do? Is the printer connected to a Windows Machine and you want to print to it from a Linux machine?
|
|
|
11-08-2005, 05:32 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Posts: 6
Rep:
|
Samba Printing: NEED HELP!!!
Steve,
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.
|
|
|
11-08-2005, 05:50 PM
|
#5
|
Member
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117
Rep:
|
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.
|
|
|
11-08-2005, 08:41 PM
|
#6
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16
Original Poster
Rep:
|
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.
|
|
|
11-09-2005, 10:16 AM
|
#7
|
Member
Registered: Jan 2005
Posts: 62
Rep:
|
Windows Printing to CUPS Server
Scenerio: You want a Windows machine (client) to print to a Linux Machine printer (server)
1)Make sure smb.conf file looks like this:
[global]
load printers = yes
printing = cups
printcap name = cups
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root
2) Get the following files from Windows machine, send to CUPS:
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll
3) Create a drivers directory for above files:
mkdir /usr/share/cups
Copy 2)'s files to this directory
4) Make sure you have this directory, if you don't create it:
mkdir /etc/samba/drivers
5) Create a Samba password to transfer CUPS printer
smbpasswd -a root
You will be prompted to enter your password twice.
6) Run the cupsaddsmb command to export the printer drivers:
cupsaddsmb -U root yourprintersname
7) FROM WINDOWS MACHINE add the printer on the Network
You should be all set up.
|
|
|
11-09-2005, 10:20 AM
|
#8
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16
Original Poster
Rep:
|
hopefully I'll have time to try this this afternoon, I'll let ya know if it works, thanks for the info 
|
|
|
All times are GMT -5. The time now is 11:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|