LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-23-2005, 09:37 AM   #1
tijn_sol
LQ Newbie
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
Samba + Cups + Windows Automatic driver install


Hi all,

Iam setting up a print server with Cups and Samba for 70 ppl with 20 printers (different)
Cups works fine, i made Appsocket printers, they all print their test pages nice and clean,

next step! installing samba and share the printers
output of testparm:

Code:
 Centauri:/var/lib/samba/printers/test# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[drivers]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        workgroup = AFAB
        server string = %h Samba Print server
        security = SHARE
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        printcap name = cups
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        printing = cups
        print command =
        lpq command = %p
        lprm command =


[printers]
        comment = All Printers
        path = /tmp
        read only = No
        guest ok = Yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers/test
        guest ok = Yes
Centauri:/var/lib/samba/printers/test#
i see the server, and i see the printers, what doesnt work is the auto driver installing!
i get a error in windows "the installed driver on the server is bad, install a new one?"
iam sure the drivers on the server are good.

can anyone see what iam doing wrong??

thnx in advance

tijn
 
Old 12-01-2005, 10:50 AM   #2
alexlc
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
How did you install the windows drivers on the cups server? The only way I ever got this to work correctly, was to set up the printers in cups, and then, connect to the printers share from a windows machine, and right click on each printer, and install the driver through the printer properties menu. Once I installed the driver on the server from a windows machine, other windows machines were able to automatically download the driver.

I know there is a way to do it via 'net' rpc commands, but i never bothered to make that work.
 
Old 12-02-2005, 01:40 AM   #3
tijn_sol
LQ Newbie
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
well, just install the drivers on a windows client, they will put the drivers in print$ then on the next client, i have to install a driver, (any driver) when thats ready i have to go to properties en select the correct one (which is on samba)

but i guess there is no way to do this automaticly :/

gonna check the net rpc command though, thnx

grtz tijn
 
Old 12-02-2005, 10:25 AM   #4
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
In order for CUPS to work with Samba, you have to (at minimum) configure the smb.conf file 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

This configuration assumes a FHS-compliant installation of SAMBA; adjust the [printers] and [print$] share paths accordingly on your system as needed. That is, the directory for your printer drivers can be anywhere on the system; just make sure it is writable by the users specified by the write list directive plus readable and executable by all users. Also, make sure that you have SAMBA passwords defined for each user in the write list using SAMBA's smbpasswd(1) command. Otherwise you will not be able to authenticate.

Also....

When you extracted the driver files, did you create a "drivers" directory in the CUPS data directory (usually /usr/share/cups) and copy the files exactly as named below:

[Windows 2000 and higher]

ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

Finally, did you run the cupsaddsmb command to export the printer drivers?

Best regards,
Steve

P.S. - I bought ESP Print Pro to eliminate all this hassle. http://www.easysw.com/printpro/
 
  


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
automatic Mounting Windows Share using samba MediMania Linux - Software 4 11-17-2005 03:54 AM
samba/cups: lp from linux to Windows RogueWave Linux - Networking 5 10-31-2005 08:45 AM
Cups Printing Driver for Windows dlublink Linux - Networking 0 10-11-2004 01:04 PM
Printer driver wrong on XP while on Samba/Cups Server ikw38 Linux - Networking 0 03-11-2004 04:08 PM
Windows printing to CUPS via Samba JahToasted Linux - General 0 08-22-2003 02:28 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:11 AM.

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