2019-12-06, 16:21
Platform: MacOS Mojave 10.14.6 (Catalina is problematic because 32 bit apps are not supported. Stick with Mojave or before if you don't find a solution with Catalina)
KODI Version: 18.5 Leila
Android Boxes: H96 pro+ and Xiaomi Mi S 4K (Valid for all Android Tv Boxes where KODI can be installed)
Consoles: Xbox One(Would work for One S and One X too. PS4 doesn't let KODI)
Purpose: Stream movies, tv shows, mp3 etc. from Mac to Android Boxes (tons of movies and tv shows can't be stored in streaming medias)
Protocols: SMB and NFS (The two protocols which are used the most)
Devices and protocols mentioned here are the ones i dealt with. It's my own experience and solution.
SMB Protocol:
-It's better to give static IP to your MAC computer. It might eliminate further problems. You can do that in System Preferences>Network
-If, somehow, you've been trying to configure through native MAC file sharing, undo all the changes. You can do that from System Preferences>Sharing. Make sure nothing is clicked.
-Download SMBUP from here. Install it and "Add new shared drives". Make sure to save changes. If you want to delete a share, just select and hit "delete" on your keyboard. There is no right click option here. Make sure SMBUP is opened at login so that you don't have to open it every time you start your OS. Go to your Android Box and add your shares. Choose SMB protocol. However, Xbox One and some other devices don't support SMB protocol. You need to use NFS. That is the next subject.
NFS Protocol:
This doesn't look easy to configure. Most people are stuck with NFS protocol. The most common problem(that i was stuck with for a while) is shares are visible in Android Boxes but can't be browsed. No matter how many times you click on shares, nothing happens. NFS protocol is natively supported in MacOS and there are just a few tricks you need to do. If you haven't corrupted your OS:
* Open Terminal
* Write "sudo nfsd start" without quotes
* Write your password
* If the output is "nfsd is already running" you can go on:
-Download NFS Manager here . GUI interface and it will make it so easy to configure. It's a fully working shareware. If you don't want to donate, it will just open a popup every time you apply a change. The purpose of using NFS Manager is to create shares which is known as exports in NFS protocol.
-Navigate to Share Definitions. Hit "+" and select the folder. Hit Show advanced options and select Allow mounting the folder or any subfolders inside. Close and apply.
-Make sure hidden files are visible and navigate to /private/etc/exports. You will see your shared folders there. Mine is as follow:
-Finally, Finder>Go>Go to Folder and copy /System/Library/LaunchDaemons and paste it. Navigate to com.apple.nfsd.plist. Right click on it and choose Textedit to edit the file. Mine looks like this:
I highlighted what you need to add. Make sure you add this line <string>-N</string> there. I recommend you to copy that plist to your desktop, edit it and copy back there and Authenticate.
Restart your OS and Android Tv Box. From this point on, you can browse your NFS Shares easily. You can select your shares from "Zeroconf Browser" too.Try and report if you have a problem or solved it. Hope this works for you.
KODI Version: 18.5 Leila
Android Boxes: H96 pro+ and Xiaomi Mi S 4K (Valid for all Android Tv Boxes where KODI can be installed)
Consoles: Xbox One(Would work for One S and One X too. PS4 doesn't let KODI)
Purpose: Stream movies, tv shows, mp3 etc. from Mac to Android Boxes (tons of movies and tv shows can't be stored in streaming medias)
Protocols: SMB and NFS (The two protocols which are used the most)
Devices and protocols mentioned here are the ones i dealt with. It's my own experience and solution.
SMB Protocol:
-It's better to give static IP to your MAC computer. It might eliminate further problems. You can do that in System Preferences>Network
-If, somehow, you've been trying to configure through native MAC file sharing, undo all the changes. You can do that from System Preferences>Sharing. Make sure nothing is clicked.
-Download SMBUP from here. Install it and "Add new shared drives". Make sure to save changes. If you want to delete a share, just select and hit "delete" on your keyboard. There is no right click option here. Make sure SMBUP is opened at login so that you don't have to open it every time you start your OS. Go to your Android Box and add your shares. Choose SMB protocol. However, Xbox One and some other devices don't support SMB protocol. You need to use NFS. That is the next subject.
NFS Protocol:
This doesn't look easy to configure. Most people are stuck with NFS protocol. The most common problem(that i was stuck with for a while) is shares are visible in Android Boxes but can't be browsed. No matter how many times you click on shares, nothing happens. NFS protocol is natively supported in MacOS and there are just a few tricks you need to do. If you haven't corrupted your OS:
* Open Terminal
* Write "sudo nfsd start" without quotes
* Write your password
* If the output is "nfsd is already running" you can go on:
-Download NFS Manager here . GUI interface and it will make it so easy to configure. It's a fully working shareware. If you don't want to donate, it will just open a popup every time you apply a change. The purpose of using NFS Manager is to create shares which is known as exports in NFS protocol.
-Navigate to Share Definitions. Hit "+" and select the folder. Hit Show advanced options and select Allow mounting the folder or any subfolders inside. Close and apply.
-Make sure hidden files are visible and navigate to /private/etc/exports. You will see your shared folders there. Mine is as follow:
Quote:/Volumes/2TB_Backup/Media -alldirs -ro-Finder>Go>Go to Folder and write /sbin and enter. Find nfsd and open System Preferences>Security&Privacy>Privacy>Full Disk Access and click the lock to make changes. Drag and drop nfsd there and click it.
/Volumes/2TB_Backup/TORRENT -alldirs -ro
-Finally, Finder>Go>Go to Folder and copy /System/Library/LaunchDaemons and paste it. Navigate to com.apple.nfsd.plist. Right click on it and choose Textedit to edit the file. Mine looks like this:
xml:<?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>
I highlighted what you need to add. Make sure you add this line <string>-N</string> there. I recommend you to copy that plist to your desktop, edit it and copy back there and Authenticate.
Restart your OS and Android Tv Box. From this point on, you can browse your NFS Shares easily. You can select your shares from "Zeroconf Browser" too.Try and report if you have a problem or solved it. Hope this works for you.