How to install ERPNext

ERPNext is an ERP tools web based  with lot of features (accounting, stock, project,…)

Before start the installation

Check your ip address

$ ifconfig

Make an update / upgrade

$ sudo apt-get update

$ sudo apt-get upgrade

Installation

Install the requirement for python

$ sudo apt-get install python-minimal

$ sudo apt-get install build-essential python-setuptools

Download the easy installation script

$ wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

Run the script

$ sudo python install.py –production

How to run the site in HTTPS, with let’s encrypt certificate

Log as frappe user

$ sudo su root

$ sudo su – frappe

Go to folder sites

$ cd frappe-bench/sites

$ mv site1.local erp.drawde.net

Modify

$ nano erp.drawde.net/site_config.json

$ cd ..

$ bench config dns_multitenant on

$ sudo -H bench setup lets-encrypt erp.drawde.net

Error to solved

When you go to the help on ERPNext, you have this error:

To avoid this, you need to migrate the bench framework. With this command:

$ bench –site erp.drawde.net migrate

 

For more details:

https://erpnext.org/

 

How to quickly install Elasticsearch on Ubuntu server

This guide contained a quick reference on how to install Elastic search on ubuntu server 16.04 via deb package.

Download the package via wget command (click here for the last version):

 $ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.deb

Then unpackage the deb file:

$ sudo dpkg -i elasticsearch-5.2.2.deb

The command to set as startup:

$ sudo update-rc.d elasticsearch defaults 95 10

 And the usefull startup command:

$ sudo -i service elasticsearch start
$ sudo -i service elasticsearch stop

Now start your browser to check if Elasticsearch running (default port is 9200) :

The Debian package places config files, logs, and the data directory in the appropriate locations for a Debian-based system:

Type Description Default Location Setting
home Elasticsearch home directory or $ES_HOME /usr/share/elasticsearch
bin Binary scripts including elasticsearch to start a node and elasticsearch-pluginto install plugins /usr/share/elasticsearch/bin
conf Configuration files including elasticsearch.yml /etc/elasticsearch path.conf
conf Environment variables including heap size, file descriptors. /etc/default/elasticsearch
data The location of the data files of each index / shard allocated on the node. Can hold multiple locations. /var/lib/elasticsearch path.data
logs Log files location. /var/log/elasticsearch path.logs
plugins Plugin files location. Each plugin will be contained in a subdirectory. /usr/share/elasticsearch/plugins
repo Shared file system repository locations. Can hold multiple locations. A file system repository can be placed in to any subdirectory of any directory specified here. Not configured path.repo
script Location of script files. /etc/elasticsearch/scripts path.scripts