This article describes in detail how to share folders in the LAN in Ubuntu. Does your home have multiple computers? When you need to transmit data from an Ubuntu computer to another computer, do you need to use a USB flash drive or an SD card? Do you think this method is annoying? I'm sure it is. The purpose of this article is to allow you to quickly and conveniently transfer files, documents and other large data in the LAN, in order to save your valuable time. You can share text between Ubuntu and Windows with ease with just one setup and a few mouse clicks.
This article describes in detailHow to share folders in a LAN in Ubuntu.
Does your home have multiple computers? When you need to transmit data from an Ubuntu computer to another computer, do you need to use a USB flash drive or an SD card? Do you think this method is annoying? I'm sure it is. The purpose of this article is to allow you to quickly and conveniently transfer files, documents and other large data in the LAN, in order to save your valuable time. You just need to set it once, and then tap the mouse, you can freelyShare files between Ubuntu and WindowsOf course, this is also used for other Linux systems. Don't worry. This is easy to operate and won't take too much time.
In addition, this tutorial is useful in other Linux systems even though it is used in Ubuntu.
Implement LAN shared folder on Ubuntu
If your system is Ubuntu 14.04, 14.10, or 12.04, you can use either of the following methods to share local files on a computer running Windows or other Linux.
- Provides password-free sharing for each user in the LAN
- Only for specific access and folder password protection
This article includes two methods, you can choose the one you want to use.
1. Lan password-free shared folder
Step 1:
To implement LAN shared folders on Ubuntu, right-click the folder to be shared and select "Local Network Share )":
Possible fault Solutions: If the "Local Network Share" option is not displayed in the right-click menu, create a terminal and run the following command to install the nautlius-share plug-in:
sudo apt-get install nautilus-share
Then restart Nautilus. You can choose to log out and then log on, or use this command:
nautilus -q
Step 2:
Once you click "Local Network Share", the shared folder option will appear. Select "Share this folder (Share this folder:
Possible fault Solutions: If you are prompted that the shared service is not yet installed, as shown in, click Install service and follow the prompts.
Step 3:
When the "Share this folder" option is selected, the "Create Share" button becomes available. You can also "Allow others to create and delete fies in this folder (Allow other users to edit files in shared folders )". The same is true for option "Guest access (allow visitor access.
The folder icon is displayed as shared. To stop a shared folder, simply cancel the Share this floder option.
This method is so simple that anyone in the LAN can access the files in the shared folder. Under normal circumstances, you will choose this method. Because computers in the home LAN are usually trusted computers. But this is not always the case. What if you want to access a specific user? This requires the Samba server. We will discuss this method in the second part of this article.
2. Use password protection on Ubuntu to implement LAN Shared Folders
To achieve this, you must first configure the Samba server. In fact, we have used Samba in the first part of this tutorial, but we didn't emphasize it. Before introducing how to build a Samba server on Ubuntu to implement LAN sharing, you can quickly preview what Samba is.
What is Samba?
Samba is a software package that allows users to share files, documents, and printers over the network, whether on Linux, Windows, or Mac. It is applicable to all mainstream platforms and can run smoothly on all supported systems. The following is an introduction to Wikipedia:
Samba is a free software that re-implements SMB/CIFS network protocols. It was initially developed by Andrew pique. In the third edition, Smaba not only supports accessing and sharing SMB folders and printers through different Windows clients, but also can be integrated into the Windows Server domain as the master Domain Controller (PDC) or domain member. It can also be part of the Active Directory domain.
Install the Samba server on Ubuntu
You can easily install Samba on Ubuntu. Before installation, update the system to install any available updates.
sudo apt-get update && apt-get upgrade
Then follow this command to install samba and a few required software packages:
sudo apt-get install samba samba-common system-config-samba python-glade2 gksu
Once the Samba server is installed, you can configure Samba on the GUI to share files.
------------------------------------ Split line ------------------------------------
How to Use Samba shared file http://www.linuxidc.com/Linux/2014-07/104894.htm in Ubuntu 14.04
VMWare Virtual Machine Ubuntu dual Nic samba access speed doubled http://www.linuxidc.com/Linux/2013-06/85445.htm
Samba File Sharing Server joining Windows Server 2003 domain http://www.linuxidc.com/Linux/2013-06/86391.htm
Samba installation configuration http://www.linuxidc.com/Linux/2013-06/86101.htm
Configuration http://www.linuxidc.com/Linux/2013-01/78390.htm for Samba services in CentOS 6.2
Samba Server installation and configuration http://www.linuxidc.com/Linux/2014-12/110459.htm
Graphic http://www.linuxidc.com/Linux/2013-01/78234.htm for building Win7 + VMware + Fedora18 Samba Server
------------------------------------ Split line ------------------------------------
Samba details: Click here
Samba: Click here
Configure the Samba server on Ubuntu
Open the Samba Configuration tool from dash:
GoPreference-> Server Settings. Although it has been set by default, it may be what you need. But in some cases, you may need to make some changes.
In Server Setting, you can see two tabs: Basic and Security '. The options on the Basic tab are as follows:
- Workgroup-name of the workgroup where the user's computer is located. For example, if you want to connect to a Windows computer, you need to enter the name of the Windows Working Group. In Windows Samba server settings, a unified working group name is set by default. However, if you have different workgroup names, enter the custom workgroup name in this field. (Obtain the Working Group name in Windows 7, right-click the computer icon, and enter properties to view the name of the Working Group in Windows .)
- Description-the name of your computer that other users see. Do not use spaces or network characters.
It is unwise to set the samba server to allow 'guests' to be available. Therefore, you do not need to modify the security settings to keep them as they are.
This is done! You have set up the Samba server, which is not far from the goal of sharing the first folder on the network!
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2015-05/117713p2.htm