RaspbmcCrystalbuntu

Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HOWTO] Setup HaneWin NFS Server for Windows 7
01-24-2013, 01:33 AM (This post was last modified: 01-24-2013 02:38 AM by aceofclubs.)
Post: #1
[HOWTO] Setup HaneWin NFS Server for Windows 7
To make it easier to find Ive copied my post from THIS THREAD post #25.

To Setup HaneWIN NFS Server on Windows 7.

I can only describe my experience and Im no expert with Win7 or HaneWIN NFS. I havent included any networking info like how my machines are setup but I can if someone wants it.

Ive found HaneWIN NFS very easy to install and setup. You simply download the software, install and configure it and allow it to go through the firewall.

It starts automatically when win7 starts up so there is no need to create a service for it. Here are my steps to a working system.

1. Install HaneWIN NFS Server. (Run as administrator)
Follow the prompts.

2: Edit the exports for the NFS Server.

A: Start->All Programs->HaneWIN Software->NFS->NFS Server
B: Click the Exports Tab.
C: Click the Edit Exports Button.
D: Edit the exports to your liking based on your system setup.

Quote:The following options (Taken from HaneWin Doco) are supported:
-name:<sharename> assigns a name to the exported path as an alternate name for mounting.
-alldirs allows the host(s) to mount at any point within the filesystem.
-umask:<mask> set the umask for group and world permissions on the filesystem, default 022
-readonly limits access to reading
-public Enables WebNFS access.
-lowercase maps all file names to lowercase, otherwise case is preserved.
-exec forces in access rights the x bit for all files.
-mapall:<uid>[:<gid>] all Unix user-ids and group-ids are mapped to the specified user-id and group-id.
-maproot:<uid>[:<gid>] the Unix super user root is mapped to the specified user-id, group-id. Without a mapping entry root will be mapped to user and group nobody.
-range IP adresses are interpreted in pairs as from-to ranges enabling client access from all addresses in a range (more flexible than the unix -net -mask options).

Here is and example.
If the media is located on D: drive.
I use -public as I am behind a firewall.

"d:\Media Library\Music Videos" -public -name:MyMusicVideos
"d:\Media Library\TV Shows" -public -name:MyTVShows
"d:\Media Library\Movies" -public -name:MyMovies
"d:\Media Library\Music" -public -name:MyMusic

E: Click the Save Button.
F: Click the Restart Server Button.

3: Modify Windows Firewall to allow for the NFS Server.

A: Select the Portmapper Tab in HaneWIN NFS Server and check which ports it is set for. Mine has 3 in use, 111, 1058 and 2048.
B: Start->Control Panel->Windows Firewall
C: Go into Advanced Settings.
D: Select Inbound Rules
E: Select New Rule
F: Select Port then click the Next Button
G: Select TCP and Specific Local Ports.
F: Type in your ports from A: seperated by a comma, eg: 111, 1058, 2049 then clickthe Next Button
G: Select Allow The Connection then click the Next Button
H: Nominate when the rule applies (For me all three are ok so I selected them all) then click the Next Button.
I: Type in a name for the new rle: eg: NFS TCP Inbound

Repeat steps 3E to 3I again but for UDP.....
>E: Select New Rule
>F: Select Port then click the Next Button
>G: Select UDP and Specific Local Ports.
>F: Type in your ports from A: seperated by a comma, eg: 111, 1058, 2049 then click the Next Button
>G: Select Allow The Connection then click the Next Button
>H: Nominate when the rule applies (For me all three are ok so I selected them all) then click the Next Button.
>I: Type in a name for the new rle: eg: NFS UDP Inbound

Now the same 2 rules should be setup for TCP and UDP Outbound making sure you select Allow the Connection when required.


All going to plan your HaneWIN NFS Server should now be up and serving your NFS clients.

In raspbmc I dont mount the NFS shares at an operating system level I simply use XBMC to browse for NFS shares, select which one I require and set XBMC up through that method.

NOTE: There are different exports if you are wanting to set up HaneWin NFS for an NFS install take a look at this thread.


ATV1 -->
HW: ATV1+970015
SW: CB2+XBMC 12.2 (custom)
Install: HDD

RPI -->
HW: RPi 512MB
SW: Raspbmc (Sep 2013)+XBMC 12.2 (custom)
Install: Samsung 4GB Class 10+8GB Verbatim V3 USB (18.5w/28r)
Power: 12-50V - 5V stepdown pcb
OC: Super

Network: Hanewin NFS via powerline
Find all posts by this user
Quote this message in a reply
01-24-2013, 01:43 AM
Post: #2
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
Nice contribution, thanks

How to SSH into your pi
Info Required For Support
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2013, 01:50 AM
Post: #3
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
Congratulations, You've made it into the How-To sticky, thank you for this.

Pi problems?? Start here http://forum.stmlabs.com/showthread.php?tid=3918
http://elinux.org/R-Pi_Troubleshooting
http://elinux.org/RPi_config.txt
Find all posts by this user
Quote this message in a reply
01-24-2013, 01:57 AM
Post: #4
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
Ive gained so much info from everyone here so Im glad I can give a little back.


ATV1 -->
HW: ATV1+970015
SW: CB2+XBMC 12.2 (custom)
Install: HDD

RPI -->
HW: RPi 512MB
SW: Raspbmc (Sep 2013)+XBMC 12.2 (custom)
Install: Samsung 4GB Class 10+8GB Verbatim V3 USB (18.5w/28r)
Power: 12-50V - 5V stepdown pcb
OC: Super

Network: Hanewin NFS via powerline
Find all posts by this user
Quote this message in a reply
01-24-2013, 02:14 AM
Post: #5
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
(01-24-2013 01:57 AM)aceofclubs Wrote:  Ive gained so much info from everyone here so Im glad I can give a little back.

