Samba4/OSX: Difference between revisions
From SambaWiki
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
A brief howto on installing Samba 4 alpha14 on OS X. |
|||
Under Construction. Right now, this page is a short list of notes. |
|||
==Dependencies== |
==Dependencies== |
||
Install MacPorts using the instructions on [http://www.macports.org/ macports.org]. Once your MacPorts system is set up how you like it, type in the following command to install Samba 4 dependencies. |
Install MacPorts using the instructions on [http://www.macports.org/ macports.org]. Once your MacPorts system is set up how you like it, type in the following command to install Samba 4 dependencies. |
||
# port install python27 python_select gnutls readline talloc && python_select python27 |
# port install python27 python_select gnutls readline talloc && python_select python27 |
||
==Compiling Samba4== |
==Compiling Samba4== |
||
You can use Git as in [[Samba4/HOWTO|general guide]], or you may prefer to use releases: |
You can use Git as in [[Samba4/HOWTO|general guide]], or you may prefer to use releases: |
||
wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0alpha14.tar.gz |
$ wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0alpha14.tar.gz |
||
tar -xvjf samba-4.0.0alpha14.tar.gz |
$ tar -xvjf samba-4.0.0alpha14.tar.gz |
||
cd samba-4.0.0alpha14/source4 |
$ cd samba-4.0.0alpha14/source4 |
||
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig<sup>1</sup> |
$ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig<sup>1</sup> |
||
./configure |
$ ./configure<sup>2</sup> |
||
make |
$ make |
||
# make install |
|||
./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller' |
# ./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller' |
||
==Managing Samba4 with Launchd== |
==Managing Samba4 with Launchd== |
||
Line 19: | Line 18: | ||
==Building a Samba4 Port== |
==Building a Samba4 Port== |
||
==Notes== |
==Notes== |
||
# This was a hack to help autotools find talloc in MacPorts. TODO: Gather more info a build a bug report, if it is still required on alpha15 |
# This was a hack to help autotools find talloc in MacPorts. TODO: Gather more info a build a bug report, if it is still required on alpha15. |
||
# configure.developer make fails when building pam_winbind. TODO: Investigate and file a bug report. |
Revision as of 15:08, 5 February 2011
A brief howto on installing Samba 4 alpha14 on OS X.
Dependencies
Install MacPorts using the instructions on macports.org. Once your MacPorts system is set up how you like it, type in the following command to install Samba 4 dependencies.
# port install python27 python_select gnutls readline talloc && python_select python27
Compiling Samba4
You can use Git as in general guide, or you may prefer to use releases:
$ wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0alpha14.tar.gz $ tar -xvjf samba-4.0.0alpha14.tar.gz $ cd samba-4.0.0alpha14/source4 $ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig1 $ ./configure2 $ make # make install # ./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'
Managing Samba4 with Launchd
Configuring Samba 4 with Server Admin
Building a Samba4 Port
Notes
- This was a hack to help autotools find talloc in MacPorts. TODO: Gather more info a build a bug report, if it is still required on alpha15.
- configure.developer make fails when building pam_winbind. TODO: Investigate and file a bug report.