LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   After installing Samba Active Directory Domain Controller, centos took 1 hour to boot (https://www.linuxquestions.org/questions/linux-server-73/after-installing-samba-active-directory-domain-controller-centos-took-1-hour-to-boot-4175539232/)

yerunkar11 04-09-2015 11:48 AM

After installing Samba Active Directory Domain Controller, centos took 1 hour to boot
 
hi

I have installed the Active Directory Domain Controller(Samba) and referred this link http://www.alexwyn.com/computer-tips...ain-controller

DONE THIS STEPS

1. Login as root and update your server
# yum update

2. Install the following packages required for installing and building Samba 4:
# yum install glibc glibc-devel gcc python* libacl-devel krb5-workstation krb5-libs pam_krb5

3. Query your rpm database to find any instances of older samba packages:
# rpm -qa | grep samba

4. If there are any older samba packages remove them with YUM:
# yum remove samba-winbind-client samba-common samba-client

5. Install git to dowload the latest Samba 4 version:
# yum install git-core

6. Use a directory of your choice and download the latest version of samba from git:
# git clone git://git.samba.org/samba.git samba-master

7. Reboot the server as a precaution so that all packages or kernel updates will be applied:
# shutdown -r now

8. Login again as root and then build samba:
# cd samba-master
# ./configure --enable-debug --enable-selftest
# make

9. If everything reports okay you can then install samba:
# make install
You should now have samba installed to '/usr/local/samba'.



Provision Samba 4


The provision step sets up a basic user database, and is used when you are setting up your Samba4 server in its own domain.
As root issue this command:
# /usr/local/samba/bin/samba-tool domain provision


The 'domain provision' tool should pick defaults for you automatically. Change to your configurations if necessary:
Realm [MYDOMAIN.COM]: Domain [MYDOMAIN]: (press Enter)
Server Role (dc, member, standalone) [dc]: (press Enter)
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: (press Enter)
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.0.1]: 208.67.222.222
Administrator password: <your_secret_admin_password>
Retype password:
If above was successful, stdout should look similar to this:
Creating CN=MicrosoftDNS,CN=System,DC=mydomain,DC=com
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/samba/private/krb5.conf
Once the above files are installed, your Samba4 server will be ready to use
Server Role: active directory domain controller
Hostname: samba
NetBIOS Domain: MYDOMAIN
DNS Domain: mydomain.com
DOMAIN SID: S-1-5-xx-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxxx
NOTE: You may need to remove the '/usr/local/samba/etc/smb.conf' file if you are re-running the provision command. If you encounter any errors when running the provision command, you may need to install the necessary missing packages or fix errors and then run './configure', 'make' and 'make install' commands again as stated above. Remember to do a 'make clean' in the root of your 'samba-master' directory before running 'make' again.
If the provision setup was successful reboot the server:


# shutdown -r now




And then i restarted the system, now it is not up and its been an hour.. need help and i dont know where it went wrong?

and ya I have i7 processor and 16gig ram and 1 tb hdd and its brand new. i dont think this is an hardware issue ..

yerunkar11 04-10-2015 05:47 AM

Is there no one who can help me ??


All times are GMT -5. The time now is 01:32 AM.