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.
You need to share your files in
/media/sam/mypics with your Android phone.
- GNU/Linux machine with internet connections
- Android phone with ES-Explorer installed
Install FTP server and samba file share in your linux machine with login. Access it via your ES Explorer.
- 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/mypicswith 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
samba-serverso 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!