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