Step:1
sudo apt update
sudo apt -y upgrade
sudo apt autoremove
Step:2 Install python 3.7
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7
Step:3 Install Dependency
sudo apt-get install -y python3-testresources
Step: 4 Install Python pip Tool
sudo python3 get-pip.py
sudo pip3 install --upgrade pip3 setuptools
[ Alternative - Execute if the command above fails.
1) curl https://bootstrap.pypa.io/get-pip.py | python3
2) pip install --upgrade setuptools ]sudo pip3 install ansible
Step:5 Install curl and yarn
sudo apt -y install curl
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt -y update && sudo apt -y install yarn
Step: 6 Install MariaDB 10.4
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://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu $(lsb_release -cs) main"
sudo apt update
sudo apt -y install mariadb-server mariadb-client
When creating
an ERPNext database, you need to enable the barracuda storage engine. So you ned f
first to configure MariaDB configuration my.cnf file.
sudo nano /etc/mysql/my.cnf
Add the following lines at the end of my.cnf 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
[mysql]
default-character-set = utf8mb4
Next, you have to restart MariaDB and enable it to auto start MariaDB at boot time.
sudo systemctl restart mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation
This tool will ask if you want to set
a new password for the MySQL root user and a few security related questions.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Security questions, answer Y at the following prompts:
Remove anonymous users?
Disallow root login remotely?
Remove the test database and access to it?
Reload privilege tables now?
Step: 7 Install Nginx, Node.js and Redis
sudo curl --silent --location https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt -y install nginx nodejs redis-server
sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl start redis-server
sudo systemctl enable redis-server
Step: 8 Install wkhtmltopdf and fonts
sudo apt -y install 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
NOTE - [In Case of permission denied use sudo at the start of the command above]sudo tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C /opt
sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
sudo ln -s /opt/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
Step: 9 Install and Create Virtual Environment
mkdir erpnext
NOTE - [In Case of permission denied use sudo at the start of the command above]cd erpnext/
sudo virtualenv .
Step: 10 Follow the SOP
- Change the branch from version -12 to version-13
- https://erpnexttutor.blogspot.com/2020/01/frappe-erpnext-version-12-setup-master.html
Comments
Post a Comment