Book Image

Raspberry Pi Android Projects

By : Gökhan Kurt
Book Image

Raspberry Pi Android Projects

By: Gökhan Kurt

Overview of this book

Table of Contents (13 chapters)
Raspberry Pi Android Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exchanging files between the Pi and Android


In the second part of this chapter, we will use the Pi as an FTP server to share files between our Android devices or send files to the Pi to view them on a larger screen that you connect to the Pi HDMI port. The FTP server we will use is vsftpd. It is a lightweight FTP server used in many small projects. To install it on our Pi, we use the following command:

sudo apt-get install vsftpd

The preceding command will even start the FTP service.

However, we should make some changes in the configuration of the FTP server to use it effectively. For this purpose, we need to edit the FTP server configuration file using this command:

sudo nano /etc/vsftpd.conf

Find the two lines containing #local_enable=YES and #write_enable=YES and remove the # comment sign at the beginning of these lines before you save and exit. These changes will enable the user pi to login and be able to send files to the Pi. To restart the FTP server, issue this command:

sudo service...