Option
Script
apt-get update
apt-get install build-essential -y
apt-get install python3-dev -y
apt-get install git-core -y
apt-get install libmysqlclient-dev -y
apt-get install default-libmysqlclient-dev -y
apt-get install libmariadbclient-dev-compat -y
apt-get install pkg-config -y
apt-get install python3-setuptools -y
# Set timezone
timedatectl set-timezone 'Asia/Bangkok'
dpkg-reconfigure --frontend noninteractive tzdata
# auto upgrade
apt-get install unattended-upgrades -y
EDITOR='sed -Ei "
s|unattended-upgrades/enable_auto_updates=.+|unattended-upgrades/enable_auto_updates=\"no\"|
"' dpkg-reconfigure -f editor unattended-upgrades
# or this way
# dpkg-reconfigure -plow unattended-upgrades