Just a heads-up from my experience with HaneWIN - it needs to be run as Administrator. I presume you have modified Windows to not require this? Still worth pointing out for newcomers to the software.

Also, I believe the "-public" entry in the exports file makes your shares available to everyone (including outside your network if your firewall allows it), would probably be better with "-range X.X.X.X" with the IP address of your Pi replacing the X's.

Code:
Install: Sandisk 2Gb MicroSD + Transcend 16GB JetFlash 700 USB 3.0
PSU: 5v 3.8A from a Belkin F5U237 USB Hub to GPIO Pins
Network: Wired  -  Shares: NFS (haneWIN)  -  Codecs: Both  -  Overclocked: No
Pi: 512Mb Rev. 2.0  -  Raspbmc: RC5, Built: 20121231 -  XBMC: 12.0 Git:Unknown!
Find all posts by this user
Quote this message in a reply
01-24-2013, 02:39 AM
Post: #6
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
(01-24-2013 02:14 AM)salawinder Wrote:  Just a heads-up from my experience with HaneWIN - it needs to be run as Administrator. I presume you have modified Windows to not require this? Still worth pointing out for newcomers to the software.

Also, I believe the "-public" entry in the exports file makes your shares available to everyone (including outside your network if your firewall allows it), would probably be better with "-range X.X.X.X" with the IP address of your Pi replacing the X's.
Thanks. Ive updated the 1st post.


ATV1 -->
HW: ATV1+970015
SW: CB2+XBMC 12.2 (custom)
Install: HDD

RPI -->
HW: RPi 512MB
SW: Raspbmc (Sep 2013)+XBMC 12.2 (custom)
Install: Samsung 4GB Class 10+8GB Verbatim V3 USB (18.5w/28r)
Power: 12-50V - 5V stepdown pcb
OC: Super

Network: Hanewin NFS via powerline
Find all posts by this user
Quote this message in a reply
01-24-2013, 08:07 AM
Post: #7
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
Top guide mate. Literally after trying a lot of guides on Google and other sources, this is the only one that worked.

Re out conversation the other day, I wonder if its worth mentioning that a reboot might help after setting up? Or maybe it was just my scenario? Not sure, but when I couldn't locate the files, doing a sudo reboot made it all work perfectly.

512mb - Sandisk Ultra Class 10 SD - RaspBMC version: (Raspbmc-rls-1.0-hardfp-b20130208-u20130730) - XBMC version: (12.2 Git:20130502-32b1a5e) - CPU @ 900 / Core @ 335 / GPU @ 275 / RAM @ 450 (No overvolt) - Plugged PSU 5v 1500mah - Ethernet - Hanewin NFS - HDMI - No Peripherals
Find all posts by this user
Quote this message in a reply
02-22-2013, 02:59 AM
Post: #8
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
Is this right for the exports?

e:\Media -readonly -public -name:Media

All my folders (Movies, Music, etc) are under Media, so I presume I'll be able to tunnel down and select these sub-folders in XBMC?

I also want to setup the NFS server to allow booting from NFS.

I don't quite understand this thread http://forum.stmlabs.com/showthread.php?tid=5496 but do I just need to add the following two lines to my exports?

-maproot:0:0 -mapall:0:0

e:\NFS rw,async,no_root_squash,no_all_squash,no_subtree_check

8GB Sandisk Class 10 SD & USB3 stick, 12v/4A PSU into 5v/3A UBEC, 512MB Pi and Belkin F5U700 powered from UBEC, Emprex 3009URF remote
Find all posts by this user
Quote this message in a reply
02-22-2013, 03:38 AM
Post: #9
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
I don't think anyone has successfully booted from a HaneWin share, I may be mistaken.

Pi problems?? Start here http://forum.stmlabs.com/showthread.php?tid=3918
http://elinux.org/R-Pi_Troubleshooting
http://elinux.org/RPi_config.txt
Find all posts by this user
Quote this message in a reply
02-22-2013, 11:52 AM
Post: #10
RE: [HOWTO] Setup HaneWin NFS Server for Windows 7
(02-22-2013 02:59 AM)doveman Wrote:  Is this right for the exports?

e:\Media -readonly -public -name:Media

All my folders (Movies, Music, etc) are under Media, so I presume I'll be able to tunnel down and select these sub-folders in XBMC?

I also want to setup the NFS server to allow booting from NFS.

I don't quite understand this thread http://forum.stmlabs.com/showthread.php?tid=5496 but do I just need to add the following two lines to my exports?

-maproot:0:0 -mapall:0:0

e:\NFS rw,async,no_root_squash,no_all_squash,no_subtree_check

Your export info looks okay, as for NFSBoot, I have tried a few times to get it working, but have had no luck. In the end it appears that a fast USB stick is as fast (or slightly faster) than NFS for booting, and as I already have that I'll stick with it.

Also the only advantage as I understand it (over a fast USB stick) is ease of backup, but once you have a 'good' setup and have backed up, I don't see the importance of this - all that changes is the thumbnails & database when you add media (and I use a remote MySQL database, so it is just the thumbnails).

Code:
Install: Sandisk 2Gb MicroSD + Transcend 16GB JetFlash 700 USB 3.0
PSU: 5v 3.8A from a Belkin F5U237 USB Hub to GPIO Pins
Network: Wired  -  Shares: NFS (haneWIN)  -  Codecs: Both  -  Overclocked: No
Pi: 512Mb Rev. 2.0  -  Raspbmc: RC5, Built: 20121231 -  XBMC: 12.0 Git:Unknown!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Sponsored Advertisement