默认Raspberry不自带samb,须要手动安装。html
若是默认的rasp源很差用的话,可使用下面从网上找的:bash
打开资源配置文件: sudo
nano
/etc/apt/sources
.list
工具
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可能会报错,先把错误提示中版本不对的依赖项卸载掉,好比个人树莓派须要从新安装这几个:post
sudo apt-get remove samba-common -y sudo apt-get remove libwbclient0 -y
而后正常安装samba,记得不光samba服务,还有管理工具:this
sudo apt-get install samba
或者
sudo apt-get install samba samba-common-bin -yspa
你也能够一个一个的安装rest
apt-get install samba apt-get install samba-client apt-get install samba-common apt-get install samba-common-bin
装完这些基本够用了。code