Problemas para subir servidor de imagens

1. Problemas para subir servidor de imagens

Diego
hakerdark

(usa Ubuntu)

Enviado em 29/11/2011 - 14:27h

Gente seguinte,
vou esplicar primeiro o que eu eustou tentando fazer a um bom tempo, é um servidor de imagens com o debian 6.0.3.
É o seguinte tenho uma máquina que é com 2 placas eth0 e a eth1
na eth0 é onde eu vou fazer o servidor rodar e na eth1 é onde será o da nossa rede interna estático, então ai vai:

===============================================================================================
Configuração das placas de rede

vi /etc/network/interfaces:


auto eth0
allow-hotplug eth0

iface eth0 inet static
address 172.23.71.15
netmask 255.255.255.0
broadcast 172.23.71.255
network 172.23.71.1


auto eth1
allow-hotplug eth1

iface eth1 inet static
address 172.23.70.15
netmask 255.255.255.0
broadcast 172.23.70.255
network 172.23.70.0
gateway 172.23.70.254
dns-search softplan.com.br
dns-nameservers 172.23.1.1 172.23.1.10


===============================================================================================
||SAMBA||
=======

Foi instalado o samba, para fazer o compartilhamento dos meus arquivos para baixar via dhcp
===============================================================================================
||SSH||
=====

Instalei o ssh para trabalhar da minha sala.

===============================================================================================
||DNS server||
============

vi /etc/bind/named.conf.local a conf do meu DNS está como abaixo:

//
// Do any local configuration here
//

zone img.img {
type master;
file "/etc/bind/db.img.img";
};

zone "71.23.172.in-addr.arpa" {
type master;
file "/etc/bind/db.71.23.172";
};

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

apliquei o código abaixo:

root@soft070-015:~# named-checkconf
root@soft070-015:~#
E não retornou nenhum erro.

Entrei no arquivo # vi /etc/bind/db.img.img e fiz as auterações como abaixo:

;
; BIND zone file for img.img
;

$TTL 3D
@ IN SOA ns.img.img. root.img.img (
2010111101 ; serial
8H ; refresh
2H ; retry
4W ; expire
1D ) ; minimum
;
NS ns ; Inet address of name server
MX 10 mail ; Primary mail exchanger

ns A 172.23.71.5
mail A 172.23.71.5

img.img. A 172.23.71.5
server A 172.23.71.5

virtual A 172.23.71.5

router A 172.23.71.15 ; router ADSL
gateway A 172.23.71.2
gw CNAME router

Após, salvar e sair.

Fiz a conf do DNS reverso # nano /etc/bind/db.71.23.172 como abaixo:

;
; BIND zone file for 172.23.71.xxx
;

$TTL 3D
@ IN SOA ns.img.img. root.img.img. (
2010111101 ; serial
8H ; refresh
2H ; retry
4W ; expire
1D ) ; minimum
;
NS ns.img.img. ; Nameserver address

5 PTR server.img.img.
5 PTR ns.img.img.
5 PTR mail.img.img.
15 PTR router.img.img.

sair e salvar.


Rodei o comando abaixo
#root@soft070-015:/# named-checkzone img.img /etc/bind/db.img.img
zone img.img/IN: loaded serial 2010111101
OK (e voltou com esse OK)


restartei o serviço
# /etc/init.d/bind9 restart


===============================================================================================
||DHCP server||
============

Fiz a instalação do DHCP e setei a placa de rede que eu queria que o dhcp trabalhace vi /etc/default/isc-dhcp-server :

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"

Fiz a auteração do arquivo do server DHCP vi /etc/dhcp/dhcpd.conf como abaixo:

# Parametros de configuracao do DHCP-server
Authoritative;

subnet 172.23.71.0 netmask 255.255.255.0 {
range 172.23.71.20 172.23.71.250;
option domain-name "img.img";
option domain-name-servers 172.23.71.5;
option broadcast-address 172.23.71.255;
option routers 172.23.71.15;
next-server 172.23.71.5;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxeLinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}


depois resetei.
/etc/init.d/isc-dhcp-server restart
===============================================================================================

Após reiniciar, foi feito o restart do micro e surgiram os seguintes problemas que eu não encontro como resolver:

1º Eu não concigo dolocar ninguem nessa rede separada para o domínio img.img (lembrando que os clientes são winXP e Win7;

2º Na inicialização do servidor da os seguintes erros:

starting nfs common utilities: statd Failed!


startpar: service(s) returned failure: nfs-common ... failed!

starting NFS common utilities: startdstarting Samba daemons: nmbd smbd failed!

startpar: service(s) returned failure: nfs-common ... failed!

Sendo assim PRV me socorram me ajudemmmm ja to mais de 2 semanas me batendo nisso :(


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts