Last active
February 19, 2018 01:33
-
-
Save WillSams/3db9b1f6183992a87fb647afa147950d to your computer and use it in GitHub Desktop.
NFS Setup on Linux For XBox One Kodi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#note: Kodi on Xbox One only sees it via the IP so just search available NFS servers instead of searching via hostname | |
sudo su | |
apt install nfs-kernel-server | |
cat > /etc/exports << EOF | |
/<path to music>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
/<path to movies>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
/<path to tv>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
EOF | |
exportfs -a #yeah, this step is important.... | |
service rpcbind stop && sudo service nfs-kernel-server stop | |
service rpcbind start && sudo service nfs-kernel-server start | |
sudo xed /etc/default/nfs-kernel-server | |
#change 'RPCMOUNTDOPTS=--manage-gids' to 'RPCMOUNTDOPTS="-p 13025"' Port doesn't have to be 13025, your choice | |
sudo ufw allow from 192.168.1.0/24 to any port 2049 | |
sudo ufw allow from 192.168.1.0/24 to any port 111 | |
sudo ufw allow from 192.168.1.0/24 to any port 13025 # or whatever port you chose if not 13025 | |
exit | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment