Sharing your Linux folders with Android over FTP [ Samba + ES Explorer ] [1/2]

As a kid, I remember setting up file sharing in my local WiFi with my windows machine, and yesterday, I thought of doing the same with my Linux machine and Android phone.
Problem:
You need to share your files in /media/sam/mypics with your Android phone.
Requirements:

  1. GNU/Linux machine with internet connections
  2. Android phone with ES-Explorer installed

Approach:
Install FTP server and samba file share in your linux machine with login. Access it via your ES Explorer.
Steps:

  • Install SAMBA
      You need to setup and install samba in your linux machine. You can get it by
$ sudo apt-get update
$ sudo apt-get install samba
  • Create a samba username and password

You can use your own login name as your FTP username to access the file system, but you need to create a separate samba password to access the same. This is recommended as you need not give your original password to someone who you wish to share your files with. Considering we are making for username sam.

$ sudo smbpasswd -a sam
  • Configure samba so that you can share /media/sam/mypics with the public

The tricky steps are up.

$ sudo nano /etc/samba/smb.conf

Add the following to the end of the file

[mypics]
path = /media/sam/mypics
available = yes
valid users = sam
read only = no
browseable = yes
public = yes
writable = yes
    1. Restart samba-server so that the changes take place
      $ sudo /etc/init.d/samba restart
      $ sudo /etc/init.d/smbd restart
      

Bravo! Your FTP server is up. I will talk about accessing the same via an android phone in the next post. Stay tuned!

Advertisements

One thought on “Sharing your Linux folders with Android over FTP [ Samba + ES Explorer ] [1/2]

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s