Kodi Community Forum
[AppleTV2] NFS on Apple TV 2? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: [AppleTV2] NFS on Apple TV 2? (/showthread.php?tid=91776)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12


- darkscout - 2011-07-11

Mephiz, you should probably remove that chown, it's going to be confusing for people that aren't familiar with unix permissions.

Especially if it's a folder in their own directory (which should be chmod 700). As long as mapall is setup correctly (or the user is 501) NFS shouldn't matter.


- ben33400 - 2011-07-11

Speaking of mapall. There are a lot of examples of mapall. What is the best option for this parameter ?


- darkscout - 2011-07-11

ben33400 Wrote:Speaking of mapall. There are a lot of examples of mapall. What is the best option for this parameter ?

The most insecure option (should someone with a *nix break into your home network or you ever go out in public) is.

mapall=root

Although that's no more secure than mapall=[user].

The 'mostish' secure is not using mapall since the id of mobile on ATV is 501 the 1st user on OS X is 501. Although if you don't specify network anytime you go out in public anyone with a Mac laptop could get in.

If 'id' returns 501 then there is no reason to use mapall.


- ben33400 - 2011-07-11

darkscout Wrote:If 'id' returns 501 then there is no reason to use mapall.

My mac returns 501 for my account.

But my ATV returns: uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),20(staff),29(certusers),80(admin)

when log as root via ssh.

Does 501 will work ?


- darkscout - 2011-07-11

ben33400 Wrote:But my ATV returns: uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),20(staff),29(certusers),80(admin)

when log as root via ssh.

XBMC is running as mobile. Do a "su mobile -c id"


- ben33400 - 2011-07-11

darkscout Wrote:XBMC is running as mobile. Do a "su mobile -c id"

returns 501, thanks.


- Memphiz - 2011-07-11

darkscout Wrote:Mephiz, you should probably remove that chown, it's going to be confusing for people that aren't familiar with unix permissions.

Especially if it's a folder in their own directory (which should be chmod 700). As long as mapall is setup correctly (or the user is 501) NFS shouldn't matter.

done - thx


- Memphiz - 2011-07-11

jlor Wrote:I just had a read through that thread - seems very very similar!

I was actually only 8mb away from installing ubuntu on my NAS and going that way to gain NFS shares.. But I'll keep some FreeBSD/FreeNAS machines around in vmware to test with once the libnfs bumps are included in nightly.

I've installed a FreeNAS 0.7.2 Sabanda (revision 6694) into a virtual mashine and followed your nice wiki entry for freenas. Worked including directorys here (already with the solaris fixed libnfs version). So your problem should be fixed then after the version bump.

bye

Memphiz


- ben33400 - 2011-07-11

So I followed all your advice.

here is my share:
Code:
/Users/Benjamin/Movies/iWatchTV -alldirs -ro -mappall=501

here is my access in XBMC:
Code:
<video>
<source>
   <name>Test NFS</name>
   <path pathversion="1">nfs://192.168.0.3/Users/Benjamin/Movies/iWatchTV</path>
</source>
</video>

I can access to the server, and XBMC (10.0.0-9 official) did not crash.

But the folder is empty. it normally has TV shows subfolder.
What is my next move ?
Thanks a lot.

XBMC debug log: http://pastebin.com/CXMqpd8w

ADD: if a put a video inside the root folder I can see and play it. But I can not see folders.


- darkscout - 2011-07-11

I wonder if this has anything to do with the real 'files' section being gone and being replaced with a faux 'files view'.

Quote:select strFilename,playCount from files where idPath=55

It looks like it's running an sql query to get what is in that path. Have you tried scanning the directory as a TV show and seeing what it does?


- ben33400 - 2011-07-11

So ... in the video section I can not see any subfolders.

But in Files as:
Code:
<files>
        <default pathversion="1"></default>
        <source>
            <name>Test NFS 2</name>
            <path pathversion="1">nfs://192.168.0.3/Users/Benjamin/Movies/iWatchTV</path>
        </source>
</files>

I can see everything in Parameters > Files in XBMC.

here is my log: http://pastebin.com/bmiL4zFT


- darkscout - 2011-07-11

Yep. It has to do with the removal of the 'files view'. I'm not sure if there is a way around it other than to scan it as TV shows (because the debug log shows that it obviously finds them) and use library mode.


- jlor - 2011-07-11

Memphiz Wrote:I've installed a FreeNAS 0.7.2 Sabanda (revision 6694) into a virtual mashine and followed your nice wiki entry for freenas. Worked including directorys here (already with the solaris fixed libnfs version). So your problem should be fixed then after the version bump.

bye

Memphiz

That is amazing news! Extend my thanks to the libnfs developer Smile
I guess I'll re-re-reinstall FreeNAS when next libnfs version is included in the iOS code. And I just got ZFS running on ubuntu Tongue


- ben33400 - 2011-07-11

darkscout Wrote:Yep. It has to do with the removal of the 'files view'. I'm not sure if there is a way around it other than to scan it as TV shows (because the debug log shows that it obviously finds them) and use library mode.

If in the folder there are films or TV shows it could work.
But if there are personal videos, and file view is the only way the browse them, there is currently no solution ?

dumb question: videos > files is not a file view ?

And I can see folders with smb, why not nfs ?


- darkscout - 2011-07-11

8.0 is out, why are people still on 0.7.2?

Plus 8.0 has ZFS.