sudo apt-get update -y
sudo apt-get upgrade -y
Update your package list and upgrade your installed packages to ensure you're starting with the latest versions.
sudo adduser [frappe-user]
sudo usermod -aG sudo [frappe-user]
su [frappe-user]
cd /home/[frappe-user]
Create a new user for running the Frappe Bench.
sudo apt-get install git -y
Git is required for version control and to clone repositories.
sudo apt-get install python3.12-dev -y
Install Python 3.12 and its development tools.
sudo apt-get install python3.12-venv -y
Set up a virtual environment for Python 3.12.
sudo apt-get install software-properties-common -y
Install the necessary software properties.