CubieTruck:安装Samba共享
首先创建共享目录:
mkdir -p /nas/cloud
chmod 777 /nas/cloud
安装samba:
apt-get install samba
修改配置:
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vim /etc/samba/smb.conf
#在末尾增加如下内容
[share]
path = /nas/cloud
available = yes
browsealbe = yes
writable = yes
创建账号(注意,这个账号必须是Linux系统用户,否则会提示: failed to add entry for user..)
smbpasswd -a cubie
/etc/init.d/samba restart
可惜速度太慢,用wifi实测只有1.5左右,用网线实测5左右