Posts: 283
Joined: Sep 2008
Reputation:
2
just use NFS Manager, it's easy
--
Posts: 5
Joined: Apr 2011
Reputation:
0
I am setting up NFS between my ATV2 and my NAS. Looking at the /etc/exports file on my NAS. I see the following configuration for the /home export:
# more exports
"/homes" *(insecure,insecure_locks,rw,sync)
# exportfs –v
/c/home <world>(rw,wdelay,insecure,root_squash,no_subtree_check,insecure_locks)
My question is how do I share my NAS with my ATV2 but not share my NAS with the world (“*”)?
Do I replace the “*” with the IP address of my ATV2 which is now 196.168.8.103 or maybe use 196.168.8.1* because this IP is constantly changing. Or is there a better approach using the UID and GID of my ATV2 which I believe is uid=501 and gid =501. And then what would this NFS command line look like in the /etc/exports file?
Thanks for all your help.
Posts: 5
Joined: Apr 2011
Reputation:
0
Edit:
Would the easiest solution be to assign a static IP to the ATV2, something like 192.168.1.201 and then use this IP address in place of the “*” above on the NAS side?
If I should go this route do I assign a static IP on the ATV2 by going to Settings => General => Network or do I ssh into the ATV2 and set something is a file?
Thanks
Posts: 5
Joined: Apr 2011
Reputation:
0
If I understand how everything works. I would solve my problem this ways.
On the ATV2 go to Settings->General->Network and change the IP to 192.168.1.201 (Are there any other settings for like sub-address etc.)
Then change my NAS /home export file to match so it would look like this:
# more exports
"/homes" 196.168.1.201(insecure,insecure_locks,rw,sync)
… and that should do it.
How would I use 192.168.1.0/24 for the whole subnet and what would be the benefit? Would this change be on the ATV2 side and is this a better approach?
Posts: 2,145
Joined: Jul 2008
Reputation:
12
How paranoid are you of people breaking into your home network with a Unix machine, setting their UID/GID to 501 and deleting your files?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Posts: 4
Joined: Nov 2011
Reputation:
0
I have the same problem as a couple of users posted in a few posts above.
I run ATV2 and have a QNAP NAS to serve content. I followed the wiki (big thanks!! btw) on the QNAP section.
My XBMC on ATV2 is just the stable build installed 2 days ago (not nightly... I am not adventurous nor do I know how to update to nightly). I am looking to the NFS route in hope to solve my HD stutter / buffering problem over SMB.
I am finally able to add the source without error via the XBMC gui. I can see all the directories under the mount point. When I try to nav into the directories, by highlighting one and press OK, it just jumps to the next directory and keeps going around the list. It will not enter any directory.
I re read this whole thread and the wiki, a couple of things...
1) I used the setting in the wiki, but I was not able to connect at all -- GUI gives connection error, so I changed no_root_squash -> all_squash. This allows me to get to where I am today, see the directory listing under the mount point.
which leads to:
2) QNAP does not have user 'nobody'. So the all_squash option which cause the access to default to 'nobody' won't work but I am able to connect and see a list of directories.
3) the default /etc/exports has no_root_squash. What UID does that translate to?
4) It just so happens, the first user I created on the NAS is for my self which has almost admin like privs (almost everything rw including the content I would like to mount on xbmc) is UID 501, matching the mobile user UID.
Does this mean I can take out all_squash completely?
Sorry, this whole streamer thing is new to me.
thanks
Posts: 31,445
Joined: Jan 2011
slowpoke, there is no "stable build". The repo version you downloaded is pretty much the same thing as a realllllly old nightly build. Update to the latest nightly builds if you want help.