下载samba
sudo apt-get install samba samba-common
出现404问题 应该是地址被墙了。

找个好点的镜像(http://blog.csdn.net/amanne/article/details/53782761)
1、查看树莓派的镜像列表http://www.raspbian.org/RaspbianMirrors
2、选择中国的,选择浙江大学的http://mirrors.zju.edu.cn/#image-list,选择raspbian镜像源。可以用配置生成器生成配置文件
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
3、修改/etc/apt/sources.list

4、
sudo apt-get update
sudo apt-get upgrade
再安装 出现

提示 依赖 ***** 正在安装
用apt-get remove 软件名去掉就好了
添加共享目录:


添加samba的登录账户
出现问题
# smbpasswd -a sunjing
New SMB password:
Retype new SMB password:
Failed to add entry for user sunjing.
百度给出的结论是”添加的Samba用户首先必须是Linux用户”,一下子豁朗开郎。

成功
登录samba
ifconfig查看当前ip

输入帐号密码就能用了
网友评论