Skip to content

Instantly share code, notes, and snippets.

View diarmuidcwc's full-sized avatar

Diarmuid Collins diarmuidcwc

View GitHub Profile
@diarmuidcwc
diarmuidcwc / pureftp.sh
Created April 19, 2021 16:47
Get FTP on linux
# Add the install to local.conf:
IMAGE_INSTALL_append = " pure-ftpd"
# Build yocto image and burn image, boot up
# Create an ftp user to allow access. Make the home directory a dir on the volatile filesysten (ie RAM)
useradd -d /var/volatile/tmp/ftp -s /sbin/nologin ftp
# Create a big file:
dd bs=2048 count=204850 < /dev/urandom > /var/volatile/tmp/ftp/tmp.img
# Run ftp allowing anon access https://linux.die.net/man/8/pure-ftpd
pure-ftpd pure-ftpd -A