我刷的是Lubutnu固件。到此处下载:http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/
apt-get install samba
nano /etc/samba/sbm.conf#编辑配置文件,可清空原有配置,复制修改一下配置。
#Windows下无须用户名与密码配置
[global]
workgroup = WORKGROUP
netbios name = Cubietruck
server string = Cubieboard
security = share
guest ok = yes
guest account = root
[root]
path = /mnt
writeable = yes
guest ok = yes
#Windows 下使用用户名与密码验证的配置
[global]
workgroup = WORKGROUP
netbios name = Cubietruck
server string = Cubieboard
security = user
guest account = root
[root]
path = /mnt
writeable = yes
guest ok = no
valid users = 用户名