1、安装samba
Sudo apt-get install samba
2、编辑/etc/samba/smb.conf配置共享目录
添加下面代码:
#======================= Share Definitions=======================
[Share]
comment = My Share Dir
path=/home/ncf/study
available = yes
browseable = yes
public = yes
writable = yes
create mode = 0664
directory mode = 0775
3、重启samba服务器
sudo systemctl restart smbd
4、在windows下访问虚拟机ip.
查看虚拟机IP:ifconfig
如:打开计算机:\\192.168.180.133