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