Shall I follow this steps
Debian / Ubuntu
Install git
, python
, and redis
sudo apt install git python-dev redis-server
Install MariaDB
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,i386,ppc64el] http://ftp.ubuntu-tw.org/mirror/mariadb/repo/10.3/ubuntu xenial main'
sudo apt-get update
sudo apt-get install mariadb-server-10.3
During this installation you’ll be prompted to set the MySQL root password. If you are not prompted, you’ll have to initialize the MySQL server setup yourself. You can do that by running the command:
mysql_secure_installation
Remember: only run it if you’re not prompted the password during setup.
It is really important that you remember this password, since it’ll be useful later on. You’ll also need the MySQL database development files.
sudo apt-get install libmysqlclient-dev
Now, edit the MariaDB configuration file.
sudo nano /etc/mysql/my.cnf
And add this configuration
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
Now, just restart the mysql service and you are good to go.
sudo service mysql restart
Install Node
We recommend installing node using nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
After nvm is installed, you may have to close your terminal and open another one. Now run the following command to install node.
nvm install 8
Verify the installation, by running:
node -v
# output
v8.11.3
Finally, install yarn
using npm
npm install -g yarn
Install wkhtmltopdf
sudo apt-get install xvfb libfontconfig wkhtmltopdf
Install Bench
Install bench as a non-root user
git clone https://github.com/frappe/bench bench-repo
pip install --user -e bench-repo
Confirm the bench installation by checking version
bench --version
# output
4.1.0
Create your first bench folder.
cd ~
bench init frappe-bench
After the frappe-bench folder is created, change your directory to it and run this command
bench start