[AppleTV2] NFS on Apple TV 2?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jlor Offline
Junior Member
Posts: 49
Joined: Jul 2011
Reputation: 0
Location: Aarhus, Denmark
Post: #131
ben33400 Wrote:To be sure ... It is currently normal that:
- I can see folders with SMB ?
- I can't see folders with NFS ?

I understood "yes" and just want to confirm.

Thanks.

No, that's not normal.

Long answer: Some NFS setups have the side-effect of not being able to see folders - however a fix is in the pipeline. No ETA yet.
The problem of not being able to see folders are mostly present if the NFS server is *BSD or Solaris based. Although it can present itself on other platforms..
find quote
ben33400 Offline
Member
Posts: 75
Joined: May 2011
Reputation: 0
Location: Bordeaux, France
Post: #132
jlor Wrote:The problem of not being able to see folders are mostly present if the NFS server is *BSD or Solaris based.

My server is Mac OS X SL ... so BSD Based.
So I have to wait for another release of XBMC.
Thanks.
find quote
darkscout Offline
Posting Freak
Posts: 2,148
Joined: Jul 2008
Reputation: 12
Post: #133
You can't browse folders, but I believe it still scrapes fine.

[Image: aeKO.jpeg]
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
find quote
ben33400 Offline
Member
Posts: 75
Joined: May 2011
Reputation: 0
Location: Bordeaux, France
Post: #134
maybe, but it is not a satisfying option to SMB yet.
when scraping does not work, it is useful to have a easy folder browser !

I hope it will be corrected soon, because of the soon release of Lion, and its poor poor smb implementation (from what I have read).
find quote
jlor Offline
Junior Member
Posts: 49
Joined: Jul 2011
Reputation: 0
Location: Aarhus, Denmark
Post: #135
I don't believe scraping will work because the NFS client can't read the files in sub-directories, so how should it scrape them? Smile

Anyway, I suppose you could grab the newest version of the nfslib from their git, compile it yourself and drop it in.. That might work, but I honestly wouldn't know where to start.. I have never done any real compiling on a Mac OSX platform.
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,691
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #136
jlor Wrote:I don't believe scraping will work because the NFS client can't read the files in sub-directories, so how should it scrape them? Smile

Anyway, I suppose you could grab the newest version of the nfslib from their git, compile it yourself and drop it in.. That might work, but I honestly wouldn't know where to start.. I have never done any real compiling on a Mac OSX platform.

nope this will not work ... api has changed ... xbmc would crash after that Wink ... but i'll get it in these days i think ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
banzai75x Offline
Junior Member
Posts: 34
Joined: Jul 2011
Reputation: 0
Post: #137
Does anyone know what this error means? I have a similar config to Anth0. Using Synology as my server.

DEBUG: Loading: /var/stash/Applications/XBMC.frappliance/Frameworks/libnfs.1.0.0.dylib
23:09:13 T:135438336 M:122290176 ERROR: NFS: Failed to mount nfs share: Socket failed with POLLHUP
23:09:13 T:125640704 M:122290176 ERROR: GetDirectory - Error getting nfs://192.168.1.131/volume1/video/
23:09:13 T:125640704 M:122290176

Exports:
/volume1/video *(rw,all_squash,insecure)

Sources:
<source>
<name>Test</name>
<path pathversion="1">nfs://192.168.1.131/volume1/video/</path>
</source>

Using latest nightly build for ATV2 dated 7/18
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,691
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #138
please retry with the nightly from yesterday ... if still no luck tell me something about the used network and server os...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
sacrefrancais Offline
Junior Member
Posts: 11
Joined: Jul 2011
Reputation: 0
Post: #139
1 - Download XBMC nightly (necessary).

2 - If using ATV2, the file "/System/Library/LaunchDaemons/com.apple.nfsd.plist" on your mac has to be edited to allow non-root users to connect to the NFS server. Add the following "-N" option to the startup parameters and save so file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/etc/exports</key>
<true/>
</dict>
</dict>
<key>Label</key>
<string>com.apple.nfsd</string>
<key>ProgramArguments</key>

<array>
<string>/sbin/nfsd</string>
<string>-N</string>
</array>

</dict>
</plist>

3 - Download NFS Manager. Under Share Definitions, click "Select" button to locate media folder, uncheck "Share 'read only'" and check "Allow clients to also mount objects in shared directory."

4 - Under Shared Objects, choose "Select remote server," then select NFS server from the popup window. The Export Specification should be the location of media files on your mac.

5 - Browse for video sources and choose zeroconf browser. Finish setup of shared location. Exit XBMC and reboot both ATV and Mac.

(If using ATV1 with receiver for audio output, and audio is nuked, turn off Digital Audio Out under IOS settings. DTS and 5.1 will still work in XBMC.)

FWIW, NFS seems superior to running SMB share from mac, which was itself superior to running SMB share from Airport Extreme with attached USB HDD.

Thanks for incorporating an NFS client into nightly, Memphiz! No more having to wait for inferior SMB compatibility in Lion.
(This post was last modified: 2011-08-13 23:11 by sacrefrancais.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,691
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #140
Sadly this nice howto won't work with the atv2 because one very important config step is missing. If you please would be so kind to copy the adaption to the plist file from the snow leo wiki entry (2nd link in my sig) into your howto then i would maybe consider to put this to the wiki aswell...

thx Smile

memphiz

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Post Reply