1 download
sudo apt-get install samba
2. Create a shared directory
mkdir /home/lucky/share
3. Give permission
sudo chmod 777 /home/lucky/share
4. Backup the existing configuration and modify the original configuration
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo gedit /ect/samba/smb.conf
Add at the end after opening
[share]
path = /home/phinecos/share
available = yes
browsealbe = yes
public = yes
writable = yes
5. Create an account
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a lucky
Enter your password twice
6. Install smbclient
sudo apt-get install smbclient
7. Reboot
sudo /etc/init.d/samba restart
8. Test
smbclient -L //localhost/share
9 Configuration under windows
search run
Enter \\192.168.host ip\share
10. Use ifconfig to view ip address under linx
If there is no eth0, the network may be disconnected, just open the network