LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-07-2005, 12:22 AM   #1
headlessb
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16

Rep: Reputation: 0
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
 
Old 11-08-2005, 01:04 PM   #2
bill_k_lopez
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
Samba Printing: NEED HELP!!!

Can you print from your linux box to the printer?
 
Old 11-08-2005, 03:51 PM   #3
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
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?
 
Old 11-08-2005, 04:32 PM   #4
bill_k_lopez
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
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.
 
Old 11-08-2005, 04:50 PM   #5
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
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.
 
Old 11-08-2005, 07:41 PM   #6
headlessb
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-09-2005, 09:16 AM   #7
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
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.
 
Old 11-09-2005, 09:20 AM   #8
headlessb
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16

Original Poster
Rep: Reputation: 0
hopefully I'll have time to try this this afternoon, I'll let ya know if it works, thanks for the info
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing through samba doralsoral Linux - Software 4 08-12-2004 11:38 PM
Samba printing wahmed Slackware 1 06-08-2004 05:24 AM
samba printing haydn Linux - Networking 2 07-29-2003 09:18 AM
samba printing bmcneely0 Linux - Networking 14 07-20-2003 07:07 AM
Samba printing help!! sjr Linux - Networking 2 10-04-2002 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration