1. Installing Samba
sudo apt install-/etc/samba/smb.conf /etc/samba/smb.conf.bak
2. Create a folder and modify permissions
sudo mkdir /var/-R /var/www
or sudo chown-r your_name:root /var/www
3. Add a password for the samba user (installing Ubuntu will have a user who is yourself like Lucy)
sudo smbpasswd-a Lucy //will prompt for a password, remember to log in later to verify.
4. Modify the Samba configuration file
sudo vim/etc/samba/smb.conf
[WWW]
Comment = www
Path =/var/www
writable = yes
Valid user = Lucy # #你的用户名字
# #重启samba服务
sudo service smbd restart
Ps-ef | grep SMBD Viewing process
5. Open My Computer. On the folder address bar, enter for example:
\ \192.168. 177.100
Enter the user name and password to connect.
6. Open My Computer page, network driver, input address, verify, map into a disk, you can open with phpsorm ...
Ubuntu uses Samba for file sharing with virtual machines