tridge@samba.org, December 2004
+A more up to date version of this howto can be found in the wiki
+at http://wiki.samba.org/index.php/Samba4/HOWTO.
+
This is a very basic document on how to setup a simple Samba4
server. This is aimed at developers who are already familiar with
Samba3 and wish to participate in Samba4 development. This is not
both methods will create a directory called "samba4" in the current
directory. If you don't have rsync or svn then install one of them.
+Since only released versions of Samba contain a pregenerated configure script,
+you will have to generate it by hand:
+
+ $ cd samba4/source
+ $ ./autogen.sh
+
Note that the above rsync command will give you a checked out svn
repository. So if you also have svn you can update it to the latest
version at some future date using:
Step 2: compile Samba4
----------------------
+Recommended optional development libraries:
+- acl and xattr development libraries
+- gnutls
+- readline
+
Run this:
$ cd samba4/source
- $ ./autogen.sh
- $ ./configure.developer
+ $ ./configure
$ make proto all
-If you have gcc 3.4 or newer, then substitue "pch" for "proto" to
+If you have gcc 3.4 or newer, then substitute "pch" for "proto" to
greatly speed up the compile process (about 5x faster).
-
Step 3: install Samba4
----------------------
# cd source
# ./setup/provision --realm=YOUR.REALM --domain=YOURDOM --adminpass=SOMEPASSWORD
+REMINDER: Add the "bin" directory of the path you installed to
+ (e.g. /usr/local/samba/bin) to your path, or the provision command
+ will not work.
+
'YOURDOM' is the NT4 style domain name. 'YOUR.REALM' is your kerberos
realm, which is typically your DNS domain name.