Linux development environment build and use Samba with--ubuntu software prerequisites

Source: Internet
Author: User

If we are doing the corresponding development in the Ubuntu environment, sometimes we need to share the program we write to others, or copy it for backup. We are used to copy the U disk, if you need to copy frequently, this will not be very convenient. Here's a better way to do this: share through the Samba server .


Samba is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of servers and client programs.


The samba server has a bridge between the two different operating systems, enabling communication between the Linux system and the Windows system. With the Samba service under the Linux operating system, Windows hosts can access the shared files under Linux , providing great convenience for a wide range of Linux enthusiasts.


First, we need to install Samba in the Ubuntu environment.


Install the command as follows:

sudo apt-get install samba Smbfs smbclient System-config-samba

Samba: Samba core component.
smbfs: A file system that supports the SMB/CIFS protocol.
smbclient: Samba client, accessing other machines.
System-config-samba: Graphical interface Configuration tool.



The appropriate configuration for Samba is done through the graphical interface:

1) Add user










2) set up the Linux shared directory and its permissions



















3. Test use

1) If a Windows host wants to access Ubuntu's shared directory, the network of both systems must be able to be flat, otherwise, inaccessible, for Ubuntu to flat Windows IP:



2) Get the Ubuntu IP, knocking at the terminal: Ifconfig.



3) access to the Samba shared directory, operating in the Windows Host: Start-up and run-->\\10.220.x.x (Ubuntu IP) \share (share name):



4) Enter user name and password:


5) Enter the shared directory:



Map Network drives

Later access to Ubuntu this shared directory, all in the Windows host operation: Start-up run-->\\10.220.x.x (Ubuntu IP) \share (share name), this will be very troublesome. Here's a good way to do this: Map Network drives .









After we open the computer directly, you can see the shared directory, directly open it ( provided that Ubuntu has been turned on ). If we don't want to use it, we can also disconnect a network drive:


Samba for Linux development environment to build and use--ubuntu software prerequisites

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.