LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-30-2004, 11:07 PM   #1
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
Windows printing to samba shared printer?l


Hello,

I've got SAMBA running as a PDC for my windows domain, but I can't seem to get printing working correctly...

I can print fine through linux, but that's not what I'm tying to achieve...

When I look through samba logs, I notice the following:

lpstat: Unknown destination "level3-hp-test"!

Here's my smb.conf, for reference.

[global]
netbios name = HOMER
server string = HOMER
workgroup = HOMENET
passdb backend = tdbsam
os level = 64
preferred master = yes
domain master = yes
local master = yes
security = user
encrypt passwords = yes
domain logons = yes
logon path =
logon drive =
logon script = /home/netlogon/login.bat
logon home =/home/%u
wins support = yes
dns proxy = no
add user script = /usr/sbin/useradd -g users -s /sbin/nologin -c "Samba user" %u
add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /dev/null -c "SAMBA Machine Account" %u
delete user script = /usr/sbin/userdel %u
delete user from group script = /usr/sbin/deluser %u %g
delete group script = /usr/sbin/groupdel %g
log file = /usr/local/samba/var/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = yes
printing = CUPS
admin users = root rohang administrator

[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = yes
writable = no
share modes = no

[profiles]
comment = Roaming Profile Share
path = /home/profiles
read only = No
create mask = 0600
directory mask = 0700
csc policy = manual

[Lvl3]
comment = Level 3 printer
path = /var/spool/cups/lvl3
read only = No
guest ok = Yes
printable = Yes
printer name = level3-hp

[test]
comment = level 3 printer
path = /var/spool/cups/test
read only = No
guest ok = Yes
printable = Yes
printer name = level3-hp-test


Anyone else seen this error?
 
Old 08-31-2004, 05:01 AM   #2
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
It looks like you might be using the UNIX print system spool directory for the Samba spool directory; the doc states this is a bad idea leading to erratic behaviour. You should rather create a world-writeable /var/spool/samba directory and use that one in your smb.conf file. It is not necessary to have a different spool subdirectory for every printer, you may set the value in the [printers] section.

Hope this will help...
 
Old 08-31-2004, 08:05 PM   #3
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by cidrolin
It looks like you might be using the UNIX print system spool directory for the Samba spool directory; the doc states this is a bad idea leading to erratic behaviour. You should rather create a world-writeable /var/spool/samba directory and use that one in your smb.conf file. It is not necessary to have a different spool subdirectory for every printer, you may set the value in the [printers] section.

Hope this will help...
Thanks for replying

I made the modification as per your suggestion, but I'm getting new problems now. The samba log now throws me the following:

lp: unable to print file: client-error-not-found

looking in /var/log/cups/error_log, I also get the following:

print_job: resource name '/printers/level3-hp-test' no good!

Any idea?
 
Old 09-01-2004, 08:24 AM   #4
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
Since your Samba PDC works properly, let's assume we may exclude pure Samba errors; I see 3 other possibilities : client driver installation problems, CUPS configuration problems (related with Samba use of CUPS), spool configuration problems. The latter has been taken care of.

If I were you, I would try to set up a classic (that is, without CUPS) Samba printsharing system; if we can do that then any problem we may have when switching to CUPS-printing will be CUPS-related. A (rather long but) well documented step-to-step howto about classic printing support with Samba can be found here.
 
Old 09-01-2004, 11:20 PM   #5
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by cidrolin
Since your Samba PDC works properly, let's assume we may exclude pure Samba errors; I see 3 other possibilities : client driver installation problems, CUPS configuration problems (related with Samba use of CUPS), spool configuration problems. The latter has been taken care of.

If I were you, I would try to set up a classic (that is, without CUPS) Samba printsharing system; if we can do that then any problem we may have when switching to CUPS-printing will be CUPS-related. A (rather long but) well documented step-to-step howto about classic printing support with Samba can be found here.

I've got it working!!

I can print from XP boxes to samba shared printers, but I have another problem, printing is quite slow. When I select the printer from XP, the application becomes almost unresponsive, for a random period (1 - 5 mins) then I can print.


The print job goes out ok and is fine, but it takes a while to print.

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 to a windows shared printer using Samba Maskkkk Slackware - Installation 4 09-02-2009 11:39 AM
Suse 10 RC1 Printing to a Windows Shared Printer genxian Linux - Networking 17 05-24-2006 08:23 AM
Printing to a Windows Shared printer rwillard Linux - Newbie 8 03-17-2005 10:05 AM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 06:07 AM
Samba... Printing to Win2k shared printer. buckinpgh Linux - Networking 1 10-15-2003 04:59 PM

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

All times are GMT -5. The time now is 06:19 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