This question has been flagged
7 Replies
11145 Views

According to README.md on github, there is an Odoo Debian repository at that URL. Problem is, it does not exist.

I have tried odoo instead of openerp and such changes to the URL, to no avail.

Does the Odoo version 8 Debian repo even exist yet? If not, is it planned to make it available?

Thanks guys.

 

Avatar
Discard

I get a 404 as well. This needs to be addressed. https://github.com/odoo/odoo says there's supposed to be files there...

Best Answer

Save this as odoo-install.sh and run it.  You won't be disappointed.

 

[CODE]

#!/bin/bash

################################################################################

# Script for Installation: ODOO Saas4/Trunk server on Ubuntu 14.04 LTS

# Author: André Schenkels, ICTSTUDIO 2014

#-------------------------------------------------------------------------------

# This script will install ODOO Server on

# clean Ubuntu 14.04 Server

#-------------------------------------------------------------------------------

# USAGE:

#

# odoo-install

#

# EXAMPLE:

# ./odoo-install

#

################################################################################

 

##fixed parameters

#openerp

OE_USER="odoo"

OE_HOME="/opt/$OE_USER"

OE_HOME_EXT="/opt/$OE_USER/$OE_USER-server"

 

#Enter version for checkout "7.0" for version 7.0, "saas-4 and "master" for trunk

OE_VERSION="saas-4"

 

#set the superadmin password

OE_SUPERADMIN="superadminpassword"

OE_CONFIG="$OE_USER-server"

 

#--------------------------------------------------

# Update Server

#--------------------------------------------------

echo -e "\n---- Update Server ----"

sudo apt-get update

sudo apt-get upgrade -y

 

#--------------------------------------------------

# Install PostgreSQL Server

#--------------------------------------------------

echo -e "\n---- Install PostgreSQL Server ----"

sudo apt-get install postgresql -y

       

echo -e "\n---- PostgreSQL $PG_VERSION Settings  ----"

sudo sed -i s/"#listen_addresses = 'localhost'"/"listen_addresses = '*'"/g /etc/postgresql/9.3/main/postgresql.conf

 

echo -e "\n---- Creating the ODOO PostgreSQL User  ----"

sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true

 

#--------------------------------------------------

# Install Dependencies

#--------------------------------------------------

echo -e "\n---- Install tool packages ----"

sudo apt-get install wget subversion git bzr bzrtools python-pip -y

       

echo -e "\n---- Install python packages ----"

sudo apt-get install python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf -y

       

echo -e "\n---- Install python libraries ----"

sudo pip install gdata

       

echo -e "\n---- Create ODOO system user ----"

sudo adduser --system --quiet --shell=/bin/bash --home=$OE_HOME --gecos 'ODOO' --group $OE_USER

 

echo -e "\n---- Create Log directory ----"

sudo mkdir /var/log/$OE_USER

sudo chown $OE_USER:$OE_USER /var/log/$OE_USER

 

#--------------------------------------------------

# Install ODOO

#--------------------------------------------------

echo -e "\n==== Installing ODOO Server ===="

sudo git clone --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/

 

echo -e "\n---- Create custom module directory ----"

sudo su $OE_USER -c "mkdir $OE_HOME/custom"

sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons"

 

echo -e "\n---- Setting permissions on home folder ----"

