Table of Contents

Standalone Samba Configuration Template

03 Janurary 2017

  • Clean and reorganize.

26 February 2017

  • Initial commit.

Installing on Debian

You will need the subversion package (install with aptitude install subversion).

aptitude install subversion
aptitude install libpam-smbpass
cp /usr/share/doc/libpam-smbpass/examples/password-sync /etc/pam.d/
aptitude install avahi-daemon avahi-utils avahi-discover

and create the service file by issuing:

cat << EOF > /etc/avahi/services/samba.service
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">%h</name>
 <service>
   <type>_smb._tcp</type>
   <port>445</port>
 </service>
 <service>
   <type>_device-info._tcp</type>
   <port>0</port>
   <txt-record>model=Macmini4,1</txt-record>
 </service>
</service-group>
EOF

and then restart the avahi service:

/etc/init.d/avahi-daemon restart
svn export http://svn.grimore.org/configuration-templates/samba/3/standalone --force .

to check out Samba3 files, or:

svn export http://svn.grimore.org/configuration-templates/samba/4/standalone --force .

to check out Samba4 files.

/etc/init.d/samba restart

Index