安装库
sudo apt install smbclient samba samba-common
启动samba
sudo /etc/init.d/samba start
备份配置文件
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
编辑配置文件
sudo gedit /etc/samba/smb.conf
后面添加如下内容
[Share] path = /home/username/Share available = yes browsealbe = yes public = yes writable = yes
在客户端运行如下命令,即可在/mnt/share中看到原来/home/username/Share中的文件。
sudo mount //192.168.1.105/Share /mnt/share