sudo chown -R $OE_USER:$OE_USER $OE_HOME/*

 

echo -e "* Create server config file"

sudo cp $OE_HOME_EXT/install/openerp-server.conf /etc/$OE_CONFIG.conf

sudo chown $OE_USER:$OE_USER /etc/$OE_CONFIG.conf

sudo chmod 640 /etc/$OE_CONFIG.conf

 

echo -e "* Change server config file"

sudo sed -i s/"db_user = .*"/"db_user = $OE_USER"/g /etc/$OE_CONFIG.conf

sudo sed -i s/"; admin_passwd.*"/"admin_passwd = $OE_SUPERADMIN"/g /etc/$OE_CONFIG.conf

sudo su root -c "echo 'logfile = /var/log/$OE_USER/$OE_CONFIG$1.log' >> /etc/$OE_CONFIG.conf"

sudo su root -c "echo 'addons_path=$OE_HOME_EXT/addons,$OE_HOME/custom/addons' >> /etc/$OE_CONFIG.conf"

 

echo -e "* Create startup file"

sudo su root -c "echo '#!/bin/sh' >> $OE_HOME_EXT/start.sh"

sudo su root -c "echo 'sudo -u $OE_USER $OE_HOME_EXT/openerp-server --config=/etc/$OE_CONFIG.conf' >> $OE_HOME_EXT/start.sh"

sudo chmod 755 $OE_HOME_EXT/start.sh

 

#--------------------------------------------------

# Adding ODOO as a deamon (initscript)

#--------------------------------------------------

 

echo -e "* Create init file"

echo '#!/bin/sh' >> ~/$OE_CONFIG

echo '### BEGIN INIT INFO' >> ~/$OE_CONFIG

echo '# Provides: $OE_CONFIG' >> ~/$OE_CONFIG

echo '# Required-Start: $remote_fs $syslog' >> ~/$OE_CONFIG

echo '# Required-Stop: $remote_fs $syslog' >> ~/$OE_CONFIG

echo '# Should-Start: $network' >> ~/$OE_CONFIG

echo '# Should-Stop: $network' >> ~/$OE_CONFIG

echo '# Default-Start: 2 3 4 5' >> ~/$OE_CONFIG

echo '# Default-Stop: 0 1 6' >> ~/$OE_CONFIG

echo '# Short-Description: Enterprise Business Applications' >> ~/$OE_CONFIG

echo '# Description: ODOO Business Applications' >> ~/$OE_CONFIG

echo '### END INIT INFO' >> ~/$OE_CONFIG

echo 'PATH=/bin:/sbin:/usr/bin' >> ~/$OE_CONFIG

echo "DAEMON=$OE_HOME_EXT/openerp-server" >> ~/$OE_CONFIG

echo "NAME=$OE_CONFIG" >> ~/$OE_CONFIG

echo "DESC=$OE_CONFIG" >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo '# Specify the user name (Default: odoo).' >> ~/$OE_CONFIG

echo "USER=$OE_USER" >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo '# Specify an alternate config file (Default: /etc/openerp-server.conf).' >> ~/$OE_CONFIG

echo "CONFIGFILE=\"/etc/$OE_CONFIG.conf\"" >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo '# pidfile' >> ~/$OE_CONFIG

echo 'PIDFILE=/var/run/$NAME.pid' >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo '# Additional options that are passed to the Daemon.' >> ~/$OE_CONFIG

echo 'DAEMON_OPTS="-c $CONFIGFILE"' >> ~/$OE_CONFIG

echo '[ -x $DAEMON ] || exit 0' >> ~/$OE_CONFIG

echo '[ -f $CONFIGFILE ] || exit 0' >> ~/$OE_CONFIG

echo 'checkpid() {' >> ~/$OE_CONFIG

echo '[ -f $PIDFILE ] || return 1' >> ~/$OE_CONFIG

echo 'pid=`cat $PIDFILE`' >> ~/$OE_CONFIG

echo '[ -d /proc/$pid ] && return 0' >> ~/$OE_CONFIG

echo 'return 1' >> ~/$OE_CONFIG

echo '}' >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo 'case "${1}" in' >> ~/$OE_CONFIG

echo 'start)' >> ~/$OE_CONFIG

echo 'echo -n "Starting ${DESC}: "' >> ~/$OE_CONFIG

echo 'start-stop-daemon --start --quiet --pidfile ${PIDFILE} \' >> ~/$OE_CONFIG

echo '--chuid ${USER} --background --make-pidfile \' >> ~/$OE_CONFIG

echo '--exec ${DAEMON} -- ${DAEMON_OPTS}' >> ~/$OE_CONFIG

echo 'echo "${NAME}."' >> ~/$OE_CONFIG

echo ';;' >> ~/$OE_CONFIG

echo 'stop)' >> ~/$OE_CONFIG

echo 'echo -n "Stopping ${DESC}: "' >> ~/$OE_CONFIG

echo 'start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \' >> ~/$OE_CONFIG

echo '--oknodo' >> ~/$OE_CONFIG

echo 'echo "${NAME}."' >> ~/$OE_CONFIG

echo ';;' >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo 'restart|force-reload)' >> ~/$OE_CONFIG

echo 'echo -n "Restarting ${DESC}: "' >> ~/$OE_CONFIG

echo 'start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \' >> ~/$OE_CONFIG

echo '--oknodo' >> ~/$OE_CONFIG

echo 'sleep 1' >> ~/$OE_CONFIG

echo 'start-stop-daemon --start --quiet --pidfile ${PIDFILE} \' >> ~/$OE_CONFIG

echo '--chuid ${USER} --background --make-pidfile \' >> ~/$OE_CONFIG

echo '--exec ${DAEMON} -- ${DAEMON_OPTS}' >> ~/$OE_CONFIG

echo 'echo "${NAME}."' >> ~/$OE_CONFIG

echo ';;' >> ~/$OE_CONFIG

echo '*)' >> ~/$OE_CONFIG

echo 'N=/etc/init.d/${NAME}' >> ~/$OE_CONFIG

echo 'echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2' >> ~/$OE_CONFIG

echo 'exit 1' >> ~/$OE_CONFIG

echo ';;' >> ~/$OE_CONFIG

echo '' >> ~/$OE_CONFIG

echo 'esac' >> ~/$OE_CONFIG

echo 'exit 0' >> ~/$OE_CONFIG

 

echo -e "* Security Init File"

sudo mv ~/$OE_CONFIG /etc/init.d/$OE_CONFIG

sudo chmod 755 /etc/init.d/$OE_CONFIG

sudo chown root: /etc/init.d/$OE_CONFIG

 

echo -e "* Start ODOO on Startup"

sudo update-rc.d $OE_CONFIG defaults

 

echo "Done! The ODOO server can be started with /etc/init.d/$OE_CONFIG"

[/CODE]

Avatar
Discard

this looks like the script by Andre Schenkels... I ran it some days ago and the server didn't start. I think the trouble lies somewhere in the 3rd part "# Adding ODOO as a deamon (initscript)". I got it running when I only went to point the cloning is done. Now I can at least start manually by sudo su odoo & python /opt/odoo/odoo-server/openerp-server --config=/etc/odoo-server.conf

Best Answer

The move of the nightly builds to Github is in progress.  The old ones on launchpad did stop on 4/17.  New ones are supposed to show up on Github "soon".  You can find the offical info on the transition status in the wiki on Github.  I don't have karma to post links but you can get there by going to the odoo page on Github, clicking on the odoo subsection, clicking on "wiki" in the right margin, and then clicking on the article titles "GitHub Transition summary page."

Avatar
Discard
Best Answer

Hello, I have tried to install odoo from ubuntu repositories following odoo recommandations :

To install the Debian/Ubuntu package, add the following line to your /etc/apt/sources.list:

deb http://nightly.odoo.com/8.0/nightly/deb/ ./

And type:

sudo apt-get update sudo apt-get install openerp

 

when I sudo apt-get update, I goet the message :

Err http://nightly.odoo.com ./ Packages                                                              
  404  Not Found

Any idea what the problem is ?

 

Thanks a lot

Avatar
Discard
Best Answer

Thank you Kevin Sawyer, your script is working. But in the long run a proper distribution of deb-files are a better solution.

Avatar
Discard
Author Best Answer

Kevin,

Thanks for that. The script is good in that it installs all those dependencies as Debian packages. It does not, however, install odoo itself as a Debian package. That is fine for a test system, but it is a problem for a production system from a sysadmin point of view. Because, how does one patch that? By running the git clone etc part again? You miss all the good things about the packaging system, which allows you to keep a system consistent and reasonably secure with the minimum of effort. What if a newly cloned version needs a higher version of Python? Things stop working. You get no warning because there is no metadata warning you of the new dependencies.

Martin, I agree. That is a problem.

Now I don't want to sound harsh. I think Odoo is the best thing that has happened in its part of the world since at least the days of the IBM mainframes. However, for an open source project, the user base is everything. And users want to trust the project. And you don't trust a project that looks poorly maintained. It is very unfortunate that all the great effort put into building great software can be jeopardized just at the end of the chain, in the packaging.

Please Odoo guys, fix the Debian packages and keep them well maintained. For little effort, you will gain loyal, knowledgeable, influential users that will buy support contracts and take the word out there.

 

Avatar
Discard

I agree 100%. A proper Debian package is irreplaceable. I hope and assume, that nightly builds of .debs will be available when v8 is officially released. Right?

some people would disagree. You can update this system with github. And some people would even prefer that from a 'regular' installation because you have more controll about when to update and what to update

Best Answer

This is what you are looking for :  http://nightly.openerp.com/trunk/nightly/deb/

Note that it has not been updated since Apr 17  !!!!  Nightly Builds ... Stale?

 

 

Avatar
Discard