1.安装samba
1 | sudo apt-get install samba |
弹出 Modify smb.conf to use WINS settings from DHCP?选择NO
2.备份配置文件
1 | sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.back |
3.配置conf文件
1 | sudo vim /etc/samba/smb.conf |
4.加入如下语句
1 | [ezhonghuNAS] # 显示被分享文件的名称 |
5.重启samba
1 | sudo /etc/init.d/smbd restart |
6.没启动的话启动samba
1 | sudo samba |
7.添加Pi用户作为登陆1
sudo smbpasswd -a pi