Append the following to the file /etc/environment
:
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
Then, either reboot droplet or run source /etc/environment
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
cp /etc/fstab /etc/fstab.ORIG ## Backup!
echo '/swapfile none swap sw 0 0' >> /etc/fstab
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs
npm i -g pm2
## Run the command generated by:
pm2 startup # Interactive command!
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.6.list
apt-get update && apt-get install -y mongodb-org
systemctl start mongod
systemctl enable mongod
adduser ls # Interactive command!
usermod -aG sudo,www-data ls
su - ls -c ssh-keygen # Interactive Command
apt-get install redis-server redis-tools
systemctl restart redis-server.service
systemctl enable redis-server.service