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