Beruflich Dokumente
Kultur Dokumente
======================
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
aimed at production use of Samba4.
.. contents::
Step 1: download Samba4
-----------------------
If you have downloaded the Samba4 code via a tarball released from the
samba.org website, Step 1 has already been completed for you. For testing
with the version released in the tarball, you may continue on to Step 2. Note
that the references below to the top-level directory named "samba4" will
instead be based on the name of the tarball downloaded (e.g.
"samba-4.0.0alpha3" for the tarball samba-4.0.0alpha3.tar.gz).
There are 2 methods of doing this:
method 1: "rsync -avz samba.org::ftp/unpacked/samba_4_0_test/ samba4"
method 2: "git clone git://git.samba.org/samba.git samba4; cd samba4 && git c
heckout -b v4-0-test origin/v4-0-test; cd .."
both methods will create a directory called "samba4" in the current
directory. If you don't have rsync or git 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 git
repository. So if you also have git you can update it to the latest
version at some future date using::
$ cd samba4
$ git pull origin v4-0-test
Step 2: compile Samba4
----------------------
Recommended optional development libraries:
- acl and xattr development libraries
- gnutls
- readline
Run this::
$ cd samba4/source
$ ./configure
$ make
Step 3: install Samba4
----------------------
Run this as a user who have permission to write to the install
directory (defaults to /usr/local/samba). Use --prefix option to
configure above to change this.
::
# make install