[Tutorial] Enable NFS from Unicorn (Lacie firmware)

Post Reply
minosh
Posts: 19
Joined: Sat Feb 05, 2011 8:46 pm

[Tutorial] Enable NFS from Unicorn (Lacie firmware)

Post by minosh » Thu Apr 16, 2015 12:22 pm

This Tutorial covers how to enable Lacie firmware NFS via unicorn and share "OpenShare" folder.
* Requires root
* Do at your own risk (as usual)

1- Check current NFS configs

Code: Select all

unicli -l --module=unicorn.sharing.nfs
2- Allow public share "OpenShare" only

Code: Select all

unicli -e --module=unicorn.sharing.nfs public_shares_only:True
3- Enable NFS at unicorn level

Code: Select all

unicli -e --module=unicorn.sharing.nfs enabled:True
4- Confirm changes are set

Code: Select all

unicli -l --module=unicorn.sharing.nfs
5- Start NFS service

Code: Select all

ngc --start nfs
At this point NFS shall be working as expected.

6- Add NFS service to start at boot time

Code: Select all

echo -e "nfs" >> /etc/initng/runlevel/default.runlevel
To access NFS shares from another linux box, you can mount as following:
mkdir NS2_OpenShare
mount -t nfs networkspace2.local:/shares/OpenShare NS2_OpenShare
In mount command replace "networkspace2.local" with your own NS2 IP or name which is resolvable from the other box.

NB.
- If you do not perform step 2, all users files will be available publicly with no authentication.
- If you want to customize any other settings, you have to disable and enable again NFS, to force unicorn to rebuild /etc/exports (step 3)
- If you rebuild unicorn DB, you will have to run steps (2, 3 & 5) again.

Post Reply