|
How to share Cups-PDF printer with Windows client? 10 Months, 3 Weeks ago
|
|
Running ClearOS Community 6.3.0 beta.
I have Windows Networking and Print Server installed.
I've installed the cups-pdf package like this:
| Code: |
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/cups-pdf-2.5.1-1.el6.x86_64.rpm
# yum localinstall cups-pdf-2.5.1-1.el6.x86_64.rpm
# service cups restart
|
Under: Server | File | Advanced Print Server | Go to Print Server Management Tool
I created a Class and added the Cups-PDF printer to the class.
Under Maintenance I printed a Test Page and this Test Page appeared under root's directory so I know the printer is working.
Under the Administration Tab I selected:
| Code: |
Share printers connected to this system
Allow printing from the Internet
|
So now I want to use this printer from some of my Windows XP domain clients.
Samba is set as PDC and the XP clients can join the domain just fine.
In one of the XP clients in a Command Prompt window I ran:
This gave me the mapped drives from ClearOS machine but no printer was listed.
I then added root to smbpasswd:
| Code: |
# smbpasswd -a root
|
So then adding the cups-windows drivers:
| Code: |
# mkdir ~/tmp
# cd tmp
# wget http://ftp.easysw.com/pub/cups/windows/cups-windows-6.0-source.tar.bz2
# tar xjf cups-windows-6.0-source.tar.bz2
# cd cups-windows-6.0
# sudo make install
Creating directory /usr/share/cups/drivers...
Installing cups6.inf...
Installing cups6.ini...
Installing cupsps6.dll...
Installing cupsui6.dll...
# cupsaddsmb -v -H localhost -U root -a -v
No Windows printer drivers are installed!
|
But still no luck.
How do I get this Cups-PDF printer to be visible and usable by the XP clients?
.
|
|
|
|
Last Edit: 2012/07/01 13:48 By greno.
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
hi there,
I am having a similiar problem to you with CUPS and i was wondering if you had managed to get any further with resolving your issue.
I get to the point where I am running the make command and get the following error
| Code: |
sudo make install
/bin/sh: cups-config: command not found
Creating directory /drivers...
/bin/sh: cups-config: command not found
/bin/sh: cups-config: command not found
Installing cups6.inf...
/bin/sh: line 2: cups-config: command not found
/bin/sh: line 3: cups-config: command not found
Installing cups6.ini...
/bin/sh: line 2: cups-config: command not found
/bin/sh: line 3: cups-config: command not found
Installing cupsps6.dll...
/bin/sh: line 2: cups-config: command not found
/bin/sh: line 3: cups-config: command not found
Installing cupsui6.dll...
/bin/sh: line 2: cups-config: command not found
/bin/sh: line 3: cups-config: command not found
|
Any ideas as to what I am doing wrong? Cups-PDF is showing up in the advanced printer manager, i can see it on my Windows 7 machine, I just can't install the driver for it in Windows.
|
|
|
|
Clear OS 6.3
Supermicro Atom mobo, 4 GB Ram, 4 Terabytes of storage (Software Raid 5)
Running as Samba Server/Serviio-DLNA/SubSonic/Zarafa with Z-Push/Web Server/MySQL/Firewall/Transmission (with Flexget)
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
|
Nope, I gave up.
.
|
|
|
|
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
Those steps seem odd to me.
Please see this thread.
Regards,
Georger
EDIT: It's also worth saying there's NO NEED to change any parameter in Samba nor in CUPS. All you need to do is copy the PostScript drivers from a Windows PC to /usr/share/cups/drivers (that's for 32-bit), restart Samba, and run the commands as described in the thread I pointed earlier.
|
|
|
|
Last Edit: 2012/08/09 16:02 By georger.
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
Hi georger,
I've currently got my driver files in /usr/share/cups/drivers and when running the command
| Code: |
cupsaddsmb -H localhost -U root -v -a
|
Everything seems to run properly the driver files are getting copied to /var/samba/drivers/W32X86, i get the Printer Driver PDF successfully installed and then immediately afterwards i get an NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86, which i would assume is because it just finished being created.
Any ideas as to what I could be doing wrong?
Gerry, in regards to the issue you posted about did you add a samba password for root since you are using it in the cpsaddsmd command?
|
|
|
|
Last Edit: 2012/08/09 16:39 By arobinson.
Clear OS 6.3
Supermicro Atom mobo, 4 GB Ram, 4 Terabytes of storage (Software Raid 5)
Running as Samba Server/Serviio-DLNA/SubSonic/Zarafa with Z-Push/Web Server/MySQL/Firewall/Transmission (with Flexget)
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
arobinson wrote:
Hi georger,
I've currently got my driver files in /usr/share/cups/drivers and when running the command
| Code: |
cupsaddsmb -H localhost -U root -v -a
|
Everything seems to run properly the driver files are getting copied to /var/samba/drivers/W32X86, i get the Printer Driver PDF successfully installed and then immediately afterwards i get an NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86, which i would assume is because it just finished being created.
Any ideas as to what I could be doing wrong?
Did cupsaddsmb terminate, even after outputting NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64? If it did, I believe it worked just fine, because it happened to me as well. It's not an error.
I just installed COS 5.2 on a VM and did this from scratch:
1) Configured COS as a Samba PDC (configured Printing to "Point and Click")
2) Installed CUPS-PDF (showed up in the CUPS web GUI after installing from the command line)
3) Installed a network printer (an old Kyocera I named LAB-KM2810)
4) Created /usr/share/cups/drivers and /usr/share/cups/drivers/x64, and copied the appropriate drivers to each directory
5) Restarted Samba so that the newly created CUPS print queues would show up
6) ran | Code: |
[root@mypdc ~]# cupsaddsmb -H mypdc -U winadmin -v -a
|
and got the following output:
| Code: |
[root@mypdc ~]# cupsaddsmb -H mypdc -U winadmin -v -a
Password for winadmin required to access mypdc via SAMBA:
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsDjRNaJ -c 'mkdir W32X86;put /tmp/cupsokG5zq W32X86/LAB-KM2810.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/cupsokG5zq as \W32X86/LAB-KM2810.ppd (1155.5 kb/s) (average 1155.5 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (54538.1 kb/s) (average 16577.2 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (12713.2 kb/s) (average 16412.8 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (73977.4 kb/s) (average 29624.5 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (58888.2 kb/s) (average 33387.1 kb/s)
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsDjRNaJ -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (16.4 kb/s) (average 16.4 kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (3068.3 kb/s) (average 1542.4 kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (4450.4 kb/s) (average 2335.5 kb/s)
Running command: rpcclient mypdc -N -A /tmp/cupsDjRNaJ -c 'adddriver "Windows NT x86" "LAB-KM2810:pscript5.dll:LAB-KM2810.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LAB-KM2810.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver LAB-KM2810 successfully installed.
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsDjRNaJ -c 'mkdir x64;put /tmp/cupsokG5zq x64/LAB-KM2810.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64
putting file /tmp/cupsokG5zq as \x64/LAB-KM2810.ppd (840.3 kb/s) (average 840.3 kb/s)
putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll (59142.4 kb/s) (average 14913.4 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp (8475.6 kb/s) (average 14596.8 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf (35786.9 kb/s) (average 21424.7 kb/s)
putting file /usr/share/cups/drivers/x64/pscript5.dll as \x64/pscript5.dll (68388.1 kb/s) (average 25694.2 kb/s)
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsDjRNaJ -c 'put /usr/share/cups/drivers/x64/cups6.ini x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll x64/cupsui6.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini (16.4 kb/s) (average 16.4 kb/s)
putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll (8499.6 kb/s) (average 2844.2 kb/s)
putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll (9499.5 kb/s) (average 4508.2 kb/s)
Running command: rpcclient mypdc -N -A /tmp/cupsDjRNaJ -c 'adddriver "Windows x64" "LAB-KM2810:pscript5.dll:LAB-KM2810.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LAB-KM2810.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver LAB-KM2810 successfully installed.
Running command: rpcclient mypdc -N -A /tmp/cupsDjRNaJ -c 'setdriver LAB-KM2810 LAB-KM2810'
Successfully set LAB-KM2810 to driver LAB-KM2810.
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsaUS5qQ -c 'mkdir W32X86;put /tmp/cups72kVkt W32X86/Cups-PDF.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/cups72kVkt as \W32X86/Cups-PDF.ppd (4547.8 kb/s) (average 4547.9 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (50642.5 kb/s) (average 38512.6 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (8475.6 kb/s) (average 34416.7 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (69045.6 kb/s) (average 48455.6 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (52999.5 kb/s) (average 49422.5 kb/s)
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsaUS5qQ -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (16.4 kb/s) (average 16.4 kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (944.1 kb/s) (average 725.8 kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (4450.4 kb/s) (average 1284.5 kb/s)
Running command: rpcclient mypdc -N -A /tmp/cupsaUS5qQ -c 'adddriver "Windows NT x86" "Cups-PDF:pscript5.dll:Cups-PDF.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,Cups-PDF.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver Cups-PDF successfully installed.
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsaUS5qQ -c 'mkdir x64;put /tmp/cups72kVkt x64/Cups-PDF.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64
putting file /tmp/cups72kVkt as \x64/Cups-PDF.ppd (5684.7 kb/s) (average 5684.8 kb/s)
putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll (51749.7 kb/s) (average 42537.0 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp (3178.4 kb/s) (average 31291.7 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf (61048.1 kb/s) (average 42533.1 kb/s)
putting file /usr/share/cups/drivers/x64/pscript5.dll as \x64/pscript5.dll (55954.0 kb/s) (average 45169.5 kb/s)
Running command: smbclient //mypdc/print$ -N -A /tmp/cupsaUS5qQ -c 'put /usr/share/cups/drivers/x64/cups6.ini x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll x64/cupsui6.dll'
Domain=[CLEAR] OS=[Unix] Server=[Samba 3.5.5-1.1.v5]
putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini (4.1 kb/s) (average 4.1 kb/s)
putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll (5666.5 kb/s) (average 898.2 kb/s)
putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll (4749.9 kb/s) (average 1568.1 kb/s)
Running command: rpcclient mypdc -N -A /tmp/cupsaUS5qQ -c 'adddriver "Windows x64" "Cups-PDF:pscript5.dll:Cups-PDF.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,Cups-PDF.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver Cups-PDF successfully installed.
Running command: rpcclient mypdc -N -A /tmp/cupsaUS5qQ -c 'setdriver Cups-PDF Cups-PDF'
Successfully set Cups-PDF to driver Cups-PDF.
[root@mypdc ~]#
|
This is exactly what I did on my production servers. You should be able to install the printers in your Windows clients just by double clicking the shared printer in Windows Explorer. It's that simple.
Gerry, in regards to the issue you posted about did you add a samba password for root since you are using it in the cpsaddsmd command?
Why do this? Just use winadmin.
Georger
|
|
|
|
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
|
Can't check right now. I'm at a different location from where that machine is installed.
Won't be back there for a couple weeks.
.
|
|
|
|
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
Hi georger,
When I try to add the printer in Windows 7, i can see it, i double click on the icon, windows trys to download the driver, says its checking windows update, but comes back with a no driver found error. i am able to browse to \clearos\print$ and see the list of drivers that are avaliable.
Also one other thing I noticed was that when it copies all of the files into the W32X86 directory it also creates a new directory named "3" and copies all of the driver files into this folder as well.
My print$ section of my smb.conf file looks like this
| Code: |
[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = Yes
available = Yes
guest ok = Yes
|
And my printers section is
| Code: |
[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
use client driver = No
printable = Yes
read only = No
browseable = No
available = Yes
|
|
|
|
|
Last Edit: 2012/08/09 18:47 By arobinson.
Clear OS 6.3
Supermicro Atom mobo, 4 GB Ram, 4 Terabytes of storage (Software Raid 5)
Running as Samba Server/Serviio-DLNA/SubSonic/Zarafa with Z-Push/Web Server/MySQL/Firewall/Transmission (with Flexget)
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 2 Weeks ago
|
|
arobinson wrote:
Hi georger,
When I try to add the printer in Windows 7, i can see it, i double click on the icon, windows trys to download the driver, says its checking windows update, but comes back with a no driver found error. i am able to browse to \clearos\print$ and see the list of drivers that are avaliable.
Also one other thing I noticed was that when it copies all of the files into the W32X86 directory it also creates a new directory named "3" and copies all of the driver files into this folder as well.
My print$ section of my smb.conf file looks like this
| Code: |
[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = Yes
available = Yes
guest ok = Yes
|
And my printers section is
| Code: |
[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
use client driver = No
printable = Yes
read only = No
browseable = No
available = Yes
|
Did you copy the appropriate files to each directory? For 32-bit Windows clients, you should copy the following files to /usr/share/cups/drivers:
| Code: |
cups6.inf
cups6.ini
cups6.ppd
cupsps6.dll
cupsui6.dll
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll
|
Some of these are to be found at the CUPS SVN repository, and some of the others are found in a working Windows client. I got mine from a 32-bit Windows 7 Professional computer. Works fine on the 32-bit versions of 7, Vista and XP.
For 64-bit Windows clients, you should copy the following files to /usr/share/cups/drivers/x64:
| Code: |
cups6.inf
cups6.ini
cups6.ppd
cupsps6.dll
cupsui6.dll
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll
|
Like before, some of these are to be found at the CUPS SVN repository, and some of the others are found in a working Windows client. I got mine from a 64-bit Windows 7 Professional computer. Works fine on the 64-bit versions of 7 and Vista.
There's a catch! As per this article, the 64-bit version of cups6.inf should be "decorated" to look like this (vanilla cups6.inf from the CUPS SVN repository won't work):
| Code: |
;
; "$Id: cups6.inf,v 1.1 2005/06/16 20:42:20 mike Exp $"
;
; INF file for CUPS Windows Driver
;
; Copyright 2007-2009 by Apple Inc.
; Copyright 2001-2005 by Easy Software Products
;
[Version]
Signature="$Windows NT$"
Provider=Easy Software Products
LayoutFile=ntprint.inf
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=06/16/2005
[Manufacturer]
%apple% = AppleCUPS6,NTamd64
[AppleCUPS6.NTamd64]
"CUPS Test Driver v6" = CUPS6.PS
[CUPS6.PS]
CopyFiles=@CUPS6.PPD
CopyFiles=@CUPS6.INI
CopyFiles=@CUPSPS6.DLL
CopyFiles=@CUPSUI6.DLL
DataSection=PSCRIPT_DATA
DataFile=CUPS6.PPD
Include=NTPRINT.INF
Needs=PSCRIPT.OEM
[DestinationDirs]
DefaultDestDir=66000
[ControlFlags]
ExcludeFromSelect = 2369
;
; End of "$Id: cups6.inf,v 1.1 2005/06/16 20:42:20 mike Exp $".
;
|
Finally, I can't really comment on your smb.conf since I haven't tried v6 yet, but I can tell you that it looks A LOT like what I have on v5:
| Code: |
[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
use client driver = No
printable = Yes
read only = No
browseable = No
available = Yes
[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = No
available = Yes
|
From what I can see, you haven't configured a domain, but you have Samba setting Printing configured as "Point and Click". I believe that it should be able to work that way.
Regards,
Georger
|
|
|
|
|
|
|
Re:How to share Cups-PDF printer with Windows client? 9 Months, 1 Week ago
|
|
Hi Georger,
It looks like the only thing I didn't have in place was a copy of the drivers in the /usr/share/cups/drivers/x64. After placing a copy of the drivers there and re-running
| Code: |
cupsaddsmb -H localhost -U winadmin -v -a
|
but I am still getting the same error where when double clicking on the printer it tells me that it can not find the driver.
|
|
|
|
Clear OS 6.3
Supermicro Atom mobo, 4 GB Ram, 4 Terabytes of storage (Software Raid 5)
Running as Samba Server/Serviio-DLNA/SubSonic/Zarafa with Z-Push/Web Server/MySQL/Firewall/Transmission (with Flexget)
|
|
|