marcelloalvess
(usa Debian)
Enviado em 18/01/2014 - 21:53h
Amigo, siga esses passos, comigo funcionou sem problemas.
INSTALAÇÃO SAMBA 4
ATUALIZAR REPOSITÓRIO
aptitude update && aptitude dist-upgrade -y
AJUSTAR VARIÁVEIS DE AMBIENTE
export DEBIAN_PRIORITY=critical
export DEBIAN_FRONTEND=noninteractive
INSTALAR DEPENDÊNCIAS
aptitude install libldap-dev libpam-dev git gcc make wget libacl1-dev libblkid-dev gnutls-dev libreadline-dev python-dev libcups2-dev \
libcupscgi1-dev libcupsdriver1-dev libcupsimage2-dev libcupsmime1-dev libcupsppdc1-dev libcupsys2-dev libaio-dev libkrb5-dev acl-dev \
acl krb5-user libattr1-dev libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dnspython gdb pkg-config \
libpopt-dev libldap2-dev dnsutils libbsd-dev attr docbook-xsl libcups2-dev python-gnupginterface python-pycurl python-software-properties \
quota unattended-upgrades -y
RETORNAR VARIÁVEIS DE AMBIENTE
unset DEBIAN_PRIORITY
unset DEBIAN_FRONTEND
ACESSAR PASTA PARA DOWNLOAD
cd /usr/src
DOWNLOAD DO SAMBA 4
wget -c
http://ftp.samba.org/pub/samba/stable/samba-4.1.4.tar.gz
DESCOMPACTAR SAMBA 4
tar -xzvf samba-4.1.4.tar.gz
ACESSAR DIRETORIO DO SAMBA DESCOMPACTADO
cd samba-4.1.4
CONFIGURAR SAMBA 4
./configure --enable-debug --enable-selftest
COMPILAR SAMBA 4
make
INSTALAR SAMBA 4
make install
LEVANTAR DOMINIO
/usr/local/samba/bin/samba-tool domain provision
REALM: empresa.com.br
CONFIGURAR ARQUIVO RESOLV
nano /etc/resolv.conf
APAGUE O QUE TIVER E COLOQUE AS INFORMAÇÕES ABAIXO DE ACORDO COM AS INFORMAÇÕES DO SEU SERVIDOR
search nomedoservidor.empresa.com.br
nameserver coloque aqui o IP do servidor
SALVAR E SAIR
INICIAR SAMBA 4
/usr/local/samba/sbin/samba
TESTAR SAMBA 4
ps -aux | grep samba