Ubuntu/windows How to achieve docking (file sharing)?

Source: Internet
Author: User
Keywords Ubuntu file sharing
Tags access apt etc file file sharing hosts how to install

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.