You are not logged in.

#1 2009-12-17 19:44:20

murfMan
Member
Registered: 2009-10-27
Posts: 161

cups && smb share

hi all,

im trying to share my printer (connected to archlinux) with my notebook (windows7).  so far i am able to see my archbox in my network through windows but i can't see the printer.

here is my smb.conf

[global]
workgroup=WORKGROUP
server string=Arch Linux Print Server
security=user
load printers=yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no

[printers]
    comment=All Printers
    path=/var/spool/samba
    browseable=yes
    # to allow user 'guest account' to print.
    guest ok=no
    writable=no
    printable=yes
    create mode=0700
    write list=@adm root

any ideas

Offline

#2 2009-12-19 08:02:19

Dillweed
Member
From: Washington
Registered: 2007-10-29
Posts: 17

Re: cups && smb share

I've had the exact same problem running Samba 3.4.3 and Windows 7 64bit. My smb.conf is very similar to yours so the smb.conf really isn't worth posting. I did find a couple bugs on Samba's bugzilla.

https://bugzilla.samba.org/show_bug.cgi?id=6883

https://bugzilla.samba.org/show_bug.cgi?id=6888

I really hope this gets fixed soon, because I'm unable to print. I could downgrade, I suppose, but there are so many dependancies on heimdal that downgrading that package will probably break something worse. What I don't understand is why 3.3.8 works and 3.4.3 doesn't.

Does anyone else have any suggestions?

Last edited by Dillweed (2009-12-20 01:52:33)

Offline

#3 2010-02-21 07:53:09

Dillweed
Member
From: Washington
Registered: 2007-10-29
Posts: 17

Re: cups && smb share

Ok to resurrect an old thread. Here is that patch I've been waiting for for the 3.4 series of samba that allows windows 7 64 bit to print to a samba printer share that is on a 32bit computer. (not sure if the 64bit version of samba works or not). I've used this PKGBUILD and samba patch to successfully compile with the 3.4.5 version. Here you go:

The patch is too big to attach but you can get the patch from this samba link

https://bugzilla.samba.org/show_bug.cgi?id=6888

PKGBUILD

# $Id: PKGBUILD 64318 2010-01-19 19:31:39Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgbase=samba
pkgname=('smbclient' 'samba')
pkgver=3.4.5
# We use the 'A' to fake out pacman's version comparators.  Samba chooses
# to append 'a','b',etc to their subsequent releases, which pamcan
# misconstrues as alpha, beta, etc.  Bad samba!
_realver=3.4.5
pkgrel=1.2
arch=(i686 x86_64)
url="http://www.samba.org"
license=('GPL3')
makedepends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'libcap>=2.16' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'talloc' 'tdb')
options=(!makeflags)
source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${_realver}.tar.gz
        samba samba.logrotate 
        swat.xinetd 
        samba.pam 
        samba.conf.d 
    64bit.patch)
### UNINSTALL dmapi package before building!!!

build() {
  cd ${srcdir}/${pkgbase}-${_realver}
  patch -Np1 -i ${srcdir}/64bit.patch || return 1
  cd ${srcdir}/${pkgbase}-${_realver}/source3
  ./configure --prefix=/usr \
              --libdir=/usr/lib/ \
              --localstatedir=/var \
              --with-configdir=/etc/samba \
              --with-lockdir=/var/cache/samba \
              --with-piddir=/var/run/samba \
              --with-fhs \
              --with-pam \
              --with-pam_smbpass \
              --with-pammodulesdir=/lib/security \
              --with-ads \
              --with-acl-support \
              --with-cifsmount \
              --with-libsmbclient \
              --with-syslog \
              --enable-external-libtalloc \
              --disable-dnssd \
              --disable-avahi \
              --without-libtdb 
  make || return 1
}

