Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active February 19, 2018 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSams/3db9b1f6183992a87fb647afa147950d to your computer and use it in GitHub Desktop.
Save WillSams/3db9b1f6183992a87fb647afa147950d to your computer and use it in GitHub Desktop.
NFS Setup on Linux For XBox One Kodi
#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