Created
June 22, 2022 09:53
-
-
Save gomezgleonardob/91e8bef14db5cdd441d6558bdbd16999 to your computer and use it in GitHub Desktop.
Odoo 15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Doas | |
sudo apt install doas | |
#NodeJS | |
14 - curl -s https://deb.nodesource.com/setup_14.x | sudo bash | |
16 - curl -s https://deb.nodesource.com/setup_16.x | sudo bash | |
sudo apt update | |
sudo apt install nodejs -y | |
#Git | |
sudo apt install git | |
git config --global user.name "gomezgleonardob" | |
git config --global user.email "[email protected]" | |
#LLaves SSH | |
ssh-keygen -t ed25519 -C "[email protected]" | |
$ ssh-add ~/.ssh/id_ed25519 | |
$ sudo apt-get install xclip | |
$ xclip -sel clip < ~/.ssh/id_ed25519.pub | |
#Dependencias | |
sudo apt update | |
sudo apt install git python3-pip build-essential wget python3-dev python3-venv \ | |
python3-wheel libfreetype6-dev libxml2-dev libzip-dev libldap2-dev libsasl2-dev \ | |
python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev \ | |
libxslt1-dev libldap2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev \ | |
liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev | |
# User-Odoo | |
sudo useradd -m -d /opt/odoo15 -U -r -s /bin/bash odoo15 | |
# DB - Postgres | |
sudo | |
sudo su - postgres -c "createuser -s odoo15" | |
sudo su - postgres -c "createuser -s odoo15" | |
#wkhtmltopdf | |
sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb | |
sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb | |
#Entorno Virtual | |
sudo su - odoo15 | |
git clone https://www.github.com/odoo/odoo --depth 1 --branch 15.0 /opt/odoo15/odoo | |
cd /opt/odoo15 | |
python3 -m venv odoo-venv | |
source odoo-venv/bin/activate | |
venv-> pip3 install wheel | |
venv-> pip3 install -r odoo/requirements.txt | |
venv-> deactivate | |
#Custom - addon | |
mkdir /opt/odoo15/odoo-custom-addons | |
#Odoo.conf | |
sudo nano /etc/odoo15.conf | |
[options] | |
; This is the password that allows database operations: | |
admin_passwd = my_admin_passwd | |
db_host = False | |
db_port = False | |
db_user = odoo15 | |
db_password = False | |
addons_path = /opt/odoo15/odoo/addons,/opt/odoo15/odoo-custom-addons | |
# Service Odoo | |
sudo nano /etc/systemd/system/odoo15.service | |
[Unit] | |
Description=Odoo15 | |
Requires=postgresql.service | |
After=network.target postgresql.service | |
[Service] | |
Type=simple | |
SyslogIdentifier=odoo15 | |
PermissionsStartOnly=true | |
User=odoo15 | |
Group=odoo15 | |
ExecStart=/opt/odoo15/odoo-venv/bin/python3 /opt/odoo15/odoo/odoo-bin -c /etc/odoo15.conf | |
StandardOutput=journal+console | |
[Install] | |
WantedBy=multi-user.target | |
sudo systemctl daemon-reload | |
sudo systemctl enable --now odoo15 | |
sudo systemctl status odoo15 | |
sudo journalctl -u odoo15 | |
# Editor | |
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \ | |
| gpg --dearmor \ | |
| sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg | |
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \ | |
| sudo tee /etc/apt/sources.list.d/vscodium.list | |
sudo apt update && sudo apt install codium | |
# Plugins | |
Odoo Snippets | |
Python | |
Black |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment