site  contact  subhomenews

Fix for Samba printing

May 12, 2010 — BarryK
Jpeps and rcrsn51 have been discussing a printing problem and found a fix:
http://murga-linux.com/puppy/viewtopic.php?t=55071&start=105

Ok, I have implemented this in Woof, /usr/sbin/cups_shell (the CUPS Wizard). This code extract shows the change:

#100410 fixes from rcrsn51 for samba printing...

[ "`stat --format=%U%G /etc/cups/snmp.conf | grep 'UNKNOWN'`" != "" ] && chown root:nobody /etc/cups/snmp.conf
if [ ! -e /usr/lib/cups/backend/smb ];then
SMBSPOOL="`which smbspool`"
#100512 seems have to copy smbspool and rename to smb...
#[ "$SMBSPOOL" ] && ln -snf $SMBSPOOL /usr/lib/cups/backend/smb
[ "$SMBSPOOL" ] && cp -a $SMBSPOOL /usr/lib/cups/backend/smb
fi
[ -f /etc/opt/samba/smb.conf ] && chmod 755 /etc/opt/samba/smb.conf #need world-readable.
[ -f /etc/samba/smb.conf ] && chmod 755 /etc/samba/smb.conf #need world-readable.

Comments

Mr.
Username: Burhan
Dear Barry, I tried to print a spreadsheet using Epson LQ1170 using the 24pin Epson driver from the CUPS wizard. This printer is a wide carriage 132 cols printer and use the Fanfold US 14.5 x 11 paper. Here is the problem : 1. The print preview always reset the paper size to letter size. 2. Auto scaling to fit is not working. 3. The printer prints as if it is 11 x 14.5. I hope this problem can be corrected soon. Wish list : corrected printing problem (above) and a network navigator like Nautilus would make puppy linux the best distro for productivity. Regards,


Tags: woof