<\/span><\/h2>\n\n\n\nFirst of all, we need to log in to our Debian 12 VPS through SSH:<\/p>\n\n\n\n
ssh root@IP_Address -p Port_number<\/pre>\n\n\n\nYou will need to substitute ‘IP_Address’ and ‘Port_number’ with your server’s corresponding IP address and SSH port number. Furthermore, substitute ‘root’ with the username of the system user with sudo privileges.<\/p>\n\n\n\n
Once logged in, we can run this command<\/p>\n\n\n\n
# lsb_release -a<\/pre>\n\n\n\nYou should see this as the output:<\/p>\n\n\n\n
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU\/Linux 12 (bookworm)
Release: 12
Codename: bookworm<\/pre>\n\n\n\nTo make sure the system packages are up to date, let’s run this command:<\/p>\n\n\n\n
# apt update -y<\/pre>\n\n\n\n<\/span>Step 2. Install Dependencies<\/span><\/h2>\n\n\n\nBefore starting, we will install the dependencies on our Debian 12 system. Let’s execute the command below to proceed.<\/p>\n\n\n\n
apt install build-essential wget git python3-pip python3-dev python3-venv \\\n python3-wheel libfreetype6-dev libxml2-dev libzip-dev libsasl2-dev \\\n python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev \\\n libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev<\/pre>\n\n\n\n<\/span>Step 3. Create a System User<\/span><\/h2>\n\n\n\nAfter installing the dependencies, we will now create a new system user and grant it with sudo privileges. We will also use this user to complete this installation. In this tutorial, we will create a new system user called ‘odoo’, you can choose any username you like and make sure it matches with the PostgreSQL user we will create in the next step.<\/p>\n\n\n\n
adduser \\\n --system \\\n --shell \/bin\/bash \\\n --gecos 'Odoo user' \\\n --group \\\n --home \/opt\/odoo \\\nodoo<\/pre>\n\n\n\n