CodeDisplay Moresudo su - apt-get update apt-get build-deps samba apt-get install screen screen cd /root wget https://download.samba.org/pub/samba/samba-4.8.0.tar.gz tar zxvf samba-4.8.0.tar.gz cd samba-4.8.0 ./configure --prefix=/usr \ --enable-fhs \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/arm-linux-gnueabihf \ --with-privatedir=/var/lib/samba/private \ --with-smbpasswd-file=/etc/samba/smbpasswd \ --with-piddir=/var/run/samba \ --with-pammodulesdir=/lib/arm-linux-gnueabihf/security \ --with-pam \ --with-syslog \ --with-utmp \ --with-winbind \ --with-shared-modules=idmap_rid,idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_tdb2,vfs_dfs_samba4,auth_samba4 \ --with-automount \ --with-ldap \ --with-ads \ --with-dnsupdate \ --with-gpgme \ --libdir=/usr/lib/arm-linux-gnueabihf \ --with-modulesdir=/usr/lib/arm-linux-gnueabihf/samba \ --datadir=/usr/share \ --with-lockdir=/var/run/samba \ --with-statedir=/var/lib/samba \ --with-cachedir=/var/cache/samba \ --enable-avahi \ --disable-rpath \ --disable-rpath-install \ --bundled-libraries=pytevent,iniparser,roken,replace,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \ --builtin-libraries=ccan,samba-cluster-support \ --with-cluster-support \ --with-socketpath=/var/run/ctdb/ctdbd.socket \ --with-logdir=/var/log/ctdb \ --with-systemd \ --systemd-install-services \ --with-systemddir=/lib/systemd/system make make install echo 'OMV_SAMBA_SHARE_VFSOBJECTS="catia fruit streams_xattr"' >> /etc/default/openmediavault
Thank you very much for this step-by-step guide, my box is currently compiling.
However it's not a good idea to configure and compile as the root user.
In fact other projects even disallow doing so (linux kernel does so I think).
Only the last 2 steps need root permissions afaik.
So this should not take place in /root anyway, better would be /tmp (also for better speed) or just $HOME.
Maybe you can adapt the steps a little.
Edit: actually that doesn't work for me:
Code
Apr 12 11:01:38 homeserver smbd[1273]: /usr/sbin/smbd: error while loading shared libraries: libsmbldap.so.2: cannot open shared object file: No such file or directory
Edi2: Ok didn't realize it was built for raspberry pi, aka ARM.
My adjusted steps for x86 are here:
Code
sudo apt-get update
sudo apt-get build-deps samba
cd /tmp
wget https://download.samba.org/pub/samba/samba-4.8.0.tar.gz
tar zxvf samba-4.8.0.tar.gz
cd samba-4.8.0
./configure --prefix=/usr \
--enable-fhs \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/x86_64-linux-gnu \
--with-privatedir=/var/lib/samba/private \
--with-smbpasswd-file=/etc/samba/smbpasswd \
--with-piddir=/var/run/samba \
--with-pammodulesdir=/lib/x86_64-linux-gnu/security \
--with-pam \
--with-syslog \
--with-utmp \
--with-winbind \
--with-shared-modules=idmap_rid,idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_tdb2,vfs_dfs_samba4,auth_samba4 \
--with-automount \
--with-ldap \
--with-ads \
--with-dnsupdate \
--with-gpgme \
--libdir=/usr/lib/x86_64-linux-gnu \
--with-modulesdir=/usr/lib/x86_64-linux-gnu/samba \
--datadir=/usr/share \
--with-lockdir=/var/run/samba \
--with-statedir=/var/lib/samba \
--with-cachedir=/var/cache/samba \
--enable-avahi \
--disable-rpath \
--disable-rpath-install \
--bundled-libraries=pytevent,iniparser,roken,replace,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \
--builtin-libraries=ccan,samba-cluster-support \
--with-cluster-support \
--with-socketpath=/var/run/ctdb/ctdbd.socket \
--with-logdir=/var/log/ctdb \
--with-systemd \
--systemd-install-services \
--with-systemddir=/lib/systemd/system
make -j$(nproc+1)
sudo su
make install
echo 'OMV_SAMBA_SHARE_VFSOBJECTS="catia fruit streams_xattr"' >> /etc/default/openmediavault
exit
Display More