Senior Consultant
Odoo – Ubuntu BootcampIntroductionWelcome to this Odoo training session which focuses on installation and administration of Odoo in an Ubuntu environment with virtualization. If you've never installed Odoo, you should find this especially informative. You will need internet access to install files, if you plan to follow along.Install VMWare Player Ubuntu 14.04 and set up virtual machine (VM) in to your VM the first time*To give control to the VM running Ubuntu, simply click inside the terminal screen and begin typing. To regain control of your local machine, use the Ctrl+Alt keys.Very basic Ubuntu commandsNavigate, make and remove directories:cd /lsmkdir [dir]rm -r [dir]Add and switch user accounts:sudo adduser --system --home=/opt/[userdir] --group [user]sudo su – [user] -s /bin/bashexitInstall Github softwaresudo apt-get install gitInstall Odoo source from Github -O- | pythonReboot and updatesudo rebootsudo apt-get updateInstall Putty and begin using it as primary interfacesudo apt-get install openssh-serverifconfig (To determine your VM's IP address)Download Putty.exe: Python librariesDo NOT type this command line manually! Select, copy, open Putty connection, and right-click to paste it. 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-zsisudo apt-get install python-decoratorsudo apt-get install python-pyPdf*Modules decorator and pyPdf need not be separated out from the long list. This was done intentionally to help you follow along with the video and learn trouble-shooting skills.Install Postgres and create usersudo apt-get install postgresqlsudo su - postgrescreateuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoouseracctStart server from command line and test databaseSwitch to odoouseracct and odoo directory then run this command:./openerp-server*To escape back to command prompt, use Ctrl+C. This can also be handy if you are being repeatedly prompted for an unknown system account password and simply want to get back to the prompt to switch user accounts.Install first module: Sales ManagementModify Odoo server's config fileInstall text editor, such as nano (if needed)sudo apt-get install nano* In nano, commands available are shown along the bottom. ^ refers to the Ctrl key.Alter and use config fileFind: sudo find -name openerp-server.confEdit: sudo nano /opt/odoo/odoo/debian/openerp-server.confCopy: sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/Change ownership: sudo chown odoouseracct: /etc/openerp-server.confChange permission: sudo chmod 640 /etc/openerp-server.confAssign config: -openerp-server -c /etc/openerp-server.conf* chmod in brief: First digit is "user", second position is "group", third is "other". Value 0=No access; 1=Execute; 2=Write; 3=Write/Execute; 4=Read Only; 5=Read/Execute; 6=Read/Write; 7=Read/Write/Execute (Full Access). So a setting of "777" would give full access to all users and groups. Our value of "604" gives user RW, group R, and others have no access.Run Odoo on different port./openerp-server --xmlrpc_port=8079Equivalent for config file: xmlrpc-port=8079*If you want to view all available switches for the openerp-server command (and its config file), type:./openerp-server -helpMake Odoo run persistently./openerp-server &Check that Odoo service is running from terminal. This command returns process ID.:sudo ps aux | grep openerpTo stop an instance of Odoo running as a service, use the process ID from the above command to "kill" it:sudo kill [process ID]Make the server auto-bootCreate a start-up scripts stored in etc/init.d directory:sudo nano openerp-server (Paste contents of file Start-Up Shell Script and save.)*Start-Up Shell Script is located in the Addendum of this document on pages 6-9.Set permissions and owner:sudo chmod 755 /etc/init.d/openerp-serversudo chown root: /etc/init.d/openerp-serverManually test script:sudo /etc/init.d/openerp-server [ start | stop | restart ]Add Odoo script to Ubuntu's system startup:sudo update-rc.d openerp-server defaultsMultiprocessing options./openerp-server --workers=[#]*Note: At the video 02:09:16 marker, the openerp-server.conf is modified to create 3 users, but it should be 5.Enable nginxGenerate keyssudo apt-get install nginxsudo mkdir /etc/nginx/sslsudo openssl genrsa - des3 -passout pass:x -out server.pass.key 2048sudo openssl rsa -passin pass:x -in server.pass.key -out server.keysudo rm server.pass.keysudo openssl req -new -key server.key -out server.csrsudo /etc/init.d/nginx restart*FQDN = Fully Qualified Domain NameCreate a new file for your Odoo installation in an nginx server blocksudo nano /etc/nginx/sites-available/odoo.corpFor non-secure site, paste the following into this newly-created file:server {server_name odoo.corp;listen 80;location / {proxy_pass :[port];proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;}}For an SSL site, copy the nginx Shell Script from the Addendum (p9-10) and paste its contents into odoo.corpCopy odoo.corp into sites-enabled directory, remove the default page and restart: For non-secure, copy: sudo cp odoo.corp /etc/nginx/sites-enabled/odoo.corp For secure, create link: sudo ln -s /etc/nginx/sites-available/odoo.corp /etc/nginx/sites-enabled/odoo.corpsudo rm ../sites-enabled/defaultsudo /etc/init.d/nginx restartInstall virtual python environmentssudo apt-get install python-setuptools python-dev build-essentialsudo easy_install –U pipsudo easy_install virtualenvCreate an additional protected environment for running Odoo:sudo virtualenv [env_name]From inside your virtual environment's directory:which pythonsource bin/activatesource bin/deactivateSummaryA point-by- point review of skills learned throughout the video.Thank you for watching. Hopefully you learned a lot about Ubuntu and Odoo installations. We look forward to having you watch other videos from our training series.ADDENDUMStart-Up Shell Script#!/bin/sh### BEGIN INIT INFO# Provides: ? ? ? ? ? ? openerp-server# Required-Start: ? ? ? $remote_fs $syslog# Required-Stop: ? ? ? ?$remote_fs $syslog# Should-Start: ? ? ? ? $network# Should-Stop: ? ? ? ? ?$network# Default-Start: ? ? ? ?2 3 4 5# Default-Stop: ? ? ? ? 0 1 6# Short-Description: ? ?Odoo startup boot script# Description: ? ? ? ? ?Odoo is a complete ERP, CRM and CMS software.### END INIT INFOPATH=/bin:/sbin:/usr/binDAEMON=/opt/odoo/odoo/openerp-serverNAME=openerp-serverDESC=openerp-server# Specify the user name (Default: openerp).USER=odoouseracct# Specify an alternate config file (Default: /etc/openerp-server.conf).CONFIGFILE="/etc/openerp-server.conf"# pidfilePIDFILE=/var/run/$NAME.pid# Additional options that are passed to the Daemon.DAEMON_OPTS="-c $CONFIGFILE"[ -x $DAEMON ] || exit 0[ -f $CONFIGFILE ] || exit 0checkpid() {? ? [ -f $PIDFILE ] || return 1? ? pid=`cat $PIDFILE`? ? [ -d /proc/$pid ] && return 0? ? return 1}case "${1}" in? ? ? ? start)? ? ? ? ? ? ? ? echo -n "Starting ${DESC}: "? ? ? ? ? ? ? ? start-stop-daemon --start --quiet --pidfile ${PIDFILE} ? ? ? --chuid ${USER} --background --make-pidfile ? ? ? ? ? ? ? ? ? ? ? ? --exec ${DAEMON} -- ${DAEMON_OPTS}? ? ? ? ? ? ? ? echo "${NAME}."? ? ? ? ? ? ? ? ;;? ? ? ? stop)? ? ? ? ? ? ? ? echo -n "Stopping ${DESC}: "? ? ? ? ? ? ? ? start-stop-daemon --stop --quiet --pidfile ${PIDFILE} ? ? ? ? ? ? ? ? ? ? ? ? --oknodo? ? ? ? ? ? ? ? echo "${NAME}."? ? ? ? ? ? ? ? ;;? ? ? ? restart|force-reload)? ? ? ? ? ? ? ? echo -n "Restarting ${DESC}: "? ? ? ? ? ? ? ? start-stop-daemon --stop --quiet --pidfile ${PIDFILE} ? ? ? ? ? ? ? ? ? ? ? ? --oknodo? ? ? ? ? ? ? ? sleep 1? ? ? ? ? ? ? ? start-stop-daemon --start --quiet --pidfile ${PIDFILE} ? ? ? ? ? ? ? ? ? ? ? ? --chuid ${USER} --background --make-pidfile ? ? ? ? ? ? ? ? ? ? ? ? --exec ${DAEMON} -- ${DAEMON_OPTS}? ? ? ? ? ? ? ? echo "${NAME}."? ? ? ? ? ? ? ? ;;? ? ? ? *)? ? ? ? ? ? ? ? N=/etc/init.d/${NAME}? ? ? ? ? ? ? ? echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2? ? ? ? ? ? ? ? exit 1? ? ? ? ? ? ? ? ;;esacexit 0nginx Shell Scriptupstream oddo { server 127.0.0.1:8089 weight=1 fail_timeout=300s;}server { listen 443 default; server_name odoo.corp; client_max_body_size 200m; access_log /var/log/nginx/oddo.access.log; error_log /var/log/nginx/oddo.error.log; ssl on; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; keepalive_timeout 60; ssl_ciphers HIGH:!ADH:!MD5; ssl_protocols SSLv3 TLSv1; ssl_prefer_server_ciphers on; proxy_buffers 16 64k; proxy_buffer_size 128k; location / { proxy_pass ; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } location ~* /web/static/ { proxy_cache_valid 200 60m; proxy_buffering on; expires 864000; proxy_pass ; }}server { listen 80; server_name odoo.corp; add_header Strict-Transport-Security max-age=2592000; rewrite ^/.*$ https://$host$request_uri? permanent;} ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- home based independent consultant opportunities
- new home party consultant opportunities
- list of independent consultant opportunities
- become a consultant selling products
- it works consultant finder
- home based independent consultant oppo
- senior secured vs senior unsecured
- deloitte senior consultant salary
- deloitte senior consultant job description
- senior consultant hourly rate
- deloitte advisory senior consultant salary
- deloitte senior consultant pay