Samba: printing with smbclient

The Samba-tng package does not have the 'smbspool' utility, so how do they print? I asked Patriot about this, and he has given superb information ...yes, 'smbclient' can do the job!

Patriot is the person who has authored lameSMBxplorer:
http://murga-linux.com/puppy/viewtopic.php?t=50901

Note that HairyWill authored Pnethood, an earlier application to access Windows shares:
http://murga-linux.com/puppy/viewtopic.php?t=23464

Patriot has informed me of a solution for using smbclient to print with CUPS:
http://willem.engen.nl/projects/cupssmb/

So, the Samba-tng PET package that I have created has /usr/lib/cups/backend/smbc, and /etc/samba/printing.auth. This will be in the next Slackpup, and you guys who are into Samba are welcome to see if you can get it working!

Patriot and HairyWill are of course invited to update their programs to work with 'smbc'.

Note, Spup 0.4 should be out in a couple of days.


Posted on 7 Jul 2010, 19:23


Comments:

Posted on 7 Jul 2010, 20:18 by BarryK
Samba tutorial
Here is some simple guidelines to setting up Samba server:
http://blogs.techrepublic.com.com/10things/?p=1461



Posted on 7 Jul 2010, 20:34 by panzerpuppy
xf86-video-ati 6.13.1 Driver Released
xf86-video-ati 6.13.1 stable driver released.

Lots of bugfixes for various ATI cards and performance improvements for older Radeon cards.



Posted on 7 Jul 2010, 22:11 by BarryK
No mount.cifs/umount.cifs
As I am reading about Samba, it looks like to be able to mount with "mount -t cifs ..." there has to exist the 'mount.cifs' and 'umount.cifs' utilities. However, Samba-tng doesn't have them.



Posted on 8 Jul 2010, 3:50 by perthie
smbc backend testing
Some initial testing was successful after one patch.

Line 52 of the smbc script should be "exit 0" instead of "return 0"

Otherwise, the print job ends with an error and the printer goes off-line.

Testing was done in Quirky with CUPS 1.3.11.




Posted on 8 Jul 2010, 4:10 by perthie
Additional smbc Patching
There are some other "return"s in the script that should become "exit"s.

Also a quick test of "mount -t cifs" was successful.



Posted on 8 Jul 2010, 8:07 by BarryK
Re samba mounting
perthie,
That's great, I'll modify the 'smbc' script.

If you installed the samba-tng package, it doesn't have mount.cifs or umount.cifs. Oh, I just realised, Quirky has a package named 'mountcifs', with 'mount.cifs' in it. I need to check that out, obviously it works with samba-tng.



Posted on 8 Jul 2010, 8:20 by BarryK
re 'mountcifs' pet
Ah, now it becomes clear. Recent puppies have a pet package named 'mountcifs' that I created awhile back:

http://bkhome.org/blog/?viewDetailed=00929

Jamesbond got the 'mount.cifs' out of Samba.



Posted on 8 Jul 2010, 8:38 by BarryK
samba_mount_cifs
Ok, I have created a PET package 'samba_mount_cifs-3.0.37-s131.pet' that has 'mount.cifs' and 'umount.cifs' in it. This package is to be used with the samba-tng PET packages.



Posted on 8 Jul 2010, 8:39 by BarryK
Samba printing HOWTO
I have created a HOWTO, /usr/share/doc/samba-printing.htm in Woof.



Posted on 8 Jul 2010, 22:33 by perthie
SMB vs SMBC
There have always been a few users who could not connect to their Windows shared printer using the smb backend because of authentication problems. Maybe this new smbc backend will work better for them.