Difference between revisions of "Sharing from Debian"

From WikiDLXTV
Jump to: navigation, search
Line 49: Line 49:
  
 
<code>   
 
<code>   
mount | grep notebook
+
  mount | grep notebook
192.168.2.4:/home/asdf on /tmp/notebook type nfs (rw,vers=3,rsize=32768,wsize=32768,hard,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.168.2.4)
+
  192.168.2.4:/home/asdf on /tmp/notebook type nfs (rw,vers=3,rsize=32768,wsize=32768,hard,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.168.2.4)
 
</code>
 
</code>
  
Line 56: Line 56:
 
If it is ok, go there:
 
If it is ok, go there:
  
 +
<code>
 
   cd /tmp/notebook
 
   cd /tmp/notebook
 +
</code>

Revision as of 06:24, 11 January 2011

Server NFS (IP:192.168.2.4) : Notebook with Debian ( Ubuntu 10.10 tested)

Client NFS (IP:192.168.2.3) : WDTV


Server NFS Side

Install nfsd deamon

 sudo apt-get install nfs-kernel-server nfs-common portmap

Insert path to export in /etc/exports file config

 sudo vi /etc/exports

Insert the following line changing your own path to export:

 /home/asdf  192.168.2.4/24(rw,no_root_squash,async)

Export the path

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


Client NFS Side ( WDTV )

Create a temporary directory

 mkdir /tmp/notebook

Mount it

 mount 192.168.2.4:/home/asdf /tmp/notebook


Verify if it is mounted

 mount | grep notebook
 192.168.2.4:/home/asdf on /tmp/notebook type nfs (rw,vers=3,rsize=32768,wsize=32768,hard,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.168.2.4)


If it is ok, go there:

 cd /tmp/notebook