First install Samba:
sudo apt install samba
In Ubuntu, view the folders that Windows system shares in your local area network:
You can see other Windows hosts and their shared folders in the location-network-Windows network.
Second, view the folders shared by Ubuntu systems in the LAN under Windows:
Back up and edit smb.conf
sudo cp/etc/samba/smb.conf/etc/samba/smb.conf_backup
sudo gedit/etc/samba/smb.conf
The contents of the modifications in [global] are as follows:
Find workgroup = mshome change it to
Code:
Workgroup = Workgroup (the name can be easily filled, of course, in order to facilitate access to other people, it is best to fill in the name of the workgroup windows)
Nethttp://www.aliyun.com/zixun/aggregation/19247.html ">bios Name=gdhi (fill in your computer name here)
Doc Charset=utf-8
Unix Charset=utf-8
The latter two lines are to prevent the Chinese directory garbled.
To allow Windows systems to access anonymously:
Search for this line of text:
; Security = User
Replace with the following code
Security = Share
Reboot Samba
Sudo/etc/init.d/samba restart
Share files in Ubuntu system
Right-click the folder you want to share: Shared Folders (S)--"shared by" select "Windows Network (SMB)"--if you don't want someone to change the folder you're sharing, it's best to check the "read-only" hook-"OK".
Well, you can share your folders.
To view and modify the folders that you share:
System--system management--shared folders
A simpler one, as follows:
1. Windows access Ubuntu
Ubuntu Desktop on a need to share a folder right click, select the share, tick, fill in the corresponding instructions, and then the system prompts the update, update the point of application ok!
Open run input on Windows: \\Ubuntu-IP address, fix it!
2, Ubuntu access to Windows
Share a folder in Windows
Ubuntu Desktop casually open a folder, point above the path to the leftmost button, so that the path into the text display, and then enter the SMB://WINDOWS-IP address, enter user name and password, other do not fill, fix!
Really simple, I was a little surprised the first time, now used to know that Ubuntu in the back to do more than n work!