First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.
apt-get update
Then let’s install ProFTPD and any required packages:
apt-get -y install proftpd
During the install process you’ll be prompted with the following screen:
Select standalone and then Ok to finish the installation.
Let’s edit the configuration file for ProFTPD:
vim /etc/proftpd/proftpd.conf
Change the ServerName to the hostname of your server. In the case below,ftp.thebestfakedomainnameintheworld.com is an example:
ServerName “ftp.thebestfakedomainnameintheworld.com”
To limit users to their home directory uncomment the line that says DefaultRoot:
# Use this to jail all users in their homes
DefaultRoot ~
Exit and save the file with the command :wq .
Restart the ProFTPD service:
service proftpd restart
Then set the ProFTPD service to start at boot:
update-rc.d proftpd defaults