Rodolfo_Machado
(usa Debian)
Enviado em 28/12/2012 - 21:21h
Prezados participantes do "Viva o Linux", esta é minha primeira participação no site, espero que seja a primeira de muitas onde eu possa ajudar e ser ajudado sobre duvidas deste SO que tanto gostamos.
Tenho um notebook com Kubuntu e quero acessar meu diretório /home/rodolfo em meu computador de trabalho com Debian.
A rede consiste de um modem (192.168.1.1), um roteador wireless(10.0.1.1), porem o sinal de rede sem fio não chega até meu computador, então o roteador esta ligado via cabo até um switch , no switch estão ligados o notebook e meu computador.
No computador coloquei IP fixo(10.0.1.254):
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
#auto dsl-provider
#iface dsl-provider inet ppp
#pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
#provider dsl-provider
iface eth0 inet static
address 10.0.1.254
netmask 255.255.255.0
network 10.0.1.0
broadcast 10.0.1.255
gateway 10.0.1.1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
A eth1 esta sem uso, a eth0 é que liga o micro ao switch.
nfs-common, nfs-kernel-server,portmap estão instalados:
Abaixo, a configuração do NFS:
/etc/exports:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/rodolfo/ 10.0.1.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
#/home/rodolfo 10.0.1.*(rw,no_root_squash,sync)
#/compartilhado/ 192.168.0.0/24 (rw,no_root_squash,sync)
#/media/cdrom0 10.0.1.0/255.255.255.0(rw)
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
portmap: 10.0.1.0/255.255.255.0
lockd: 10.0.1.0/255.255.255.0
mountd: 10.0.1.0/255.255.255.0
quotad: 10.0.1.0/255.255.255.0
statd: 10.0.1.0/255.255.255.0
#portmap: 10.0.1.0/24
#lockd: 10.0.1.0/24
#mountd: 10.0.1.0/24
#quotad: 10.0.1.0/24
#statd: 10.0.1.0/24
/etc/hosts.deny:
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: some.host.name, .some.domain
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
portmap: ALL
lockd: ALL
mountd: ALL
quotad: ALL
O notebook ping normalmente no IP do computador(10.0.1.254)
Ambos navegam na internet sem problema, mas não consigo exportar meu diretório home para a rede, ao tentar monta-lo no notebook ocorre a seguinte menssagem:
sudo mount -t ext4 10.0.1.254:/home/rodolfo /mnt/servidor
mount: o dispositivo especial 10.0.1.254:/home/rodolfo não existe