view · edit · print · history

Upgrade samba

Ok, this is ugly. But it works. I wanted my ds101 to be a wins-server. It would appear that this functionality has been removed from the samba included on the ds101.

To install samba on the slug, you will need the following:

  1. A machine with ipkg installed (You'll need it to extract the ipkgs from the nslu2 feed)
  2. A few packages from the feed, namely:
  • readline_5.0-2_armeb.ipk
  • openldap-libs_2.2.26-5_armeb.ipk
  • popt_1.7-1_armeb.ipk (From the native feed)
  • samba_3.0.14a-6_armeb.ipk

Steps to install:

  • mkdir temp
  • wget the packages
  • ipkg -o temp -nodeps <packagename>
  • Copy all of the libs in temp/opt/lib to /lib on the ds101
  • copy smbd and nmbd from temp/opt/somewhere to /usr/syno/sbin/ on the ds101
  • edit /etc/rc and add ln -s /volume1/opt /opt to the end of the file
  • Reboot, and verify that /opt/etc exists and is a symlink. Samba will fail to start.
  • set up so samba finds it config files:

ln -s /writeable/configs/usr/syno/etc/smb.conf /opt/etc/samba/smb.conf ln -s /writeable/configs/usr/syno/etc/private/smbpasswd /opt/etc/samba/smbpasswd ln -s /writeable/configs/usr/syno/etc/private/secrets.tdb /opt/etc/samba/smbpasswd mkdir -p /volume1/opt/etc

  • Reboot, and samba should now start. You should still be able to use the webinterface to manage it.
view · edit · print · history · Last edited by repvik.
Originally by repvik.
Page last modified on August 27, 2005, at 07:47 PM