保证同一网段地址
虚拟器的网络配置桥接模式为物理
1.下载Samba服务
apt-get install samba
2.打开配置文件
gedit /etc/samba/smb.conf
3.写入
[share]
comment = All share
browseable = yes
path = / #分享的位置 根目录 可改
create mask = 0777
directory mask = 0777
valid users = root
force group = root
public = yes
writable = yes
available = yes
4.重启
/etc/init.d/samba restart
5.新建密码
smbpasswd -a root
6.查看地址(inet地址)
ifconfig