Povinne cvicenie pre zaciatok apt-get (na debiane) alebo opkg (na stb):
Kód: Vybrat vše
apt-get update ;
apt-get upgrade ;
apt-get install autofs nfs-kernel-server nfs-common
apt-get -y install samba smbclient
apt-get -y install cifs-utils
Na odroide:
Kód: Vybrat vše
root@odroid:~# cat /etc/exports
# /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_subtree_check)
#
# 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/kingspec *(rw,async,insecure,no_root_squash,no_subtree_check,nohide)
/media/seagate *(rw,async,insecure,no_root_squash,no_subtree_check,nohide)
root@odroid:~#
Kód: Vybrat vše
root@odroid:~# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
LABEL=BOOT /media/boot vfat umask=0077 0 1
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro 0 1
192.168.0.19:/media/hdd/SAMSUNG_1GB /media/hdd nfs vers=3,rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0
192.168.0.19:/media/sda/sda /media/pipc nfs vers=3,rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0
LABEL=SG_4TB /media/seagate ext4 defaults,nofail 0 0
LABEL=KINGSPEC /media/kingspec ext4 defaults,nofail 0 0
root@odroid:~#
Kód: Vybrat vše
root@sf8008:/etc/enigma2# cat automounts.xml
<?xml version="1.0" ?>
<mountmanager>
<nfs>
<mount>
<active>True</active>
<hdd_replacement>True</hdd_replacement>
<ip>192.168.0.111</ip>
<sharename>/media/seagate</sharename>
<sharedir>media/seagate</sharedir>
<options>rw,nolock,tcp</options>
</mount>
</nfs>
<nfs>
<mount>
<active>True</active>
<hdd_replacement>False</hdd_replacement>
<ip>192.168.0.111</ip>
<sharename>/media/kingspec</sharename>
<sharedir>media/kingspec</sharedir>
<options>rw,nolock,tcp</options>
</mount>
</nfs>
</mountmanager>
root@sf8008:/etc/enigma2#
Kód: Vybrat vše
[seagate]
path = /media/seagate/
read only = no
guest ok = yes
public = yes
[kingspec]
path = /media/kingspec/
read only = no
guest ok = yes
public = yes