<\/span><\/h2>\n\n\n\nFirst, you will need to log in to your Ubuntu 22.04 VPS via SSH:<\/p>\n\n\n\n
ssh root@IP_Address -p Port_number<\/pre>\n\n\n\nYou will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the system user with sudo privileges.<\/p>\n\n\n\n
You can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n\n\n\n
# lsb_release -a<\/pre>\n\n\n\nIt will return an output like this.<\/p>\n\n\n\n
No LSB modules are available.\nDistributor ID: Ubuntu\nDescription: Ubuntu 22.04 LTS\nRelease: 22.04\nCodename: jammy<\/pre>\n\n\n\nIn this article, we will use ‘root’ used to execute the shell commands. If you want to use your regular user with sudo privileges to run the commands, make sure to append ‘sudo’ in front of the commands.<\/p>\n\n\n\n
<\/span>Step 2: Update the system<\/span><\/h2>\n\n\n\nBefore starting, let’s ensure that all Ubuntu 22.04 packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n
# apt update\n# apt upgrade<\/pre>\n\n\n\n<\/span>Step 3. Create System User<\/span><\/h2>\n\n\n\nIn this step, we are going to create a new system user for our ERPNext installation.<\/p>\n\n\n\n
# useradd -m -d \/opt\/erpnext -U -r -s \/bin\/bash erpnext<\/pre>\n\n\n\nLet’s give sudo privileges to the user.<\/p>\n\n\n\n
# usermod -aG sudo erpnext<\/pre>\n\n\n\n<\/span>Step 4. Install Dependencies<\/span><\/h2>\n\n\n\nSeveral packages will be installed on the system before we can start installing other applications.<\/p>\n\n\n\n
# apt install python3-pip python3-dev python3.10-venv python3-testresources libffi-dev libssl-dev wkhtmltopdf gcc g++ make redis-server -y<\/pre>\n\n\n\n