vmware linux samba share with windows
2011-06-06 11:53
429 查看
环境:主机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
需求:希望在xp中用source insight编辑工程,然后在ubuntu下编译,需要在虚拟机和xp系统中共享工程。
问题:用Vmware tools能在xp和ubuntu中共享文件,编译不能通过,提示“creating symbolic link "operation not supported"”。但是用samba可实现上述功能,具体操作如下:
1. 首先安装samba软件包:
root@ubuntu:~#apt-get install samba root@ubuntu:~#apt-get install smbfs samba命令: 启动服务:root@ubuntu:~#/etc/init.d/smbd start 停止服务:root@ubuntu:~#/etc/init.d/smbd stop 重启服务:root@ubuntu:~#/etc/init.d/smbd restart or root@ubuntu:~#service smbd restart
2. 创建共享文件夹
a)在home文件夹下创建share文件夹
mkdir share chmod 777 share // 赋予写权限
b)编辑smb.conf:
root@ubuntun:~#gedit /etc/samba/smb.conf
将smb.conf中的security=user更改为security=share,并在最后增加:
[share] comment=this is Linux share directory path=/home/username/share guest ok = yes read only = no
保存smb.conf文件后退出
c)重启samba服务:
root@ubuntu:~#/etc/init.d/smbd restart
3. xp访问共享文件夹
a)查看虚拟机的ip地址:
root@ubuntu:~#ifconfig
得到虚拟机中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
相关文章推荐
- 使用samba实现VMWARE 中 LINUX 与宿主机 WINDOWS的文件共享
- windows shared with linux throw vmware
- windows share files with linux via vitrualbox
- vmware下面linux与windows的共享文件方式-samba
- Windows与VMware下的Linux文件共享(vmware tools和Samba)
- linux in the virtual machine share folders with Windows
- samba share files between windows and ubuntu LINUX 文件共享
- vmware下面linux与windows的共享文件方式-samba
- How to share folder to windows from ubuntu with samba.
- 实现Windows与VMware下Linux的文件共享 VMware Tools 安装
- 一步一学Linux与Windows 共享文件Samba
- 实现Windows与VMware下Linux的文件共享 VMware Tools 安装
- 在VMware中搭建samba服务器,实现Linux和windows的资源共享
- Windows 下安装VMWare Linux后设置网络
- 在 linux 中利用samba访问windows的共享
- VMware安装RedHat、VMwareTools 实现WINDOWS和LINUX共享文件夹
- Samba服务搭建实现Windows与Linux系统之间资源共享
- mac system , share folder with ubuntu virtual system in the vmware fusion
- VMware,win7与linux centos6.4文件互传,linux下挂载windows共享文件夹,vmware tools安装方法
- 好文推荐:Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0