loads of stuff that are pretty specific on pip that doesnt mean they have no place there
Exporting /media is just fine. I’ll need to work out how we would expose some of the settings you added to the script.
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.
Focus on Python3 since Python 2 is basically going the way of the dodo bird
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.
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.
Worked just fine for me on both kodi 18 and 19
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.
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
just wonder if you have had chance to test the script again?
Sorry Tom havent gotten around to it will be home this week a bit under the weather, so ill probly get around to it
Ok no worries, hope you feel better soon.
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.
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).
I mentioned this just if someone doesn´t know how tomake it works. Its not connected with ur script but thanks for the help.
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:
Git Repository can found here
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_Doyle i will test it with next update to kodi 19 I am going to do fresh install of new system
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.