No worries, I figured this out. I had to add the samba-tools path before the
command.


/usr/local/samba/bin/samba-tool domain provision --realm=oc.local
--domain=OC --adminpass='openchange1!' --server-role='dc'


It worked!!

Thank Ray








-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of Raymond
Potgieter
Sent: 07 May 2014 11:56 AM
To: 'Development list'
Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS 6.5

Hi Guys,

I managed to get openchange and samba installed and now need to do a samba
provision using the openchange cook book the next command is to run the
following 

Configure Samba4 - Provision the Server - Provision Samba4 server as a
domain controller.

$ sudo PYTHONPATH=$PYTHONPATH samba-tool domain provision --realm=oc.local
--domain=OC --adminpass='openchange1!' --server-role='dc'


I get the error **** command not found:samba-tools ***********










-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of Raymond
Sent: 05 May 2014 03:15 PM
To: 'Development list'
Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS 6.5

Hi Julien, I think your command below did the trick to sort out the python
version errors :-)

***** sed s/get_python_lib\(0,0/get_python_lib\(1,0/g -i >>
script/installsamba4.sh *********


I will now follow the rest of the documentations on provisioning samba and
creating openchange users etc.

Thank you for the help so far.

Ray





-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of Julien
Kerihuel
Sent: 30 April 2014 03:46 PM
To: [email protected]
Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS 6.5

I just say you should go through the entire guide/tutorial first, then ask
questions if something is not working as documented.

Cheers,
Julien.

On 30/04/14 14:29, Raymond Potgieter wrote:
> Sorry Julien but I am a bit lost here. really not understanding where 
> to begin now ... sigh... are you saying that I must not try and 
> install on centos 6.5 ?
>
>
>
> Ray
>
>
>
>
>
>
>
> -----Original Message-----
> From: devel [mailto:[email protected]] On Behalf Of 
> Julien Kerihuel
> Sent: 30 April 2014 01:56 PM
> To: [email protected]
> Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on 
> CentOS 6.5
>
>
> On 30/04/14 13:28, Raymond Potgieter wrote:
>> Hi Julien, thanks for this. On step no 3.2 below I presume samba must 
>> be installed already?
> Hi Raymond,
>
> No. Installing Samba is step 3.3
>
> Using currently packaged Samba is not going to work because it lacks 
> the availability of samba libraries required by OpenChange.
>
> Cheers,
> Julien.
>
>>
>>
>>
>>
>> -----Original Message-----
>> From: devel [mailto:[email protected]] On Behalf Of 
>> Julien Kerihuel
>> Sent: 23 March 2014 01:08 AM
>> To: [email protected]
>> Subject: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS
>> 6.5
>>
>> Good evening all,
>>
>> A while ago, I promised some instructions on building OpenChange on
> CentOS.
>> 1. Context and scope
>> =============
>>
>> - Two approaches have been tried. Firstly, install openchange on top 
>> of CentOS samba4 packages and secondly install openchange/samba4 from 
>> scratch in a minimal environment.
>>
>> - The first approach (install openchange on top of samba4 packaged 
>> for
>> CentOS) has been a failure. It was caused by missing libraries in the 
>> devel RPM packages preventing OpenChange server from compiling properly.
>> The best solution shall probably to inspect the RPM spec files and 
>> include missing libraries but I did not have time for this.
>>
>> - The second approach (install samba4/openchange couple from scratch) 
>> has been a success and the following section only focuses on 
>> different instruction/requirements needed to get it working.
>>
>> - This HowTo only focuses on samba4/openchange deployment. If you 
>> have been building SOGo on CentOS and want to contribute to 
>> openchange documentation, send your pull requests to 
>> openchange/website.git repository on GitHub. Any help you can provide 
>> in making CentOS users life easier with OpenChange will be welcomed!
>>
>>
>> 2. Environment
>> ==========
>>
>> For this test, I have been deploying CentOS 6.5 on a x86_64 architecture.
>> The distribution was set as a minimal server.
>>
>>
>> 3. Instructions
>> =========
>>
>> 3.1 Install Samba4 requirements
>> --------------------------------------------
>>
>> yum install git autoconf automake gcc python-devel popt-devel 
>> libacl-devel
>>
>> 3.2 Patch OpenChange samba4 build script
>> ----------------------------------------------------------
>>
>> When OpenChange build script defines pythondir, it computes the 
>> result of
>> sysconfig.get_python_lib() function and defines platform_specific as
> False.
>> However, it sounds like Samba4 python bindings are installed in a 
>> patform_specific location. If prefix is /usr/local/samba, then 
>> bindings on CentOS will be installed in 
>> /usr/local/samba/lib64/python2.6/site-packages
>> while the scripts expects them to be in 
>> /usr/local/samba/lib/python2.6/site-packages. The following command 
>> will fix
>> samba4 compilation.
>>
>> sed s/get_python_lib\(0,0/get_python_lib\(1,0/g -i 
>> script/installsamba4.sh
>>
>>
>> 3.3 Install Samba
>> -----------------------
>>
>> make samba
>>
>>
>> 3.4 Update dynamic linker
>> -----------------------------------
>>
>> Update ld with non-standard path where we installed samba:
>>
>> echo '/usr/local/samba/lib' > /etc/ld.so.conf.d/samba4.conf echo 
>> '/usr/local/samba/lib64' >> /etc/ld.so.conf.d/samba4.conf ldconfig
>>
>> 3.5 Install OpenChange requirements
>> ---------------------------------------------------
>>
>> yum install flex bison zlib-devel file-devel libical-devel
>>
>>
>> Any other instructions from the cookbook should apply here - 
>> OpenChange compilation, server configuration etc.
>>
>> Br,
>> Julien.
>>
>> --
>> Julien Kerihuel
>> [email protected]
>> OpenChange Project Founder
>>
>> Twitter: http://twitter.com/jkerihuel
>>
>> GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79
>>
>>
>>
>> _______________________________________________
>> devel mailing list
>> [email protected]
>> http://mailman.openchange.org/listinfo/devel
> --
> Julien Kerihuel
> [email protected]
> OpenChange Project Founder
>
> Twitter: http://twitter.com/jkerihuel
>
> GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79
>
>
>
> _______________________________________________
> devel mailing list
> [email protected]
> http://mailman.openchange.org/listinfo/devel

--
Julien Kerihuel
[email protected]
OpenChange Project Founder

Twitter: http://twitter.com/jkerihuel

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>email-banner</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0"> </br> <a href="http://www.joburgtheatre.com";><img
src="http://www.showbusiness.co.za/emailbanner/banner.jpg"; width="660"
height="165" />
<!-- ImageReady Slices (banner4web.jpg) --><!-- End ImageReady Slices
--></a></br>


</body>

</html>

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to