Open the Terminal or use the shortcut key Alt+Ctrl+T
sudo apt-get update
sudo apt-get upgrade
For installing ERPNext please follow the command and to have the prerequisites:
sudo apt-get install -y libmysqlclient-dev
sudo apt-get install libffi-dev libssl-dev
sudo apt-get install -y build-essential
sudo apt-get install -y git
Install Python: Python 3 & 3.6
sudo apt-get install -y python3-setuptools
sudo apt-get install -y python3-pip
sudo apt-get install -y python3.8-dev
- Python is successfully installed. NOTE- INSTALL NODE LATEST VERSION
sudo apt-get install -y nginx
systemctl start nginx
- Enter the password and proceed. It is a system user password.
systemctl enable nginx
sudo apt-get install -y redis-server
- Successfully installed
systemctl start redis-server
- Enter the password and proceed. It is system user password
systemctl enable redis-server
- Successfully enabled
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install gcc g++ make
sudo apt-get update && sudo apt-get install yarn
sudo apt-get install -y libxrender1 libxext6 xfonts-75dpi xfonts-base
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
ls
- Executing these commands makes the package available.
MariaDB 10.2 repository
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.rise.ph/mariadb/repo/10.2/ubuntu bionic main'
sudo apt-get update
sudo apt-get install mariadb-server-10.2
- Please enter Y
- Please enter the password for database root user.Press Enter
- Reconfirm the password.
- MariaDB installed successfully.
After mariadb installed, edit file
my.cnf
at/etc/mysql/my.cnf
sudo nano /etc/mysql/my.cnf
Paste below things in the my.cnf configuration file
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
- Press ctrl+o
- Press Enter
- Press ctrl+x
sudo service mysql restart
- service is restarted
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n latest
sudo apt remove cmdtest
sudo apt remove yarn
sudo npm install -g yarn
git clone https://github.com/frappe/bench bench-repo
ls
- You can check after executing the command the bench-repo is having access permission
sudo apt install python3-pip
pip install -e bench-repo
source .profile
source .bashrc
npm install node-sass
npm install -g sass
bench init --frappe-branch version-13 frappe-bench
cd frappe-bench
bench get-app --branch version-13 erpnext https://github.com/frappe/erpnext
ls
- To check that frappe-bench folder is created or not but not having access permission
- Through this you can check that, after executing the command frappe-bench is accessible.
bench version
- To see the frappe and erpnext installed version
bench new-site cart.com
bench --site cart.com install-app erpnext
cd sites
ls
- You can check the site is created successfully or not
cd ..
- To go back to the previous folder
bench start
0.0.0.0:8000/
- Stop the bench by pressing ctrl+c