Prepare system
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-minimal
Make SWAP
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Make SWAP permanent
Edit fstab:
/swapfile none swap sw 0 0
If RAM < 1G
add line to /etc/sysctl.conf
vm.overcommit_memory=1
Create user with sudoer rights
adduser <username>
usermod -aG sudo <username>
Run commands as user from user home dir
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --develop
bench init frappe-bench && cd frappe-bench
bench get-app erpnext https://github.com/frappe/erpnext
bench new-site site1.local
bench --site site1.local install-app erpnext
bench start
Optionaly add developer mode before starting bench
site_config.json
"developer_mode":1