1. Installation under Ubuntu
sudo apt-get install samba
sudo apt-get install smbclient
2. Change the configuration file
sudo gedit /etc/samba/smb.conf
Add the following information at the end:
[share]
comment = Share Folder require password
browseable = yes
path = /home/carl/work/cm-h2
create mask = 0777
directory mask = 0777
valid users = carl
public = no
writable = yes
available = yes
You need to create a shared directory such as /home/carl/work/cm-h2
3. Restart the service
sudo /etc/init.d/samba restart
Fourth, add samba user name
sudo smbpasswd -a carl
sudo smbpasswd -e carl
Can add system account to samba service
5. Windows login
Right-click on the computer to add a network location, such as \\192.168.0.100\share
input user name: carl
password: corresponding password
Note: The network location share represents the share added in the smb.conf file.