Samba / CIFS

/etc/samba/smb.conf

[global]

    workgroup     = WORKGROUP
    netbios name  = NAS
    server string = NAS

    unix charset  = utf8
    dos charset   = cp950

    load printers = no

    security      = share
    guest account = root

    security      = user

[Shared]

    path       = /root/shared
    browseable = yes
    writable   = no
    read only  = yes
    guest ok   = yes
    guest only = yes

[Private]

    path       = /root/shared/Private
    browseable = no
    writable   = yes
    read only  = no
testparm
smbstatus
pdbedit -a -u "root"
smbpasswd "root"
pdbedit -L

AFP

CentOS

$ wget "https://copr-be.cloud.fedoraproject.org/results/shassard/netatalk/epel-7-x86_64/netatalk-3.1.7-0.1.el7.centos/netatalk-3.1.7-0.1.el7.centos.x86_64.rpm"
$ yum install "dconf" "libevent" "tracker"
$ rpm -ivh "netatalk-3.1.7-0.1.el7.centos.x86_64.rpm"

/etc/avahi/services/afpd.service

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
    <name replace-wildcards="yes">%h</name>
    <service>
        <type>_afpovertcp._tcp</type>
        <port>548</port>
    </service>
    <service>
        <type>_device-info._tcp</type>
        <port>0</port>
        <txt-record>model=TimeCapsule</txt-record>
    </service>
</service-group>

/etc/netatalk/AppleVolumes.default

/root/shared    "Shared"
/root/timemachine   "Time Machine"  options:usedots,upriv,tm

/etc/netatalk/afp.conf

[Global]

    hostname = YC-Box-NAS
    uam list = uams_guest.so
    guest account = "root"

    log file = /usr/local/log/afp/log.%m

[Shared]

    path = /root/shared
    valid users = root

[Time Machine]

    path = /root/timemachine
    valid users = root
    time machine = yes

Mounting

$ mount --types nfs4 --options "username=,password=" "yc-nas:/volume/test" "/mnt/nas-test"
$ mount --types nfs  --options "username=,password=" "yc-nas:/volume/test" "/mnt/nas-test"
$ mount.nfs          --options "username=,password=" "yc-nas:/volume/test" "/mnt/nas-test"
$ mount --types smbfs --options "username=,password=" "//yc-nas/test" "/mnt/nas-test"
$ mount.cifs --options "username=,password=" "//yc-nas/test" "/mnt/nas-test"

Synology DSM

Bootstrap and ipkg

$ wget "http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/stable/syno-i686-bootstrap_1.2-7_i686.xsh"
$ chmod +x "syno-i686-bootstrap_1.2-7_i686.xsh"
$ ./syno-i686-bootstrap_1.2-7_i686.xsh