首先, 在linux中修改代码是比较不方便的, 因此一般的开发就需要在linux和windows中有两份一模一样的源码.
首先通过source Insight软件在win1dows中进行编辑代码. 再通过SSH Secure shell 用来同步代码, 在linux中进行编译链接
这个需要涉及到虚拟机ubuntu上网的问题, 首先要与主机windows可以ping通.
将虚拟机与windows 网络设置成桥接, (注意, 需要桥接的时候笔记本需要设置选择有线网卡. 可不要使用无线网卡)
然后IP地址设置同一个网段:
在虚拟机中设置网卡
执行命令:: vi /etc/network/interfalse
编辑成下面
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.7.141
netmask 255.255.255.0
gateway 192.168.7.1
然后尝试与主机ping 如果ping不通需要注意防火墙
可以参考此博文
首先感谢博主:: 為BUG而來
https://blog.csdn.net/hskw444273663/article/details/81301470
然后需要在linux中
搭建openssh环境
(1)安装ssh-server。(sudo apt-get install openssh-server)如果报错提示依赖错误,可以参考:http://www.cnblogs.com/mliudong/p/4094519.html // 在此表示感谢:
然后使用
SSH Secure shell 软件进行文件的同步.
关于SSH Secure shell 的使用可以参考
https://www.cnblogs.com/godtrue/p/4185689.html 在此表示感谢,
这样就实现开发问题了