在树莓派3b的Unbuntu Mate系统上设置网络文件共享(samba)

转载自

http://www.linuxidc.com/Linux/2016-10/136433.htm

http://blog.csdn.net/u013754317/article/details/53972115


1.Ubuntu Mate系统安装

1.1 下载Ubuntu-mate镜像:https://ubuntu-mate.org/raspberry-pi/

    下载SDFormatterv4:https://www.sdcard.org/downloads/formatter_4/

    下载Win32DiskImager:https://sourceforge.net/projects/win32diskimager/

1.2 准备一张大于8GB的TF卡,使用SDFormatterv4格式化TF


1.3 用Win32DiskImager将ubuntu-mate镜像(ubuntu-mate-16.04-desktop-armhf-raspberry-pi.img)写入TF中


2. 设置网络文件共享

2.2.1、安装Samba

sudo apt-get install samba

2.2.2、配置Samba

sudo pluma /etc/samba/smb.conf

在文件尾添加:

[share]
comment=this is Linux share directory
path=/home/
public=yes
writable=yes
guest ok = yes

保存并退出
注意:在Unbuntu Mate系统中用pluma打开smb.conf,在Raspbian则用nano,即命令行输入:
sudo nano /etc/samba/smb.conf


2.2.3 其它设置
(1)关闭防火墙:
 #sevice iptables stop
(2)修改目录权限 :
#chmod 777 /home/wind ; 
#chmod 777 /home/wind/smbShare; 

2.2.4 启动Samba服务:

sudo /etc/init.d/samba restart

在Windows下访问共享目录:

\\192.168.1.102\share

上面的地址192.168.1.102是树莓派的ip地址,在命令行中输入ifconfig查看



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值