linux+ Raspberry Pi 3 Development Summary--Raspberry Pi remote file sharing winows

Source: Internet
Author: User
Tags tmp folder

http://blog.csdn.net/xqf1528399071/article/details/52192134

——————————————————————————————————————————————————————————

In response to the questions raised by Powerdruy, decided to make a big change to this article
Refer to these two text http://man.lupaworld.com/content/linux/Debian_server_setting/smb.html#4.4
Http://www.debianadmin.com/file-server-configuration-in-debian-using-samba.html
This article is only the most basic configuration of samba, that is, the use of Samba to implement the computer to read and write files in the specified folder on the Raspberry Pi, more Samba server content waiting for everyone to dig.
The steps are as follows:
sudo apt-get install Samba
sudo apt-get install Samba-common-bin
After the installation is complete, we find this file in the/ect/samba/folder smb.conf, which is used for the Samba service configuration, opened with the Nano file editor and found it is very complex, it doesn't matter, we just need a simple smb.conf. Rename the smb.conf to Smb.conf.backup first. Then replace the original smb.conf with the following smb.conf

[Global]
      &nbs P; log file =/var/log/samba/log.%m
[tmp]
        comment = Temporary file Space
        path =/tmp
        read only = no
& nbsp       public = yes

When you have finished saving, enter the command:
Sudo/etc/init.d/samba Retsart
This command restarts the Samba service in order for the configuration file that has just been reset to take effect.
At this time to open the computer's network place (to ensure that your computer and Raspberry Pi on the same LAN), you will see the host named Raspberrypi, try to open, found to need a user name and password, but now no matter what type of user name and password are not in, because we have not set it! O (∩_∩) o, let's create the user below.

Since the samba user created needs to be a user that already exists in the system, and the system defaults to two users of root and pi, if you want to use a different user name, create a new chant (assuming we want to create a new user named AAA)
Enter the command:
sudo useradd AAA
The system is now a new user named AAA, but not our samba has not been set yet, don't worry, look at the following

Under the/etc/samba/folder, create a smbpasswd file with the following command:
sudo touch/etc/samba/smbpasswd

Add a user named AAA to Samba: sudo smbpasswd-a AAA
Will let you enter the password, you set one, set up will display: Added user AAA


To get here, and then open the network next door, enter the user name and password just set, then go in, will find a TMP folder, you can freely read and write data in this folder, such as the film, test films, songs, songs, and so on, anyway you understand. Paste a Picture:




Welcome to test, but also hope that there are problems to solve together!

linux+ Raspberry Pi 3 Development Summary--Raspberry Pi remote file sharing winows

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.