zoukankan      html  css  js  c++  java
  • windows7使用Source insight上远程修改ubuntu共享内核源码

    由于本人阅读喜欢使用source insight。前段时间接触了linux核代码,而这份代码只能放在ubuntu服务器上编译,刚开始的时候是在windows上修改,完了之后再copy到服务器上去编译,这样很麻烦,效率也很低,经过网上搜索和向别人请教之后,终于可以正常使用了。

    1、使用SSH工具在ubuntu上Git clone代码之后,必须修改文件的权限:sudo chmod 777 xxx -R ;777为拥有所有权限,详细自己去网上查,xxx为项目文件夹,-R是递归到所有子文件(夹),我第一次没有加 -R 然后一直没有远程修改权限,郁闷了很久,才修改。

    2、创建远程连接,windows7比较方便,打开我的电脑,工具->映射网络驱动器,输入远程的网络地址就OK了;这样创建之后,你就将远程端的代码映射到本地,当做一个硬盘来访问和使用了。

            

    3、接下来就是source insight加载同步代码的事了,这里主要讲的是source insight遇到的事。

    在Source insight上修改ubuntu上共享内核源码,经常出现以下提示,很烦人:

    [html] view plain copy
     
     在CODE上查看代码片派生到我的代码片
    1. xxx has been changed outside of Source Insight since it was loaded.  
    2. Do you want to continue and overwrite it ?  
    3. Confirm by typing 'yes' below:   
    [html] view plain copy
     
     在CODE上查看代码片派生到我的代码片
    1. xxx has been changed outside of the editor.  
    2. Do you want to reload the file ?  
    [html] view plain copy
     
     在CODE上查看代码片派生到我的代码片
    1. xxx has been changed both inside AND outside of the editor.  
    2. Do you want to reload the file and lose changes made here?  
    3. Confirm by typing 'yes' below:  

    开始以为是ubuntu服务器同步的问题,没有去管;最近修改代码比较多,保存的时候每次都提醒,有时候修改好的代码,几秒钟不保存,就被后台更新覆盖了。终于扛不住了,在网上搜了下,找到答案了,原来是source insight版本太老的问题。

     引用source insight 3.50.0051 update log 

        Fix: Sometimes files were said to be modified outside of SI, but they were not. This most likely happened on network drives. Under some conditions, the Windows directory information can lag for remote drives. SI now uses a better method of getting file information.

    于是乎,将source insight更新到最新版本3.50.0072 (以前使用的是0038),问题解决。

        下次遇到问题,多问问,或网上搜搜,就解决了;只要想解决,没什么问题是问题,哈哈!

    转载请注明出处:http://blog.csdn.net/n289950578/article/details/24360185

     
    0
  • 相关阅读:
    Codeforces 1045C Hyperspace Highways (看题解) 圆方树
    Codeforces 316E3 线段树 + 斐波那切数列 (看题解)
    Codeforces 803G Periodic RMQ Problem 线段树
    Codeforces 420D Cup Trick 平衡树
    Codeforces 295E Yaroslav and Points 线段树
    Codeforces 196E Opening Portals MST (看题解)
    Codeforces 653F Paper task SA
    Codeforces 542A Place Your Ad Here
    python基础 异常与返回
    mongodb 删除
  • 原文地址:https://www.cnblogs.com/jiangzhaowei/p/5528586.html
Copyright © 2011-2022 走看看