Skip to content

Commit

Permalink
Draft stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Jan 16, 2016
1 parent 3549d4b commit 7abd29f
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
> make html
> # check warningn and errors in compilation logs
> google-chrome _build/html/index.html
* Make commits, push, create Pull Request
22 changes: 22 additions & 0 deletions docs/ide/emacs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Emacs
=====


Install emacs 24.4+ http://askubuntu.com/questions/437255/how-to-install-emacs-24-4-on-ubuntu

* Open Emacs
* Press Alt-x package-list-packages
* install packages: click i and then x
* some packages require dependencies, that have to be installed via terminal
* flymake
* loccur
* flymake-css
* flymake-jslint
* flymake-python-pyflakes

.. code-block:: shell
sudo pip install flake8
* magit
* js3-mode
6 changes: 6 additions & 0 deletions docs/ide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IDE
===

.. toctree::

emacs
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Contents:
.. toctree::
:maxdepth: 2

install
ide/index


Indices and tables
Expand Down
64 changes: 64 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
Odoo installation
=================


.. code-block:: shell
sudo apt-get update
sudo apt-get install git python-pip htop moreutils tree nginx gimp wmctrl postgresql-server-dev-all
sudo apt-get upgrade
################### Github
# configure ssh keys: https://help.github.com/articles/generating-ssh-keys/
################### Odoo
# download odoo from git:
cd /some/dir/
git clone https://github.com/odoo/odoo.git
# install dependencies:
wget http://nightly.odoo.com/8.0/nightly/deb/odoo_8.0.latest_all.deb
sudo dpkg -i odoo_8.0.latest_all.deb # shows errors -- just ignore them and execute next command:
sudo apt-get -f install
sudo apt-get remove odoo
# install wkhtmltox
cd /usr/local/src
lsb_release -a
uname -i
# check version of your OS and download appropriate package
# http://wkhtmltopdf.org/downloads.html
# e.g.
apt-get install xfonts-base xfonts-75dpi
apt-get -f install
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
dpkg -i wkhtmltox-*.deb
# requirements.txt
cd /path/to/odoo
sudo pip install -r requirements.txt
sudo pip install watchdog
# fix error with jpeg (if you get it)
# uninstall PIL
sudo pip uninstall PIL
# install libjpeg-dev with apt
sudo apt-get install libjpeg-dev
# reinstall pillow
pip install -I pillow
# (from here https://github.com/odoo/odoo/issues/612 )
# fix issue with lessc
# install Less CSS via nodejs according to this instruction:
# https://www.odoo.com/documentation/8.0/setup/install.html
# create postgres user:
sudo su - postgres -c "createuser -s $USER"
# Create new config file if you don't have it yet:
./openerp-server --save
emacs -nw ~/.openerp_serverrc
# set dbfilter = ^%h$
# create different versions of conf file:
cp ~/.openerp_serverrc ~/.openerp_serverrc-9
cp ~/.openerp_serverrc ~/.openerp_serverrc-8

0 comments on commit 7abd29f

Please sign in to comment.