I want to cross compile vsftpd for my ARM target board?
vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution.
download vsftpd
cross compile vsftpd
# tar zxvf vsftpd-2.0.5.tar.gz
#cd vsftpd-2.0.5
#vim Makefile
Edit CC = arm-linux-gcc
#make
Now starts getting errors;
/lib/libcap.so.1: could not read symbols
means it can not find libcap shared library.
use
#which libcap
and Edit vsf_findlibs.sh, shield “locate_library /lib/libcap.so.1 && echo "/lib/libcap.so.1";”,
substitute with the path from #which libcap instead of /lib/libcap.so.1
now
#make clean;make
and done;
Next one more hurdle,
vsftpd server and vsftpd.conf configure file will be created.
#cp vsftpd /path/to/target/filesystem/usr/sbin/
#cp vsftpd.conf /etc/
Run vsftpd in the background.
#/usr/sbin/vsftpd &
[1] 1178 root@192.168.2.149:/etc# 500 OOPS: vsftpd: not configured for standalone, must be started from inetd;
you need to edit /etc/vsftpd.conf, and add listen=YES at the end.
Now run;
# vsftpd &
And you are done with ftp server setup.
Enjoy.
vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution.
download vsftpd
cross compile vsftpd
# tar zxvf vsftpd-2.0.5.tar.gz
#cd vsftpd-2.0.5
#vim Makefile
Edit CC = arm-linux-gcc
#make
Now starts getting errors;
/lib/libcap.so.1: could not read symbols
means it can not find libcap shared library.
use
#which libcap
and Edit vsf_findlibs.sh, shield “locate_library /lib/libcap.so.1 && echo "/lib/libcap.so.1";”,
substitute with the path from #which libcap instead of /lib/libcap.so.1
now
#make clean;make
and done;
Next one more hurdle,
vsftpd server and vsftpd.conf configure file will be created.
#cp vsftpd /path/to/target/filesystem/usr/sbin/
#cp vsftpd.conf /etc/
Run vsftpd in the background.
#/usr/sbin/vsftpd &
[1] 1178 root@192.168.2.149:/etc# 500 OOPS: vsftpd: not configured for standalone, must be started from inetd;
you need to edit /etc/vsftpd.conf, and add listen=YES at the end.
Now run;
# vsftpd &
And you are done with ftp server setup.
Enjoy.
Comments