默認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