Automated NFS-Server for Automount Shares

loads of stuff that are pretty specific on pip that doesnt mean they have no place there

ok cool

1 Like

Exporting /media is just fine. I’ll need to work out how we would expose some of the settings you added to the script.

1 Like

Hi Sam,

Been looking at exposing the some of the settings as dialog with in kodi, the best way appears to be the xbmcgui module. To use this module with kodi 18, I would need to rewrite the script in python2; which is an option but it may just be better to wait for kodi 19 before adding to the app store.

I’m going to have go getting this to work with a nightly build. I’ll let you know how I get on.

Thanks Tom.

1 Like

Focus on Python3 since Python 2 is basically going the way of the dodo bird

1 Like

Hi,

I’ve now created a script that works within kodi, for both kodi 18 & 19; I’ve also created created an uninstall script. Again I would appreciate it if a few of you could test this please.

Install: osmc-nfs-server-python3/Kodi-nfs-server-setup.py at master · tomdoyle87/osmc-nfs-server-python3 · GitHub

Uninstall: osmc-nfs-server-python3/Kodi-uninstall-nfs-server.py at master · tomdoyle87/osmc-nfs-server-python3 · GitHub

The easiest way is to map some shortcuts to some keys for example f11 & f12, for example (will need to use the command line):

cd /home/osmc/.kodi/userdata
wget https://raw.githubusercontent.com/tomdoyle87/osmc-nfs-server-python3/master/Kodi-nfs-server-setup.py
wget https://raw.githubusercontent.com/tomdoyle87/osmc-nfs-server-python3/master/Kodi-uninstall-nfs-server.py

Then add the following to keyboard.xml or remote.xml (in the global section):

<keyboard>                                                                  
      <F11>XBMC.RunScript(special://home/Kodi-nfs-server-setup.py)</F11>                      
      <F12>XBMC.RunScript(special://home/Kodi-uninstall-nfs-server.py)</F12>    
</keyboard>

If you need any further assistance setting up, please let me know. Also I will gladly receive any thoughts or feedback.

Thanks Tom.

2 Likes

Worked just fine for me on both kodi 18 and 19

1 Like

Hi Toast,

I’ve just realised the scripts were still set to dry-run, so it was only going through the menu prompts and not actually installing anything.

Any chance you could please test again? The script will now install and configure the NFS server.

Thanks Tom.

haha ok well it was a good dry run atleast just tried it before work ill will review as soon as possible when i get out of work

1 Like

Hi Toast,

just wonder if you have had chance to test the script again?

Thanks Tom.

Sorry Tom havent gotten around to it will be home this week a bit under the weather, so ill probly get around to it :slight_smile:

Ok no worries, hope you feel better soon.

Hi @Tom_Doyle
i tried and everything works flawlessy. Just one thing tomention. U have not NO_SUBTREE_CHECK flag added to shares. I think this flag is default today.

I´ve got just problem where nfs server or client badly encode filenames with nonstandard chars like ě etc. NFS client in windows shows me instead of the ě just ?? or similar chars. Cant solve that.

Hi,

Thanks for the feedback.

I’ll check this out and see if its required.

I’ll look into this, but maybe a limitation client sides (Windows).

Thanks Tom.

I mentioned this just if someone doesn´t know how tomake it works. :slight_smile: Its not connected with ur script :slight_smile: but thanks for the help.

1 Like

Hi,

Recently found some inspiration to look at this again. Now installable as addon, no need to edit keymaps. Just run the addon and follow the instructions, available for both kodi 18 & 19:

kodi 19

Git Repository can found here

@lancelot Haven’t forgotten to look in to NO_SUBTREE_CHECK, just been busy on the todo list.
Tested with no_subtree_check enabled and it didn’t create any issues, so I’ve added as requested.

Thanks Tom.

thanks @Tom_Doyle i will test it with next update to kodi 19 :slight_smile: I am going to do fresh install of new system :slight_smile:

1 Like

5 posts were split to a new topic: Is mounting NFS shares is only relevant for Linux servers, correct?

Moved as question was about NFS and Windows.