Install dependencies for build
sudo apt install git wget nodejs npm python3 build-essential libzip-dev python3-dev libxslt1-dev python3-pip libldap2-dev python3-wheel libsasl2-dev python3-venv python3-setuptools node-less libjpeg-dev xfonts-75dpi xfonts-base libpq-dev libffi-dev fontconfig
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository " deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl start docker
docker run --name pg_latest -e POSTGRES_PASSWORD=odoo16 -e POSTGRES_USER=odoo16 -p 5432:5432 --restart=always -d postgres
sudo mv ~/Downloads/home/odoo-16.0.zip
sudo chown -R odoo:odoo /opt/odoo/
sudo su - odoo
python3 -m venv venv
source venv/bin/activate
pip3 install wheel
pip3 install -r requirements.txt
[options]
admin_passwd = somepass
db_user = odoo16
db_pass = odoo16
addons_path = addons
log_level = debug