vmware linux samba share with windows

来源:互联网 发布:网络真钱娱乐 编辑:程序博客网 时间:2024/06/09 18:58

环境:主机windows xp系统,虚拟机vmware 7.1.3,虚拟机中安装了ubuntu10.10。

需求:希望在xp中用source insight编辑工程,然后在ubuntu下编译,需要在虚拟机和xp系统中共享工程。

问题:用Vmware tools能在xp和ubuntu中共享文件,编译不能通过,提示“creating symbolic link "operation not supported"”。但是用samba可实现上述功能,具体操作如下:

 

1. 首先安装samba软件包:

 

 

2. 创建共享文件夹

 

a)在home文件夹下创建share文件夹

 

 

b)编辑smb.conf:

将smb.conf中的security=user更改为security=share,并在最后增加:


保存smb.conf文件后退出

 

c)重启samba服务:

 

3. xp访问共享文件夹

 

a)查看虚拟机的ip地址:

得到虚拟机中ubuntu的ip地址为192.168.102.129(此时用xp中的命令行,可以ping通ubuntu)

 

b)在xp中点击运行输入//192.168.102.129

看到share文件夹,点击进入,share文件夹即为共享文件夹,把工程放入share文件夹中,在xp下就可以访问

 

 

4. 参考资料:

1、遇到ln: creating symbolic link XXXXXX : Operation not supported时的解决办法:

http://hi.baidu.com/serial_story/blog/item/e020421e098d71fc1ad576e5.html

2、Ubuntu10.10下Samba服务器的搭建

http://hi.baidu.com/chenyangxin/blog/item/9c388050681bfd738535248e.html

3、启动虚拟机后在网上邻居会看到两个虚拟机的链接

http://www.zhiwenweb.cn/article.asp?id=1211

4、ubuntu中设置ip

http://panxq0809.javaeye.com/blog/721644

 

 

这个没有设置权限,任何人都可以读写,

如果要编辑成指定用户访问,请结合 http://forum.ubuntu.org.cn/viewtopic.php?t=20852