Text-editing remote Linux system under Window environment

background

  Web site recently developed in LAMP (CentOS, Apache, Mysql, PHP) environment, using Laravel framework. During development, find themselves not accustomed to using VIM write code. Gradually an idea in mind, the ability to remotely edit the code in the Windows environment. This idea drove me to find solutions road, eventually found an open source software Samba.

Introduction

  Samba is the standard Windows interoperability suite of programs for Linux and Unix.

       Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.

installation

  CentOS environment:

  yum -y install samba samba-client

Configuration

  Smb.conf configuration file stored in / etc / samba directory under, in the final text can be increased as follows:

[public]

  comment = shared Directory - Description Notes

  path = / usr / local / log - log file sharing under / usr / local

  public = yes - do not know

  writeable = yes - writable

  browseable = yes - readable

  guest ok = yes - do not know

 

创建用户
#groupadd samba #useradd ted -g samba -s /sbin/nologin
#smbpasswd -a samba #New SMB password: #Retype new SMB password: #Added user ted. #[root@base samba]#

启动
#systemctl start smb
#systemctl enable smb
Created symlink from /etc/systemd/system/multi-user.target.wants/smb.service to /usr/lib/systemd/system/smb.service.
 

 

Guess you like

Origin www.cnblogs.com/paopaorun/p/11456585.html