Friday, November 7, 2008

Walking In On Mastervashion

Sharing files with NFS


I had the need or the desire to connect my laptop and my desktop (both with linux) on the network. I saw that ubuntu from 8:04 onwards as the network connection from the default Samba in the "graphics" system that comes out ie clicking the "Sharing Options" in the properties of a folder. I wondered as to why the seven is gone the opportunity to choose NFS, with whom I made my first experience and I felt more "linux".

this procedure to create the share on the server




sudo apt-get install portmap nfs-kernel-server
sudo gedit / etc / and xpor ts


and insert an entry for each shared folder
/ cartella_server / ip_client (rw, sync)


sudo gedit / etc / hosts.allow

enter the address of the authorized clients
portmap mountd nfsd statd
rquotad lockd: ip_client

sudo gedit / etc / hosts.deny
enter portmap mountd nfsd statd
lockd rquotad : ALL



we have to restart the daemons

sudo / etc / init.d / portmap restart
sudo / etc / init.d / nfs-kernel-server restart




Now the client set

sudo apt-get install portmap nfs-common


up / etc / hosts.allows set segente line

portmap: indirizzo_ip_server



create the folder in which to mount the share, then mount

sudo mount-t nfs server_ip: / cartella_server / cartella_client


to mount automatically on / etc / fstab
server_ip: / cartella_server / cartella_client nfs rw, hard, intr 0 0



Next another

Greetings

Kappa

0 comments:

Post a Comment