package_smbclient () {
pkgdesc="Tools to access a server's filespace and printers via SMB"
depends=('readline>=6.0.00' 'popt' 'libldap>=2.4.18-1' 'libcap>=2.16' 'heimdal>=1.2-1' 'db>=4.7' 'e2fsprogs' 'tdb' 'talloc')
  cd ${srcdir}/${pkgbase}-${_realver}/source3
  mkdir -p ${pkgdir}/usr/bin ${pkgdir}/sbin ${pkgdir}/usr/lib
  install -m755 bin/{smbclient,rpcclient,smbspool,smbtree,smbcacls,smbcquotas,smbget,net,nmblookup} ${pkgdir}/usr/bin/
  install -m755 bin/{mount.cifs,umount.cifs} ${pkgdir}/sbin/
  for i in libnetapi* libwbclient* libsmbclient*;do
      cp  -a bin/${i}*.so* ${pkgdir}/usr/lib/
  done
  install -m755 script/smbtar ${pkgdir}/usr/bin/
  mkdir -p ${pkgdir}/usr/lib/cups/backend
  ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
  mkdir -p ${pkgdir}/usr/include
  install -m644 include/libsmbclient.h ${pkgdir}/usr/include/
  install -m644 lib/netapi/netapi.h ${pkgdir}/usr/include/
  mkdir -p ${pkgdir}/usr/share/man/man{1,7,8}
  for man in smbspool \
      umount.cifs mount.cifs net; do
      install -m644 ../docs/manpages/${man}.8 ${pkgdir}/usr/share/man/man8/
  done
  for man in rpcclient smbcacls smbclient smbcquotas smbget \
      smbtree smbtar nmblookup; do
      install -m644 ../docs/manpages/${man}.1 ${pkgdir}/usr/share/man/man1/
  done
  install -m644 ../docs/manpages/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
}

package_samba () {
pkgdesc="Tools to access a server's filespace and printers via SMB"
backup=(etc/logrotate.d/samba 
        etc/pam.d/samba 
        etc/samba/smb.conf
        etc/xinetd.d/swat
        etc/conf.d/samba)
depends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap>=2.16' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'e2fsprogs' 'tdb' 'talloc')
  cd ${srcdir}/samba-${_realver}/source3
  mkdir -p ${pkgdir}/var/log/samba
  mkdir -p ${pkgdir}/etc/samba/private
  chmod 700 ${pkgdir}/etc/samba/private
  make DESTDIR=${pkgdir} install || return 1
  chmod 644 ${pkgdir}/usr/include/*.h
  rm -rf ${pkgdir}/usr/var
  (cd script; cp installbin.sh i; cat i | sed 's/\/sbin\///' > installbin.sh)
  install -D -m755 ../../samba ${pkgdir}/etc/rc.d/samba
  install -D -m644 ../../samba.conf.d ${pkgdir}/etc/conf.d/samba
  mkdir -p ${pkgdir}/etc/samba
  cat ../examples/smb.conf.default | \
    sed 's|log file = .*$|log file = /var/log/samba/log.%m|g' >${pkgdir}/etc/samba/smb.conf.default
  install -D -m644 ../../samba.logrotate ${pkgdir}/etc/logrotate.d/samba
  install -D -m644 ../../swat.xinetd ${pkgdir}/etc/xinetd.d/swat
  install -D -m644 ../../samba.pam ${pkgdir}/etc/pam.d/samba
  # spool directory
  install -d -m1777 ${pkgdir}/var/spool/samba
  sed -i 's|/usr/spool/samba|/var/spool/samba|g' ${pkgdir}/etc/samba/smb.conf.default
  # fix logrotate
  sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
  # nsswitch libraries
  install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
  ln -s libnss_wins.so ${pkgdir}/lib/libnss_wins.so.2
  install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
  # remove conflict files of smbclient
  for man in libsmbclient smbspool \
      umount.cifs mount.cifs net; do
      rm -f ${pkgdir}/usr/share/man/man8/${man}.8
  done
  for i in libnetapi* libwbclient* libsmbclient*;do
      rm -f ${pkgdir}/usr/lib/$i
  done
  for bin in net \
      nmblookup rpcclient smbcacls smbclient \
      smbcquotas smbget smbspool smbtar smbtree; do
      rm -f ${pkgdir}/usr/bin/$bin
  done
  rm -f ${pkgdir}/usr/include/netapi.h
  for man in rpcclient smbcacls smbclient smbcquotas \
      smbtree smbtar nmblookup smbget; do
      rm -f ${pkgdir}/usr/share/man/man1/${man}.1
  done
  rm -f ${pkgdir}/usr/share/man/man7/libsmbclient.7
  rm -f ${pkgdir}/usr/include/libsmbclient.h
  # remove conflict files of tdb
  rm -f ${pkgdir}/usr/bin/{tdbbackup,tdbdump,tdbtool}
  # copy ldap example
  install -D -m644 ${srcdir}/samba-${_realver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
}
md5sums=('8e8a484782f2b7716b6c6bd9a7d2bf71'
         'e93533fa2296c07c1f645dfdd373657f'
         '5697da77590ec092cc8a883bae06093c'
         'a4bbfa39fee95bba2e7ad6b535fae7e6'
         '96f82c38f3f540b53f3e5144900acf17'
         'f2f2e348acd1ccb566e95fa8a561b828'
         'edac0cc8009f74e78d605ee2571cc8af')

Offline

Board footer

Powered by FluxBB