远程编辑简洁方案

远程编辑简洁方案

开发环境

本机windows10系统,开发linux下运行的项目。在本机VMWare中安装linux虚拟机,虚拟机配置NAT网络以及静态IP,然后安装Samba,配置Samba服务器,然后在本机windows10系统中访问Samba共享文件夹实现透明地编辑linux环境下的文件,由于项目代码文件本身位于linux环境下,通过ssh等方法远程登陆linux系统后可以方便的使用linux下的命令工具进行操作,git等操作也全部在linux shell下执行,windows只是提供一个方便的图形界面进行文件读写。

Samba 配置

记录下常用的简单配置:

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.

[global]
    workgroup = SAMBA
    security = user
    passdb backend = tdbsam
    guest account = root

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw

[home]
    path = /root
    public = yes
    guest ok = yes
    browseable = yes
    writable = yes
    read only = no
    create mask = 0644
    #force create mode = 0777
    directory mask = 0777
    #force directory mode = 0775
[usr]
    path = /usr
    public = yes
    guest ok = yes
    browseable = yes
    read only = yes
    writeable = no

你可能感兴趣的:(杂记)