Following applies to linux NFS servers and clients.
We are installing nfs-kernel-server, nfs-common, portmap if not allready installed.
Next we are editing /etc/exports file on our server, as should be an access control list for filesystems which may be exported to NFS clients, e.g:
/DATA/music xxx.xxx.xxx.xxx(rw,no_root_squash,async,no_subtree_check)
;#; for read-write access, where xxx.xxx.xxx.xxx is our server's ip address,
or
/DATA/music xxx.xxx.xxx.xxx(ro,async,no_subtree_check)
;#; for read-only
We can export dirs for movies as well pictures the same way.
Also we can use other drives in net after mounting them in our server's described mount point.
We can use similar dir names, as, our multimedia player or our linux stb, uses.
Then we execute following commands as su
sudo exportfs -a
;#; for exporting fs to NFS clients
sudo /etc/nfs-kernel-server restart
;#; for starting NFS server service in our server.
That's all for server part, it works fine for me, using ubuntu server and busybox client (AZBox Premium ;-)
Next, assuming our client is ready to be nfs client, we are just mounting above mentioned server mounts, to similar empty ones in client, we have just created or allready existent.
Assuming we have installed an internal sata hdd in our client and we have lets say dir /DATA/hdb1/music on it, we are proceeding to final step after login in to client e.g:
telnet xxx.xxx.xxx.xxx ;#;ip-address.of.our.client
uid: ......
passwd: ........
mount xxx.xxx.xxx.xxx:/DATA/music /DATA/hdb1/music
;#; where xxx.xxx.xxx.xxx is our server's ip address
(In case we haven't internal hdd in client, we use exact the same mount point "/DATA/music", which by the way is default in azbox firmware.)
For security reasons, we can fix also hosts.allow & hosts.deny files in /etc :thum:
if everything's fine after a bit we can see our server's share.
that's all
Hope was helpfull
daemonas
PS:
huge thanks to thousands of web users who are always helping each other on learning almost everything...,
as well to "gorski" whose azbox alternative's guides, are always piece of art ;-)
We are installing nfs-kernel-server, nfs-common, portmap if not allready installed.
Next we are editing /etc/exports file on our server, as should be an access control list for filesystems which may be exported to NFS clients, e.g:
/DATA/music xxx.xxx.xxx.xxx(rw,no_root_squash,async,no_subtree_check)
;#; for read-write access, where xxx.xxx.xxx.xxx is our server's ip address,
or
/DATA/music xxx.xxx.xxx.xxx(ro,async,no_subtree_check)
;#; for read-only
We can export dirs for movies as well pictures the same way.
Also we can use other drives in net after mounting them in our server's described mount point.
We can use similar dir names, as, our multimedia player or our linux stb, uses.
Then we execute following commands as su
sudo exportfs -a
;#; for exporting fs to NFS clients
sudo /etc/nfs-kernel-server restart
;#; for starting NFS server service in our server.
That's all for server part, it works fine for me, using ubuntu server and busybox client (AZBox Premium ;-)
Next, assuming our client is ready to be nfs client, we are just mounting above mentioned server mounts, to similar empty ones in client, we have just created or allready existent.
Assuming we have installed an internal sata hdd in our client and we have lets say dir /DATA/hdb1/music on it, we are proceeding to final step after login in to client e.g:
telnet xxx.xxx.xxx.xxx ;#;ip-address.of.our.client
uid: ......
passwd: ........
mount xxx.xxx.xxx.xxx:/DATA/music /DATA/hdb1/music
;#; where xxx.xxx.xxx.xxx is our server's ip address
(In case we haven't internal hdd in client, we use exact the same mount point "/DATA/music", which by the way is default in azbox firmware.)
For security reasons, we can fix also hosts.allow & hosts.deny files in /etc :thum:
if everything's fine after a bit we can see our server's share.
that's all
Hope was helpfull
daemonas
PS:
huge thanks to thousands of web users who are always helping each other on learning almost everything...,
as well to "gorski" whose azbox alternative's guides, are always piece of art ;-)
Last edited: