The following article is a guide for Ubuntu Operating System.
sudo add-apt-repository universe
sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ xenial main"
sudo apt-get update
sudo apt-get upgrade -y
- Install Python 3.6
sudo apt install python3.6-dev python3.6-venv
python3.6 --version (check version)
- Install Python 3.7
sudo apt install python3.7-dev python3.7-venv
python3.7 --version (check version)
- Install Python 3.8
sudo apt install python3.8-dev python3.8-venv
python3.8 --version (check version)
- Install Python 3.9
sudo apt install python3.9-dev python3.9-venv
python3.9 --version (check version)
-
Create a directory containing python venv by convention located in the Home directory
-
Python 3.6 Environment
python3.6 -m venv ~/python3.6-venv/odoo13
python3.6 -m venv ~/python3.6-venv/odoo14
- Python 3.7 Environment
python3.7 -m venv ~/python3.7-venv/odoo13
python3.7 -m venv ~/python3.7-venv/odoo14
- Python 3.8 Environment
python3.8 -m venv ~/python3.8-venv/odoo13
python3.8 -m venv ~/python3.8-venv/odoo14
- Python 3.9 Environment
python3.9 -m venv ~/python3.9-venv/odoo13
python3.9 -m venv ~/python3.9-venv/odoo14
- Install Git
sudo apt update
sudo apt install git
git --version (check version)
- Connecting to GitHub with SSH
- Go to Home > Ctrl H to show hidden files and find the .ssh folder, inside there are id_rsa and id_rsa.pub files. Note: Do not share the file id_rsa.
- Nodejs, npm, python-pip,...
sudo apt-get install python3 python3-pip python3-venv python-dev python3-dev python3-wheel python-setuptools libxslt-dev libxml2-dev libxslt1-dev libzip-dev zlib1g-dev libjpeg-dev libldap2-dev libssl-dev libsasl2-dev libpq-dev python3-setuptools build-essential wget node-less gdebi -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss
sudo npm install -g npm
sudo -H pip3 install --upgrade pip
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb
wkhtmltopdf --version (check version)
sudo apt-get install postgresql postgresql-server-dev-all -y
sudo su - postgres -c "createuser -s user_dang_nhap_vao_may"
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v5.7/pip/pgadmin4-5.7-py3-none-any.whl
pip3 install pgadmin4-5.7-py3-none-any.whl
sudo apt install curl
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4-desktop
sudo service postgresql start
sudo -u postgres psql
CREATE USER <username> WITH LOGIN SUPERUSER CREATEDB CREATEROLE INHERIT REPLICATION CONNECTION LIMIT -1;
ALTER USER postgres PASSWORD '<password>';
sudo snap install --classic eclipse
sudo apt install default-jre
qx54-hu95-kpd9
git clone <SSH_repository_odoo_link> --depth 1 -b 14.0.
source activate
pip install -r /home/khoa-jocelyn/git-clone/odoo14/requirements.txt
./odoo-bin scaffold <module-name> <folder-path-to-save-module>
git fetch khoa-jocelyn <kéo remote>