📁
notes
  • 目录
  • 嵌入式学习路线
  • Linux驱动开发
    • 字符设备驱动开发
    • Linux驱动开发
  • 安卓底层开发
    • 硬件抽象层
      • 安卓硬件驱动
      • 安卓硬件抽象层模块
      • 安卓硬件访问服务
      • 安卓应用
    • 智能指针
    • Logger日志系统
      • Logger日志
      • Logger写接口
      • Logcat
    • binder
      • binder
  • 操作系统
    • 操作系统的运行机制
    • 进程
  • linux一句话
    • 与网络无关的Linux
  • Linux内核0.12
    • 微型计算机组成结构
  • QT
    • 第一个QT
  • ubuntu
    • Linux使用
    • 使用notebook
    • 使用vscode
    • 使用ubuntu
    • Linux运行时格式
    • 配置samba进行win和Linux文件访问
  • shell
    • 自动打包
    • shell 概述
    • 变量
    • 条件测试
    • 控制
  • C
    • 第一条Linux_c输出
  • GTK
    • GTK入门
    • 控制件
    • 事件
    • Glade使用
  • sqlite
    • 数据库概述
    • SQL基础
    • SQLite的C编程
    • SQL语句进阶
  • web
    • CGI通用网关接口
  • 物联网
    • 物联网概述
    • 射频识别技术RFID
  • MySQL
    • MySQL的配置
  • 其他
    • Typora图床
Powered by GitBook
On this page

Was this helpful?

  1. ubuntu

配置samba进行win和Linux文件访问

PreviousLinux运行时格式Next自动打包

Last updated 4 years ago

Was this helpful?

Nnpxmj.png

配置 samba 就进行 win 和Linux 进行文件访问 , 在win的环境下 就访问Linux的代码 , 在win的环境下进行 code 的编码 , 是不是很 nice !!!!

检查下更新

sudo apt-get upgrade
 sudo apt-get update
sudo apt-get dist-upgrade

安装samba服务器

sudo apt-get install samba samba-common

添加用户(下面的 cpucode 是我的用户名,之后会需要设置samba的密码 )

sudo smbpasswd -a cpucode

在smb.conf文件最后边加入配置信息

sudo vim  /etc/samba/smb.conf

配置文件smb.conf的最后添加下面的内容:

只要修改 cpucode 为你的用户名

[cpucode]
comment = cpucode folder
browseable = yes
path = /home/cpucode
create mask = 0700
directory mask = 0700
valid users = cpucode
force user = cpucode
force group = cpucode
public = yes
available = yes
writable = yes

对配置进行了更改后,需要重启 samba 服务后更改的配置才会生效

sudo service smbd restart

查看Linux ubuntu 的id地址

ifconfig

在window系统中输入访问Linux 的 id 地址访问即可 :

\\192.168.13.133

输入samba用户名及密码访问即可看到共享

用户 : cpucode

密码 : xxxxx

右击cpucode , 点击 映射网络驱动器

电脑目录下就有

  • @由于个人水平有限, 难免有些错误, 还请指点:

  • @Author: cpu_code

  • @Date: 2020-08-27 12:55:01

  • @LastEditTime: 2020-08-27 13:16:45

  • @FilePath: \notes\ubuntu\use_samba.md

image-20200827125614558
image-20200827125641998
image-20200827125705303
image-20200827125732914
image-20200827125759057
image-20200827125838697
image-20200827125907818
image-20200827125847295
image-20200827130155217
image-20200827130045682
image-20200827130120932
image-20200827131022638
image-20200827130753854

@Gitee:

@Github:

@CSDN:

@Gitbook:

https://gitee.com/cpu_code
https://github.com/CPU-Code
https://blog.csdn.net/qq_44226094
https://923992029.gitbook.io/cpucode/