SAMBA on BPI-M2+

首先安装

sudo apt-get install samba

修改配置

sudo nano /etc/samba/smb.conf

找到map to guest = bad user一行,在下边增加guest account = pi
结尾增加

[MikuQ]
comment = usb storage
path = /home/pi
browseable = Yes
read only = No
guest ok = Yes  
security = user

然后保存退出

sudo /etc/init.d/samba restart

然后就可以通过网上邻居访问到BPI啦

参考文献:http://forum.eepw.com.cn/thread/265663/1

附注,如果希望帐号登录,可以不添加guest account = pi和guest ok = Yes,然后通过sudo smbpasswd -a pi把已有的pi帐户设置给samba

标签: none

添加新评论