主要工具:
Samba是一个开源的软件套件,允许Linux系统与Windows系统之间共享文件和打印机。
一、首先是Linux共享的设置
①安装
sudo apt-get install samba
②创建共享文件夹
sudo mkdir /home/share
③配置用户
sudo smbpasswd -a kequan
④修改配置文件
[global]
workgroup = WORKGROUP
server string = Samba SERVER %v
netbios name = ubuntu
security = user
map to guest = Bad User
dns proxy = no
#共享文件夹配置
[share]
valid users = kequan
comment = Share Folder
path = /home/share
browsable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
[happyhome]
valid users = kequan
comment = Share Folder
path = /media/kequan/HappyHome1
browsable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
⑤重启服务
sudo service smbd restart
资源配置好,在mac端链接配置
输入ubuntu的 ip地址,链接即可
二、mac端做资源共享端
进入 “系统偏好设置” 》 “共享”
点击 “选项” 配置密码
配置好后进入ubuntu进行访问,在otherLocation中输入密码就可以访问
windows : 打开资源管理学, 输入ubuntu的ip地址,普通配置共享文件的流程