Last active
October 4, 2021 08:43
-
-
Save suryastef/b7de3b7da16a93b7203a156c512718b7 to your computer and use it in GitHub Desktop.
Install Odoo ERP platform on Linux Ubuntu
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
| # My recommendation, run these commands inside tmux | |
| apt update && apt install -y tmux | |
| # Set local | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| sudo update-locale LANGUAGE=en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 | |
| sudo update-locale LC_CTYPE=en_US.UTF-8 | |
| # add odoo 10 repository | |
| wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add - | |
| echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list | |
| sudo apt update && sudo apt upgrade -y && \ | |
| sudo apt install -y postgresql odoo python-pip vim curl | |
| # wait and grab a cofee | |
| # install dependencies | |
| pip install phonenumbers num2words simplejson | |
| # install wkhtmltopdf | |
| curl -fsSLO `curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4` | |
| sudo apt install -y ./$(curl -sw "%{filename_effective}" -LO $(curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4)) | |
| sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | |
| sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage | |
| sudo systemctl enable postgresql odoo |
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
| # My recommendation, run these commands inside tmux | |
| apt update && apt install -y tmux | |
| # Set local | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| sudo update-locale LANGUAGE=en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 | |
| sudo update-locale LC_CTYPE=en_US.UTF-8 | |
| # add odoo 12 repository | |
| wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add - | |
| echo "deb http://nightly.odoo.com/12.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list | |
| # add postgresql 10 repository | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" > /etc/apt/sources.list.d/PostgreSQL.list' | |
| sudo apt update && sudo apt upgrade -y && \ | |
| sudo apt install -y postgresql-10 odoo python3-pip vim curl | |
| # wait and grab a cofee | |
| # install dependencies | |
| pip3 install phonenumbers num2words simplejson | |
| # install wkhtmltopdf | |
| curl -fsSLO `curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4` | |
| sudo apt install -y ./$(curl -sw "%{filename_effective}" -LO $(curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4)) | |
| sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | |
| sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage | |
| sudo systemctl enable postgresql odoo |
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
| # My recommendation, run these commands inside tmux | |
| apt update && apt install -y tmux | |
| # Set local | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| sudo update-locale LANGUAGE=en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 | |
| sudo update-locale LC_CTYPE=en_US.UTF-8 | |
| # add odoo 8 repository | |
| wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add - | |
| echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list | |
| sudo apt update && sudo apt upgrade -y && \ | |
| sudo apt install -y postgresql odoo python-pip vim curl | |
| # wait and grab a cofee | |
| # install dependencies | |
| pip install phonenumbers num2words simplejson | |
| # install wkhtmltopdf | |
| curl -fsSLO `curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4` | |
| sudo apt install -y ./$(curl -sw "%{filename_effective}" -LO $(curl -s https://api.github.com/repos/wkhtmltopdf/packaging/releases | grep browser_download_url | grep 'xenial_amd64[.]deb' | head -n 1 | cut -d '"' -f 4)) | |
| sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | |
| sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage | |
| sudo systemctl enable postgresql odoo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment