Sharing from Debian
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
Allow Clients
sudo nano /etc/hosts.allow
And put this
nfsd: 192.168.2.3/255.255.255.0
rpcbind: 192.168.2.3/255.255.255.0
mountd: 192.168.2.3/255.255.255.0
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
Automatic Client NFS Side ( WDTV )
Enter to the Web Frontend
Go to your browser(firefox, chrome or opera) and type the IP of your wdtv for this example: 192.168.2.3
if you have the defaults values:
Login:wdlxtv
Password:wdlxtv
Then go to WDLXTV Config>Main and go to File Sharing: Network mounts
You can choose between :
- Create a new net.mounts and stored in the USB(maybe you have one in there already)
- In Net_Mounts_/conf put your configuration
Well in both cases you have this kind of configuration:xmount "IP:Shared_Folder" DisplayName nfs
IP: ip of the server.
Shared_Folder: the shared folder in the server.
DisplayName: this name appears in the wdtv.
In this example: xmount "192.168.2.4:/home/asdf" MyNotebookFolder nfs
Press save in the bottom of the screen
Note
- keep an eye on the shared folder permission that maybe create troubles
- for testing you can enter through SSH and do the command
xmount "192.168.2.4:/home/asdf" MyNotebookFolder nfs
to be sure it work and is problem from the Web Frontend