Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:sop:samba_sharing_for_raspberry_pi [2015/05/14 17:13] (current)
karcot created
Line 1: Line 1:
 +=====File Sharing Using Raspberry Pi=====
 +
 +This wiki tells you how to set up samba server on your RPi board so that the files that are accessible on the RPi are also accessible over the network using an Android smart phone.
 +
 +====Steps====
 +0) Run these commands on your RPi
 +
 +1) Update apt
 +
 +** sudo apt-get update **
 +
 +2) Install samba
 +
 +** sudo apt-get install samba samba-common-bin **
 +
 +3) Add **pi** user to samba so that files can be accessed
 +
 +** sudo smbpasswd -a pi **
 +
 +4) Edit the samba configuration file. But first make a copy of the configuration file
 +
 +** sudo cp /etc/samba/smb.conf /etc/samba/smb_backup.conf **
 +
 +5) Edit the smb.conf file and uncomment the line
 +
 +** #security = user **
 +
 + by deleting the # sign. This allows users access to their home directories.
 +
 +6) To access the files on the devices connected to the RPi over USB, you need to add them to the configuration file. Assume you have a directory mount point for a USB device at **/media/USB**
 +
 +7) Edit /etc/samba/smb.conf file and add the lines at the end
 +
 +**
 +
 +[Media_USB] \\
 +comment = Access USB files here \\
 +Path = /media/USB \\
 +browseable = yes \\
 +writable = yes \\
 +read only = no \\
 +valid users = @users \\
 +**
 +
 +
 +8) This allows the user to access the files on the USB device attached to the RPi
 +
 +9) On your Android device install ES File explorer
 +
 +10) Open ES File Explorer and then change Local to LAN from drop down menu.
 +
 +11) Search for network devices
 +
 +12) When you find the RPi address, touch and hold it to get Edit server.
 +
 +13) Under Edit, uncheck Anonymous and for username and password enter **pi** and **raspberry**.
 +
 +14) That's it! Now you should be able to access the USB device attached to the RPi on your phone.
 +
 +
 +References:
 +
 +http://www.techradar.com/us/news/computing/pc/how-to-stream-files-to-a-smartphone-from-raspberry-pi--1147006/2
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
resources/sop/samba_sharing_for_raspberry_pi.txt ยท Last modified: 2015/05/14 17:13 by karcot
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki