Monday, May 4, 2015

Linux and Odoo

Important Linux Commands : - - - - -

               1. See the running process by process name :
                             ps -ax | grep <process name> i.e. openerp

                2. Kill process by process id :
                             sudo kill -9 <process id>
                3. Change The Permission of Folder :
                             sudo chmod -R 777 <Folder Name>

Command 3 to 7 are related to search and install the package:

                 3. aptitude search <library name>

                 4. sudo aptitude <library name> install

                 5. pip install <library name> (takes link and downloads library for install)

                 6. easy_install <library name>

                 7. synaptic

Installation Command Step for Google Chrome:

                 Step 1. sudo apt-get install libxss1 libappindicator1 libindicator7


                  Step 2. wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb


                  Step 3. sudo dpkg -i google-chrome-stable_current_i386.deb


Commands to install PostgreSQL:

1.sudo apt-get install postgresql-client

2.sudo apt-get install postgresql postgresql-contrib

        The installation procedure created a user account called postgres that is associated with the                 default Postgres role. In order to use Postgres, we'll need to log into that account. You can do               that by typing:

3.sudo -i -u postgres

       change the password of database user:
4.psql
1.ALTER USER username WITH PASSWORD 'password';

create new role/user:
2.create user <username>;

list of all user role
3.\du

alter role for super user:
4.alter role <rolename> with superuser;

alter role for create role:
5.alter role <rolename> with createrole;

alter role for create Database:
6.alter role <rolename> with createdb;

Command for help:
7.\h;

exit from psql:
8.\q

                Commands to install Pgadmin3:

              1.sudo apt-get update

              2.sudo apt-get install pgadmin3


Odoo Installation:

Download Odoo from  this link "https://nightly.odoo.com/"

link 1. : http://www.theopensourcerer.com/2014/09/how-to-install-openerp-odoo-8-on-ubuntu-server-14-04-lts/

link 2. : http://www.serpentcs.com/serpentcs-openerp-v7-v8odoo-installation-ubuntu

        Step 1.sudo apt-get update

        Step 2. sudo apt-get dist-upgrade (not compulsory)

        Step 3. Install the necessary Python libraries for the server
sudo apt-get install python-cups python-dateutil python-decorator python-docutils python-feedparser python-gdata python-geoip python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests python-simplejson python-tz python-unicodecsv python-unittest2 python-vatnumber python-vobject python-werkzeug python-xlwt python-yaml wkhtmltopdf


Step 4. sudo python setup.py install


After Starting Odoo Server Generally following error comes :

       OperationalError: FATAL:  Peer authentication failed for user "odoo8" 

      Solution :
               
                     Step1.
                               open file (/etc/postgresql/9.1/main/pg_hba.conf)
                               with command :
                                             sudo gedit pg_hba.conf
                               give password of the system if it ask.

                               Then,replace follwing line

                                      local   all             postgres                                peer

                               by as,

                                     local    all             postgres                                md5
                                     local    all             odoo8                                    md5

                               and save file and close the file.

                  Step2.
                              Now you should reload the server configuration
                              changes and connect pgAdmin III to your
                              PostgreSQL database server.

                             by command,
                                           sudo /etc/init.d/postgresql reload


Click for Odoo Website 

1 comment: