File Sharing Ubuntu to LibreELEC

  • I'm not able to get File Sharing to work between my new Ubuntu 16.04 LTS Server and LibreELEC 8.0.2 on a Wetek Core. I've tried Samba, the shares are visible, but the Usrname and Passwords are not accepted. I've tried NFS and SSH. None of this is as straight forward as my Win10 Server was, so your help is greatly appreciated!!

  • :)


    # /etc/exports: the access control list for filesystems which may be exported


    # to NFS clients. See exports(5).


    #


    # Example for NFSv2 and NFSv3:


    # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_sub$


    #


    # Example for NFSv4:


    # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)


    # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)


    #


    /media/brian/3TB 192.168.1.65(rw,sync,root_squash,subtree_check)

    Edited once, last by briankhamilton: More Info, contents of /etc/exports (August 7, 2017 at 10:14 AM).

  • I got it to work using the following:

    On the host server (IP 192.168.1.66 in this example)



    Host directories to access on the clients:


    /home/Downloads

    /home/Documents

    /home/eagle

    /media/stuart/svr_data


    Ensure NFS and NTP software is installed. NFS requires accurate time on server and client to ensure proper timestamping


    sudo apt-get update

    sudo apt-get install nfs-kernel-server ntp


    Make the export filesystem by creating the empty directories


    sudo mkdir /export/Downloads

    sudo mkdir /export/Documents

    sudo mkdir /export/eagle

    sudo mkdir /export/svr_data


    Create list of shares in file: /etc/exports. The name on the left will appear under the mount point specified in the client fstab. All clients on the subnet x.x.x.0 – x.x.x.255 have access

    sudo nano /etc/exports

    /home/stuart/Downloads 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)

    /home/stuart/Documents 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)

    /home/stuart/eagle 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)

    /media/stuart/svr_data 192.168.1.0/24(rw,sync,no_subtree_check)

    Make shares by exporting names so clients can see them every time /etc/exports changes


    sudo exportfs -a


    Put binding command in the host fstab so every reboot sets up nfs


    sudo nano /etc/fstab


    /home/stuart/Downloads /export/Downloads none bind 0 0

    /home/stuart/Documents /export/Documents none bind 0 0

    /home/stuart/eagle /export/eagle none bind 0 0

    /media/stuart/svr_data /export/svr_data none bind 0 0


    Start NFS with


    sudo service nfs-kernel-server [re]start

    Edited 3 times, last by briankhamilton: sorry but edited the text a bit to ensure readability, added file name for fstab, added sudo nano /etc/reports (August 17, 2017 at 8:39 AM).