{"id":18771572,"url":"https://github.com/anicetkeric/odoo_v10","last_synced_at":"2026-04-28T17:32:49.524Z","repository":{"id":114565553,"uuid":"96155220","full_name":"anicetkeric/odoo_v10","owner":"anicetkeric","description":"Odoo 10 on Ubuntu 16.04","archived":false,"fork":false,"pushed_at":"2017-09-28T07:48:15.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-29T08:11:47.301Z","etag":null,"topics":["odoo-10","postgresql","shell-script"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anicetkeric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-03T22:33:10.000Z","updated_at":"2019-11-18T13:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ef0a257-c8eb-46f0-b914-4fc91987d734","html_url":"https://github.com/anicetkeric/odoo_v10","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2Fodoo_v10","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2Fodoo_v10/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2Fodoo_v10/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2Fodoo_v10/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicetkeric","download_url":"https://codeload.github.com/anicetkeric/odoo_v10/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239679477,"owners_count":19679490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["odoo-10","postgresql","shell-script"],"created_at":"2024-11-07T19:25:22.925Z","updated_at":"2025-12-12T11:30:37.838Z","avatar_url":"https://github.com/anicetkeric.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odoo_v10\nOdoo 10 on Ubuntu 16.04\n\n## Prerequisites\nBefore starting, update your system:\n\n`sudo apt-get update`\n\n`sudo apt-get dist-upgrade`\n\nInstall Git in order to clone Odoo source code from Github\n\n`sudo apt-get install git`\n\nNext, install the necessary dependencies for Odoo:\n\n`sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-pypdf python-decorator python-requests -y`\n\nInstall the most recent version of gdata:\n\n`sudo apt-get install python-pip -y`\n\n`sudo pip install gdata --upgrade`\n\n`sudo pip install passlib`\n\n## Create a system user for Odoo application\ncreate a new Odoo system user to run its processes\n\n`sudo adduser --system --home=/opt/odoo --group odoo`\n\nYou can view the user and group\n\n`sudo cat /etc/passwd`\n\n# Install \u0026 Prepare Postgres\n\nWe install postgresql databank, this will probably be version 9.2. Make sure that you have not installed postgresql already, if so you can either uninstall it (recommended) or skip this step.\n\n`sudo apt-get install postgresql -y`\n\n`sudo apt-get install postgresql-9.5 -y`\n\nAfter installing Postgres check the version of the Postgres using\n\n`psql --version`\n\nNow depending on the version you need to install postgresql-server-dev, if your version is 9.5.3 then 9.5 and if 9.4.0 then 9.4, run the below command\n\n`sudo apt-get install postgresql-server-dev-9.5`\n\nThis will automatically create a (system) user named postgres. Now we log in as that user and create a database user.\n\n`sudo su - postgres`\n\n`createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo`\n\nYou will be prompted for a password, write this password down. We will now go back to root user, type \n\n`exit`\n\nyou can created superuser without\n\n`createuser -s odoo`\n\nNote: Create user parameter:-s means creating super user\n\n## Postgresql Management\n\nChanging password of postgresql user\n\nAfter su as postgres user, run command in psql as following\n\n`ALTER USER odoo WITH PASSWORD 'new_password';`\n\nList databases and tables in postgresql\n\n`psql`\n\n`\\du =\u003e List all users`\n\n`\\l =\u003e List all databases`\n\n`\\dt =\u003e List all tables in current database`\n\n`\\connect =\u003e Change current database`\n\n`\\q=\u003e Quit psql mode`\n\n\nEnable remote connect to postgresql\n\nEdit postgresql.conf to listen the port from all interfaces\n\n`cd /etc/postgresql/9.5/main/`\n\n`nano postgresql.conf`\n\nChange the line that contains listen_addresses=’localhost’ to listen_addresses=’*’\nEdit pg_hba.conf to allow remote connection from other servers\n\n`nano pg_hba.conf`\n\nAdd the following line,\n`host all all 0.0.0.0/0 md5`\n\nNote: To allow IPv6 or all IPs, use\n\n`host all all ::0/0 md5 #ipv6 range`\n\n`host all all all md5   #all ip`\n\n\ncheck postgresql is running with:\n\n`systemctl status postgresql`\n\nIf PostgreSQL is running, you'll see output that includes the text Active: active (exited).\n\nIf you see Active: inactive (dead), start the PostgreSQL service using the following command:\n\n`systemctl start postgresql`\n\nPostgreSQL also needs to be enabled to start on reboot. Do that with this command:\n\n`systemctl enable postgresql`\n\n# Install Odoo\n\n### Clone the Odoo files onto your server\n`git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch`\n\n\n### Install wkhtmltopdf\n\nwkhtmltopdf is required in odoo to print the reports. depending on your OS bit you can install wkhtmltopdf for odoo 10.\n\nHow do I check if I have a 32-bit or a 64-bit OS?\n\n`uname -i`\n\nDownload the recommended version of wkhtmltopdf for Odoo server. In this example, we use 0.12.1. See the Odoo repository for an up-to-date list of compatible versions\n\n`sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb`\n\nInstall the package using dpkg\n\n`sudo dpkg -i  wkhtmltox-0.12.1_linux-wheezy-amd64.deb`\n\n### Install NPM and LESS processor\n\n`apt-get install npm`\n\n`ln -s /usr/bin/nodejs /usr/bin/node`\n\n`npm install -g less less-plugin-clean-css`\n\n# Odoo Server Configuration\n\n### Change ownership to odoo user\n\n`sudo chown -R odoo: *`\n\n### Setup configuration file\n\nCopy odoo.conf to /etc directory:\n\n`sudo cp /opt/odoo/odoo/debian/odoo.conf /etc/odoo-server.conf`\n\n`sudo chown odoo: /etc/odoo-server.conf`\n\n`sudo chmod 640 /etc/odoo-server.conf`\n\n Modify the configuration file\n\n```xml\n[options]\nadmin_passwd = admin\ndb_host = False \ndb_port = False\ndb_user = odoo\ndb_password = FALSE\naddons_path = /opt/odoo/addons\n;Uncomment the following line to enable a custom log\nlogfile = /var/log/odoo/odoo-server.log\nxmlrpc_port = 8069\n```\n\n### We create a log file:\n\n`sudo mkdir /var/log/odoo`\n\n`sudo chown odoo:root /var/log/odoo`\n\n`cd /var/log/odoo`\n\n`sudo touch odoo-server.log`\n\n# init script\n\nCreate a systemd unit called odoo-server to allow your application to behave as a service.\n\n`cd /lib/systemd/system/`\n\n`sudo wget https://raw.githubusercontent.com/anicetkeric/odoo_v10/master/odoo-server.sh`\n\n`sudo cp odoo-server.sh /lib/systemd/system/odoo-server.service`\n\nChange the odoo-server service permissions and ownership so only root can write to it, while the odoo user will only be able to read and execute it.\n\n`sudo chmod 755 /lib/systemd/system/odoo-server.service`\n\n`sudo chown root: /lib/systemd/system/odoo-server.service`\n\nEnable Odoo instances to start on boot:\n\n`sudo systemctl enable odoo-server`\n\nstart the Odoo server:\n\n`sudo systemctl start odoo-server`\n\nreload the systemd process\n\n`sudo systemctl daemon-reload`\n\nreboot your server and check for the odoo service using:\n\n`netstat -nlt | grep 8069`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicetkeric%2Fodoo_v10","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicetkeric%2Fodoo_v10","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicetkeric%2Fodoo_v10/lists"}