Last active
September 2, 2019 22:52
-
-
Save inspiretk/30458c0a3aefcbbc00b529d2284c8af1 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# nano setupodoo.sh | |
# > copy the setupodoo script in details and save it as setupodoo | |
# chmod +x setupodoo.sh | |
# ./setupodoo.sh | |
# STEP 1 | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install python3-pip | |
# INSTALL DEPENDENCIES USING PIP3 | |
pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd | |
# STEP 4 | |
sudo apt-get install -y npm | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
sudo npm install -g less less-plugin-clean-css | |
sudo apt-get install node-less | |
# STEP 5 | |
sudo apt-get install python-software-properties | |
sudo vim /etc/apt/sources.list.d/pgdg.list | |
add a line for the repository | |
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-9.6 | |
# STEP 6 Create Database user for Odoo | |
sudo su postgres | |
cd | |
createuser -s odoo | |
createuser -s ubuntu_user_name | |
exit | |
#STEP 7 Create Odoo user and group | |
sudo adduser --system --home=/opt/odoo --group odoo | |
# STEP 8 Install Gdata | |
cd /opt/odoo | |
sudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz | |
sudo tar zxvf gdata-2.0.18.tar.gz | |
sudo chown -R odoo: gdata-2.0.18 | |
sudo -s | |
cd gdata-2.0.18/ | |
python setup.py install | |
exit | |
# STEP 9 Odoo 11 Download from GitHub | |
cd /opt/odoo | |
sudo apt-get install git | |
sudo su - odoo -s /bin/bash | |
git clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0 --single-branch | |
exit | |
# STEP 10 Create Odoo Log File | |
sudo mkdir /var/log/odoo | |
sudo chown -R odoo:root /var/log/odoo | |
# STEP 11 Edit Odoo configuration file | |
sudo gedit/etc/odoo.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment