Step 1: Initial Setup

1.1. Update and Upgrade Packages

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.

1.2. Create a New User

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.

Step 2: Install Prerequisites

2.1. Install Git

sudo apt-get install git -y

Git is required for version control and to clone repositories.

2.2. Install Python and Development Tools

sudo apt-get install python3.12-dev -y

Install Python 3.12 and its development tools.

2.3. Install Python Virtual Environment

sudo apt-get install python3.12-venv -y

Set up a virtual environment for Python 3.12.

2.4. Install Common Software Properties

sudo apt-get install software-properties-common -y

Install the necessary software properties.