树莓派3 Raspberry系统安装samba

默认Raspberry不自带samb,需要手动安装。

如果默认的rasp源不好用的话,可以使用下面从网上找的:

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可能会报错,先把错误提示中版本不对的依赖项卸载掉,比如我的树莓派需要重新安装这几个:

apt-get remove samba-common
apt-get remove libwbclient0

然后正常安装samba,记得不光samba服务,还有管理工具:

apt-get install samba
apt-get install samba-client
apt-get install samba-common
apt-get install samba-common-bin

装完这些基本够用了。

修改samba配置:在/etc/samba/smb.conf中,修改以下两个键值:

browseable = yes
read only = no

 

posted @ 2016-05-01 20:51  shijianyujingshen  阅读(570)  评论(0编辑  收藏  举报