• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 12
[AppleTV2] NFS on Apple TV 2?
#91
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.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#92
Speaking of mapall. There are a lot of examples of mapall. What is the best option for this parameter ?
Reply
#93
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.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#94
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 ?
Reply
#95
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"
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#96
darkscout Wrote:XBMC is running as mobile. Do a "su mobile -c id"

returns 501, thanks.
Reply
#97
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
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#98
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
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#99
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.
Reply
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?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
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
Reply
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.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
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
Reply
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 ?
Reply
8.0 is out, why are people still on 0.7.2?

Plus 8.0 has ZFS.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 12

Logout Mark Read Team Forum Stats Members Help
[AppleTV2] NFS on Apple TV 2?0