默认Raspberry不自带samb,须要手动安装。工具
若是默认的rasp源很差用的话,能够使用下面从网上找的:spa
deb http://mirrors.cqu.edu.cn/Raspbian/raspbian wheezy main contrib non-free rpi deb-src http://mirrors.cqu.edu.cn/Raspbian/raspbian/ wheezy main contrib non-free rpi deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
直接install samba可能会报错,先把错误提示中版本不对的依赖项卸载掉,好比个人树莓派须要从新安装这几个:code
apt-get remove samba-common apt-get remove libwbclient0
而后正常安装samba,记得不光samba服务,还有管理工具:blog
apt-get install samba apt-get install samba-client apt-get install samba-common apt-get install samba-common-bin
装完这些基本够用了。rem
修改samba配置:在/etc/samba/smb.conf中,修改如下两个键值:get
browseable = yes
read only = no