Caesar Samsi
2015-May-05 04:31 UTC
[Samba] post make install, sudo service samba start ->service not recognized?
I'm running LinuxMint 17 Rebecca. From: Caesar Samsi [mailto:cmsamsi at gmail.com] Sent: Monday, May 04, 2015 10:16 PM To: samba at lists.samba.org Subject: post make install, sudo service samba start ->service not recognized? Hi, I've successfully compiled 4.2.1, done make install, and run testparm as well as smbd -b to check the build. Looks good. So now how do I start the service? If I just do [sudo service samba start] I get "Service not recognized"? Thank you, Caesar. P.S. for LinuxMint 17 Rebecca, here's the ./configure command sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-piddir=/var/run/samba --with-pammodulesdir=/lib/security --without-systemd --enable-fhs --sbindir=/usr/sbin --bindir=/usr/bin --libdir=/usr/lib/x86_64-linux-gnu --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba --with-lockdir=/var/run/samba --enable-gnutls The pre-requisites are here: https://wiki.samba.org/index.php/OS_Requirements#Debian_.2F_Ubuntu
Rowland Penny
2015-May-05 08:40 UTC
[Samba] post make install, sudo service samba start ->service not recognized?
On 05/05/15 05:31, Caesar Samsi wrote:> I'm running LinuxMint 17 Rebecca. > > > > From: Caesar Samsi [mailto:cmsamsi at gmail.com] > Sent: Monday, May 04, 2015 10:16 PM > To: samba at lists.samba.org > Subject: post make install, sudo service samba start ->service not > recognized? > > > > Hi, > > > > I've successfully compiled 4.2.1, done make install, and run testparm as > well as smbd -b to check the build. Looks good. > > > > So now how do I start the service? If I just do [sudo service samba start] I > get "Service not recognized"? > > > > Thank you, Caesar. > > > > P.S. for LinuxMint 17 Rebecca, here's the ./configure command > > > > sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var > --with-piddir=/var/run/samba --with-pammodulesdir=/lib/security > > --without-systemd --enable-fhs > > --sbindir=/usr/sbin --bindir=/usr/bin --libdir=/usr/lib/x86_64-linux-gnu > > --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba > > --with-lockdir=/var/run/samba --enable-gnutls > > > > The pre-requisites are here: > https://wiki.samba.org/index.php/OS_Requirements#Debian_.2F_Ubuntu > > >OK, I tried this once, you need to install samba with apt-get, then install these packages: apt-get install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev acl xsltproc inkscape libpam0g-dev libbind-dev libkrb5-dev libssl-dev krb5-config bind9utils NOTE: this was for 4.1.7, so you may have to install other/different packages. Download and unpack samba4 and cd into the unpacked dir. run configure: ./configure --enable-fhs --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-statedir=/var/lib/samba --with-pammodulesdir=/usr/lib/x86_64-linux-gnu/security --with-privatedir=/var/lib/samba/private --with-piddir=/var/run/samba --with-cachedir=/var/cache/samba --with-lockdir=/var/run/samba --with-logfilebase=/var/log/samba --with-sockets-dir=/var/run/samba --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba --with-privatelibdir=/usr/lib/x86_64-linux-gnu/samba --with-privileged-socket-dir=/var/lib/samba --with-configdir=/etc/samba --without-systemd then: make finally sudo make install. This should overwrite the samba binaries you installed earlier with apt-get and allow you to use the standard linux mint startup scripts. The Downside is that you will have to make sure that an update doesn't overwrite your version of samba4. It is much better to install into the standard location: /usr/local/samba and alter the PATH and the start scripts to point to it.. Rowland
Apparently Analagous Threads
- post make install, sudo service samba start ->service not recognized?
- 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
- By design/possible bug? Folders unmarked from sharing are still accessible
- 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
- RFC2307 attributes not being read by DC2 in 4.2.1