方便使用source insight阅读下载的putty源码,使用的VMware Linux和Window之间创建磁盘映射。
- 安装命令
sudo apt-get install samba samba-common
- 卸载命令
sudo apt-get autoremove samba
- samba访问目录,增加目录的权限
chmod 777 /home/hhh/putty
- samba服务添加用户
sudo smbpasswd -a hhh
- 配置smb.conf
sudo vim /etc/samba/smb.conf
#文件末尾添加
[hhh]
comment=This is samba dir
path=/home/hhh/putty
create mask=0755
directory mask=0755
writeable=yes
valid users=hhh
browseable=yes
- 启动服务
sudo service smbd restart
- window 创建磁盘映射
创建成功后,可以在window内访问linu目录