2013-09-15

Install simple FTP server for OpenElec on Raspberry Pi


Intro


Looking for a quick FTP server to transfer files from the Raspberry Pi running Openelec ?

You can cross-compile vsftpd using a linux computer. It take about 1 hour :
http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/

or you can download it from here :
https://dl.dropboxusercontent.com/u/2052458/blog/vsftpd_for_rpi.tar.gz


Installation

To install it, simply open a SSH prompt on your pi

go to /storage and create an opt directory

mkdir /storage/opt
cd /storage/opt
wget https://dl.dropboxusercontent.com/u/2052458/blog/vsftpd_for_rpi.tar.gz
tar xvfz vsftpd_for_rpi.tar.gz
rm vsftpd_for_rpi.tar.gz

There is only 2 files, you can edit the vsftpd.conf file if you wish to change some settings

Testing

just go to the vsftpd directory and launch it
cd /storage/opt/vsftpd
./vsftpd vsftpd.conf

let's try a connection :
telnet 127.0.0.1 21
HELO
QUIT

Autostart


check if the file /storage/.config/autostart.sh exists
if not, create it
echo "#!/bin/sh" > /storage/.config/autostart.sh && chmod +x /storage/.config/autostart.sh

now add the lien to start vsftpd :
echo "/storage/opt/vsftpd/vsftpd /storage/opt/vsftpd/vsftpd.conf" >> /storage/.config/autostart.sh

No comments:

Post a Comment

Popular posts