opened by another process write access was denied sourceinsight


Ubuntu 16.04 安裝Samba 和 windows 安裝Source Insight

Linux 安裝 sm 和windows下安裝Source Insight

環境:

VMware Workstation 15.5
Ubuntu 16.04 LTS
Source Insight 4.0

1.1 安裝samba

sudo apt-get update 
sudo apt-get upgrade 
sudo apt-get -f install 
sudo apt-get install smaba
  • 1
  • 2
  • 3
  • 4

回車或者Y

1.2 安裝成功后可以查看一下版本

在這里插入圖片描述

1.3 Samba 詳細配置

創建共享目錄

$sudo mkdir -p /hmoe/share
$sudo chmod 777 /hmoe/share
  • 1
  • 2

備份和修改配置文件

$sudo cp /etc/samba/samba.conf /etc/samba/samba.conf.s
  • 1

【注】嫌麻煩一直sudo的話,可以切換用戶 sudo su ,在Ctenos 中直接su即可。
修改samba.conf

$sudo vi /etc/samba/samba.conf
  • 1
[share] comment = samba home directory path = /home/share public = yes browseable = yes public = yes read only = no writable = yes create mask = 0777 directory mask = 0777 available = yes security = share 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

可以在Windows10 下輸入IP進行無密碼的訪問。順帶一提要是在Linux下新建文件夾,或者文件在Source Insight 無法保存的情況下,需要更新一下文件夾的權限。
在這里插入圖片描述
可以通過以下代碼來更新權限

sudo chmod -R a=rwx /home/share/newfolder 
  • 1

錯誤代碼`

Error:"\\192.168.0.110\share\code\test.c"is busy or opened by another process. Write access was denied 
  • 1
  • 2

在這里插入圖片描述

【IP】此IP要設置成靜態IP,而且虛擬機的網絡要設置成橋接模式。
【注】如果您之前沒有配置過vi編輯器的話,也可以使用 sudo gedit /etc/samba.conf,可以自己配置一下畢竟vi編輯器號稱最強編輯器。

2.1 Source Insight 4.0

https://pan.baidu.com/s/1rnMbTaP2ZDNAX13FYkWpTw 提取碼:w2ze 
  • 1
  • 2
在此提供鏈接鏈接:僅供學習使用
  • 1

安裝步驟在README中。

 

 

原文出處:https://blog.csdn.net/weixin_43764544/article/details/112303524


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM