Ubuntu 16.04 安装Samba 和 windows 安装Source Insight

weixin_43764544 2021-01-07 15:23:03 23 收藏
文章标签: linux ubuntu 编辑器 windows

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

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

最新文章

  1. 与大家分享robotium一个小问题。Test run failed:Instrumentation run failed due to 'java.lang.ClassNotFoundException'
  2. 三言两语之js面向对象初探1
  3. caffe学习系列(3):数据层介绍
  4. 【OpenStack】OpenStack系列4之Glance详解
  5. cocos run -p android报错 BUILD FAILED ..\ant\build.xml:892
  6. Android调用系统邮件类应用的正确实现方法
  7. 怎样使用jlink一键烧录整个flash Hi3518 a c e Hi3515 Hi3512
  8. sharepoint:各种阀值
  9. 【kmp】 字符串最大周期
  10. Eclipse rap 富客户端开发总结(13) :Rap/Rcp保存按钮处理方式
  11. SuperMap iClient for JavaScript初入
  12. Oracle EBS R12多组织(多OU)访问架构
  13. Python 几个常见函数
  14. 【bzoj 2159】Crash 的文明世界
  15. 1、Django系列之web应用与http协议
  16. mac安装MySQL-Python报错
  17. MYSQL使用中字符编码一坑
  18. 二叉树的镜像(python)
  19. wiper
  20. requireJS2

热门文章

  1. Java基础__01.环境安装
  2. Linux: Ensure X Window System is not installed
  3. mysql修改密码报错:Your password does not satisfy the current policy requirements
  4. Win10系统所有文件夹被设为只读,取消之后再次打开属性依然只读,怎么解决?
  5. Oracle之关于sql_load导入数据
  6. 【TensorFlow】InternalError: Failed copying input tensor
  7. java面试准备基础篇
  8. LOOP GROUP BY 分组循环的使用方法小栗子
  9. Perl 简单脚本处理log信息
  10. curl:(6) Could not resolve host: baidu.com; Unknown error