Difference between revisions of "AD Samba4"
From Stadm
Jump to navigationJump to searchLine 2: | Line 2: | ||
=Samba 4 Active Directory DC= | =Samba 4 Active Directory DC= | ||
+ | ==Installing Samba 4 onto CentOS== | ||
*Install a minimal install of CentOS | *Install a minimal install of CentOS | ||
*change the hostname | *change the hostname | ||
Line 26: | Line 27: | ||
*install a couple packages that will be required for building and installing samba | *install a couple packages that will be required for building and installing samba | ||
yum install glibc glibc-devel gcc python* libacl-devel krb5-server krb5-workstation krb5-libs pam_krb5 make gnutls-devel openssl-devel bind bind-libs bind-utils | yum install glibc glibc-devel gcc python* libacl-devel krb5-server krb5-workstation krb5-libs pam_krb5 make gnutls-devel openssl-devel bind bind-libs bind-utils | ||
+ | *install git, git will be used to download samba | ||
+ | yum install git-core | ||
+ | git clone http://gitweb.samba.org/samba.git ~/samba-master | ||
+ | *reboot server so all packages and updates are applied | ||
+ | shutdown -r now | ||
+ | *login and build the samba install | ||
+ | cd ~/samba-master | ||
+ | ./configure --enable-debug --enable-selftest | ||
+ | *if it completes successfully | ||
+ | make | ||
+ | make install |
Revision as of 14:24, 25 July 2013
Samba 4 Active Directory DC
Installing Samba 4 onto CentOS
- Install a minimal install of CentOS
- change the hostname
hostname sambatest
- manually edit or add network-scripts if not there
cd /etc/sysconfig/network-scripts/ vi ifcfg-eth0
- Make sure these options are included
DEVICE=eth0 HWADDR=**:**:**:**:**:** TYPE=ETHERNET ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=dhcp
- restart the network
service network restart
- run yum update
- install vim or an editor of your choice, vi comes included with minimal
- SELinux must be disabled:
vim /etc/sysconfig/selinux
- change "SELINUX=enforcing" to "SELINUX=disabled"
- restart the computer
shutdown -r now
- install a couple packages that will be required for building and installing samba
yum install glibc glibc-devel gcc python* libacl-devel krb5-server krb5-workstation krb5-libs pam_krb5 make gnutls-devel openssl-devel bind bind-libs bind-utils
- install git, git will be used to download samba
yum install git-core git clone http://gitweb.samba.org/samba.git ~/samba-master
- reboot server so all packages and updates are applied
shutdown -r now
- login and build the samba install
cd ~/samba-master ./configure --enable-debug --enable-selftest
- if it completes successfully
make make install