I have made some progress.
I manually add a printer using the following steps
1) Share CUPS 6 for Windows 2000/XP drivers using Samba
2) Boot up in Windows and log into an administrator account
3) In Windows, select Printers and Faxes in the settings menu
4) Then select Add Printers and Faxes
5) Select Network Printers
6) In the URL box (usually the third option), type http://192.168.1.101:631/printers/BrotherHL5140
7) When Add Driver menu comes up, click Have Disk...
8) Access the directory or shares where CUPS 6 for Windows 2000/XP installation files are stored
9) Select cups6.inf and click OK
10) Click continued to resume driver installation when it says CUP 6 is not digitally signed by Microsoft
11) Either print a test page or visit a favorite site and print
Depending on the settings that I setup in CUPS on the Linux host, the print out quality will be the same. I also set Windows, so it sends it to my Linux box to spool instead of first spooling it on Windows.
cat /etc/cups/cupsd.conf
Code:
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
# Allow remote access
Port *:631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel a job...
<Limit Cancel-Job>
Order deny,allow
Require user @OWNER @SYSTEM
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
cat /etc/cups/printers.conf
Code:
<DefaultPrinter BrotherHL5140>
Info Brother HL-5140 (BW Laser)
Location Local USB Printer
DeviceURI usb://Brother/HL-5140%20series
State Idle
StateTime 1168911898
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Telling Samba where the drivers for the printer is a different story. Again I would like to use CUPS 6 for Windows 2000/XP. I tried typing:
Code:
rpcclient localhost -Uroot%XXXX -c 'adddriver "Windows NT x86" "BrotherHL5140:pscript5.dll:cups6.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
It prints "WERR_UNKNOWN_PRINTER_DRIVER". I do not mind doing the steps to add a printer in Windows, but I would like to get the Point 'n Click feature working in Samba.
Can anybody help me!