LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-21-2014, 03:16 AM   #1
odiwbasa
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Rep: Reputation: Disabled
Cups, Samba and Printer Sharing to Windows clients ("Point'n'Click" installation)


Hello!

I've been struggling with the above for a couple of days now and was hoping to have a fresh set of eyes glance over the problem. The setup is as follows:

CentOS 6.5
Samba version 3.6.9-169
CUPS 1.4.2

I've also managed to replicate the issue using alternate versions of Samba (4.1.6) and Cups (1.7.2) installed on a Ubuntu 14.04.1 machine. A summary of the problem is as follows:
  • Cups is configured and working as expected. I can add a printer via the GUI (hostname:631/admin), print a test page from the GUI successfully, and also add the printer to any client using the full path (hostname:631/printers/pritername). The clients can print successfully too when the printer is added this way. If it's noteworthy I've configured the printer in Cups as lpd.
  • Samba seems to be configured correctly too. I can view all shares via \\hostname\ from any Windows client, including the [print$] share and its contents.

The problems come in when trying to distribute drivers to client (64bit Windows 7, 8 and 8.1) machines via Samba. I've followed and checked through a number of guides (eg. this[1] one) without success.
  • I've added the printer drivers to /usr/share/cups/drivers and removed all capitalization within the driver file names. I can browse to this folder from clients via \hostname\print$ and view the drivers.
  • I've added both 32bit and 64bit drivers using the cupsaddsmb command without any errors. The printer then appears within the share as an available shared printer.
  • Upon double clicking/right click->connect it prompts "Do you trust this printer?". I can click on "Install Driver". The driver installation occurs and then, immediately as it finishes, an error stating "Windows cannot connect to the printer. Operation failed with error 0x000000d8" is displayed.

I've replicated this on multiple Windows 7 and 8.1 clients. My initial thoughts were that it were a driver problem but I receive the same error if I remove the drivers entirely from /usr/share/cups/drivers and attempt the "point'n'click" install. The only difference is is that Windows skips the driver installation but then displays the same error (although error code 0x00000003). If I tail -f /var/log/cups/error.log while double clicking on the samba printer share the following occurs:

Quote:
D [17/Oct/2014:16:22:38 +0200] cupsdAcceptClient: skipping getpeercon()
D [17/Oct/2014:16:22:38 +0200] cupsdAcceptClient: 13 from localhost (Domain)
D [17/Oct/2014:16:22:38 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [17/Oct/2014:16:22:38 +0200] cupsdSetBusyState: Active clients
D [17/Oct/2014:16:22:38 +0200] cupsdAuthorize: No authentication data provided.
D [17/Oct/2014:16:22:38 +0200] cupsdReadClient: 13 1.1 Get-Jobs 1
D [17/Oct/2014:16:22:38 +0200] Get-Jobs ipp://localhost/printers/printername
D [17/Oct/2014:16:22:38 +0200] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/printername) from localhost
D [17/Oct/2014:16:22:38 +0200] cupsdSetBusyState: Not busy
D [17/Oct/2014:16:22:38 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [17/Oct/2014:16:22:38 +0200] cupsdSetBusyState: Active clients
D [17/Oct/2014:16:22:38 +0200] cupsdAuthorize: No authentication data provided.
D [17/Oct/2014:16:22:38 +0200] cupsdReadClient: 13 1.1 Get-Printer-Attributes 1
D [17/Oct/2014:16:22:38 +0200] Get-Printer-Attributes ipp://localhost/printers/printername
D [17/Oct/2014:16:22:38 +0200] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/printername) from localhost
D [17/Oct/2014:16:22:38 +0200] cupsdSetBusyState: Not busy
D [17/Oct/2014:16:22:38 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [17/Oct/2014:16:22:38 +0200] cupsdCloseClient: 13
I then suspected some kind of permissions problem but I can't seem to identify any.

I'd be happy to provide any config files eg. smb.conf, cupsd.conf or log files if it will help. So far nothing has jumped out at me other than the tail above.
Any thoughts or ideas? Absolutely any assistance or guidance would be greatly appreciated.
 
Old 10-21-2014, 08:14 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I do not see the guide that you have been following, but I have had success using this. https://www.samba.org/samba/docs/man...html#id2626650
This may be more applicable to your situation. http://wiki.samba.org/index.php/Conf...ver_Deployment

Please note that when using CUPS, it is best to provide a raw printer queue to the printer that can be used by Windows machines to send a formatted print stream prepared by the Windows machine to the printer.

PS - This is not a task to be undertaken by those with thinning hair.
 
Old 10-22-2014, 05:16 AM   #3
odiwbasa
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply! I'm going to check through the two links you've posted and also test raw printer queue. I'll get back to you with my findings. Many thanks again!
 
Old 10-28-2014, 11:08 AM   #4
odiwbasa
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello again! Some success, I managed to get point 'n click working for 2x clients (1x Win7 64bit, 1x Win8 64bit). The trick was to use printmanagement.msc to add drivers instead, that was the only change I made, and then it worked. Unfortunately some other clients are still experiencing issues but I'll look into those separately - hopefully unrelated.

Thanks again for your help!
 
  


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
[SOLVED] CUPS issue; error with network printer "/usr/lib/cups/backend/hp failed" floppy_stuttgart Linux - Newbie 1 06-22-2014 04:04 AM
Samba, CUPS, Windows NT clients : cannot add printer checkmate3001 Linux - Server 3 03-14-2008 10:10 AM
Sharing CUPS Printer with SAMBA to Windows machine turbocueca Linux - Server 8 05-05-2007 10:41 AM
Trouble Sharing Local Printer using Samba and CUPS for Windows systems Electro Linux - Networking 3 01-17-2007 09:54 PM
LXer: Sandals and all: A review of "Point & Click OpenOffice.org" LXer Syndicated Linux News 0 01-01-2006 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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