


<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iBCScorp.com &#187; postgresql</title>
	<atom:link href="http://www.ibcscorp.com/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ibcscorp.com</link>
	<description>Internet Business Consulting Services Corporation</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:17:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Updating Sequences automatically in Postgresql</title>
		<link>http://www.ibcscorp.com/database/updating-sequenses-in-postgresql/</link>
		<comments>http://www.ibcscorp.com/database/updating-sequenses-in-postgresql/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 05:34:18 +0000</pubDate>
		<dc:creator>James Cluff</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Postgresql]]></category>
		<category><![CDATA[database conversion]]></category>
		<category><![CDATA[duplicate key value violates unique constraint]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[sequence problems]]></category>
		<category><![CDATA[serial Key problems]]></category>

		<guid isPermaLink="false">http://www.ibcscorp.com/?p=2315</guid>
		<description><![CDATA[Updating Sequences Automatically in Postgresql So about the second or third time you write something from scratch and it is a useful something and you&#8217;re thinking that next time you don&#8217;t want to write it ]]></description>
			<content:encoded><![CDATA[<h1>Updating Sequences Automatically in Postgresql</h1>
<p><a href="http://www.ibcscorp.com/wp-content/uploads/2010/12/postgresql2.png"><img class="alignright size-full wp-image-3549" title="postgresql" src="http://www.ibcscorp.com/wp-content/uploads/2010/12/postgresql2.png" alt="" width="210" height="217" /></a>So about the second or third time you write something from scratch and it is a useful something and you&#8217;re thinking that next time you don&#8217;t want to write it again&#8230; well that&#8217;s a good time to record it somewhere.</p>
<p>So recently we were doing a <strong>data migration project</strong> from version <strong>OpenERP 5.x</strong> to <strong>OpenERP 6.x</strong>.  We were doing this for our own company because <strong>version 6 of OpenERP</strong> hasn&#8217;t been released yet, but we want to use it as beta testers so we can contribute to, and help with development.  With an <strong>OpenERP Publishers Warranty</strong>, this won&#8217;t be an issue for users of <strong>OpenERP</strong>.  It is only an issue for us because we are testing on a non-released version, <strong>version 6.0</strong>.</p>
<p>This issue can exist in any <strong>data conversion process</strong> using a <strong>Microsoft SQL</strong> -  <strong>SQL Server </strong>or <strong>&#8216;Sequel Server&#8217;</strong>, <strong>Oracle</strong>, <strong>IBM DB2</strong>, or <strong>MySQL </strong>and <strong>Postgresql</strong>. During the <strong>data conversion</strong> from one database to another database you often run into <strong>serial key</strong>, or <strong>sequence issues</strong>. OpenERP runs on <strong>Postgresql</strong> so this is written for <strong>Postgresql Sequence</strong> or <strong>Serial Key Issues</strong>.</p>
<p>When you load data into a table the data includes ID&#8217;s from your old database, for example with a user id 100. There may have not been any id&#8217;s in the database you&#8217;re putting the data into so you have to set the sequencer to start at your highest ID value.  So if the highest id value in the table was 100 but your serial key is only 99 for example next time you add a record you will get an error message something like:</p>
<pre>An error has occurred:

ERROR:  <strong>duplicate key value violates unique constraint</strong> "res_users_pkey"</pre>
<p>The fix to this if you have only one is to simply do an alter sequence statement something like:</p>
<pre>alter sequence mytable_seq restart with 100</pre>
<p>However, if you have to do it like 100 times on a big <strong>database integration</strong> or simply want to have it as part of your script that moves data you could use a function to do that.  That function is the one I have written at least three times and the purpose of this post.  I hope it isn&#8217;t a standard function already in there that I don&#8217;t know about, if so, then maybe this post will encourage someone to tell me.  Anyway I am recording it here for my own re-use in the future.</p>
<p>First you must install <strong>plpgsql </strong>in <strong>Linux </strong>you do this like this</p>
<pre>createlang plpgsql database_name</pre>
<p>You can do that from the command line as postgres or sudo as postgres into the database that you want to use plpgsql in.</p>
<p>Then you can create this function</p>
<pre>--drop function update_serial_key(character varying, character varying);
create function update_serial_key(tablename varchar, sequencename varchar)RETURNS integer AS $$

declare
 table_name alias for $1;
 c integer ;
Begin
EXECUTE 'select max(id) from '
|| table_name
 INTO c;

execute 'alter sequence '
||$2
||' restart with '
||c;
return c;
End
$$ LANGUAGE plpgsql;</pre>
<p>Then at the end of your updates to a table, you can update the sequence by calling that function like this:</p>
<pre>select update_serial_key('res_users', 'res_users_id_seq')</pre>
<p>That is select update_serial_key (&#8216;table_name&#8217;,'sequence_name&#8217;)</p>
<p>So in my case at the end of migrating the users data from res_users of <strong>OpenERP 5</strong> to <strong>OpenERP 6</strong>, I run that command and it automatically fixes the <strong>res_users_id_seq</strong> sequence to where it is suppose to be.  This is very handy for large data migration or upgrade projects when you might use it over and over and over again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ibcscorp.com/database/updating-sequenses-in-postgresql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing OpenERP from source as a service</title>
		<link>http://www.ibcscorp.com/application-integration-customization/erp/openerp-2/installing-openerp-from-source-as-a-service/</link>
		<comments>http://www.ibcscorp.com/application-integration-customization/erp/openerp-2/installing-openerp-from-source-as-a-service/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 11:16:37 +0000</pubDate>
		<dc:creator>nuwan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenERP]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[auto-start]]></category>
		<category><![CDATA[deaman]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openerp]]></category>
		<category><![CDATA[openerp-server]]></category>
		<category><![CDATA[openerp-web]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://www.ibcscorp.com/?p=1832</guid>
		<description><![CDATA[Installing OpenERP especially for a new comer would be a little bit difficult at first, not because OpenERP itself is difficult to install, but if you follow the official documentation then probably you have chances ]]></description>
			<content:encoded><![CDATA[<p>Installing OpenERP especially for a new comer would be a little bit difficult at first, not because OpenERP itself is difficult to install, but if you follow the official documentation then probably you have chances to mess things up since the doc is not 100% up-to-date and it is somewhat misleading with all the comments from various users.</p>
<p>Here I am going to guide you how to install OpenERP running as a service. The recent releases of debian based distros has</p>
<p>OpenERP as deb package so one can easily install it with a synaptic package management system, but instead here I am going to show you how to install an OpenERP server and web client from source and then run it as a service.</p>
<address>Server : Ubuntu 10.04 (Lucid Lynx)</address>
<address>OpenERP version : 5.0.14</address>
<address>PostgreSQL version : 8.4</address>
<address>Python version : 2.6</address>
<address></address>
<address></address>
<p>You need administrative (sudo) privilages on the server.</p>
<p>Login to the server as an administrative user (sudo).  We first need to install a PostgreSQL server if it is not already installed.</p>
<pre>$ sudo apt-get install postgresql</pre>
<div id="_mcePaste">Then we need to create a PostgreSQL database user for openerp. For doing this you need to switch to PostgreS user.</div>
<pre>$ sudo su – postgres</pre>
<pre>$ createuser --createdb --username postgres --no-createrole --pwprompt openerp</pre>
<pre>Enter password for new role:</pre>
<pre>Enter it again:</pre>
<pre>Shall the new role be a superuser? (y/n) n</pre>
<pre>$ exit</pre>
<div id="_mcePaste">Now if you try to login to the database as this user, you will get an error.</div>
<pre>$ psql -U openerp -W</pre>
<pre>$ psql: FATAL:  Ident authentication failed for user "openerp"</pre>
<div>To fix this we need to change PostgrSQLl configuration so that it uses ident based authentication instead of password based authentication.</div>
<pre>$ sudo vi /etc/postgresql/8.4/main/pg_hba.conf</pre>
<div id="_mcePaste">change the line</div>
<div id="_mcePaste">#local   all         all                               ident</div>
<div id="_mcePaste">to</div>
<div id="_mcePaste">local   all         all                               md5</div>
<p>then it should be as following</p>
<p><em><span style="color: #808080;"># Database administrative login by UNIX sockets</span></em></p>
<p><em><span style="color: #808080;">local   all         postgres                          ident</span></em></p>
<p><em><span style="color: #808080;"># TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD</span></em></p>
<p><em><span style="color: #808080;"># &#8220;local&#8221; is for Unix domain socket connections only</span></em></p>
<p><em><span style="color: #808080;">local   all         all                               md5</span></em></p>
<p><em><span style="color: #808080;"># IPv4 local connections:</span></em></p>
<p><em><span style="color: #808080;">host    all         all         127.0.0.1/32          md5</span></em></p>
<p><em><span style="color: #808080;"># IPv6 local connections:</span></em></p>
<p><em><span style="color: #808080;">host    all         all         ::1/128               md5</span></em></p>
<p><em><span style="color: #808080;"># IPv6 local connections:</span></em></p>
<p><em><span style="color: #808080;">host    all         all         ::1/128               md5</span></em></p>
<p><em><span style="color: #808080;"><br />
</span></em></p>
<p>Now download OpenERP server and web client to a convenient location. I downloaded them to the OpenERP directory created in my home directory.</p>
<pre>$ mkdir ~/openerp</pre>
<pre>$ cd ~/openerp</pre>
<pre>$ wget  http://www.openerp.com/download/stable/source/openerp-server-5.0.14.tar.gz</pre>
<pre>$ wget http://www.openerp.com/download/stable/source/openerp-web-5.0.14.tar.gz</pre>
<div id="_mcePaste">Extract the server and web archives.</div>
<pre>$ tar zxvf  openerp-server-5.0.14.tar.gz</pre>
<pre>$ tar zxvf openerp-web-5.0.14.tar.gz</pre>
<h2><strong>Installing OpenERP-server</strong></h2>
<div>To install the OpenERP server execute the setup script.</div>
<pre>$ cd ~/openerp/openerp-server-5.0.14</pre>
<pre>$ sudo python setup.py install</pre>
<div>The server is normally installed to /usr/local/lib/python2.6/dist-packages/openerp-server</div>
<p>Now you can run the server in console by executing the command.</p>
<pre>$ openerp-server --db_user=openerp --db_password=&lt;password&gt;</pre>
<h2><strong>Installing openerp-web</strong></h2>
<div id="_mcePaste">First you need to install the required libraries for the openerp-web.</div>
<pre>$ sudo apt-get install  python-psycopg2 python-reportlab python-egenix-mxdatetime python-tz python-pychart python-pydot python-lxml python-vobject python-profiler</pre>
<div id="_mcePaste">Also install python-dev and build-essential if they are not already installed.</div>
<pre>$sudo apt-get install python-dev build-essential</pre>
<pre>$sudo apt-get install python-setuptools</pre>
<div id="_mcePaste">Now change to the lib directory in the extracted openerp-web and run the populate.sh script. This will install all the dependencies required.</div>
<pre>$ cd ~/openerp/openerp-web-5.0.14/lib</pre>
<pre>$ ./populate.sh</pre>
<pre>$ cd ..</pre>
<div id="_mcePaste">Now you can run the web client by executing openerp-web in console.</div>
<pre>$ openerp-web</pre>
<p>You should be getting the following output.</p>
<div id="_mcePaste">[03/Nov/2010:10:11:35] ENGINE Bus STARTING</div>
<div id="_mcePaste">[03/Nov/2010:10:11:35] ENGINE Started monitor thread &#8216;_TimeoutMonitor&#8217;.</div>
<div id="_mcePaste">[03/Nov/2010:10:11:35] ENGINE Started monitor thread &#8216;Autoreloader&#8217;.</div>
<div id="_mcePaste">[03/Nov/2010:10:11:35] ENGINE Serving on 0.0.0.0:8080</div>
<div id="_mcePaste">[03/Nov/2010:10:11:35] ENGINE Bus STARTED</div>
<h2><strong>Running openerp-web as a service</strong></h2>
<div id="_mcePaste">Copy following openerp-web scripts from the installation directory in to specified locations.</div>
<pre>$ sudo cp /usr/local/lib/python2.6/dist-packages/openerp_web-5.0.6-py2.6.egg/scripts/openerp-web /etc/init.d/</pre>
<div id="_mcePaste">(This is the init script used to start/stop openerp-web)</div>
<pre>$sudo cp /usr/local/lib/python2.6/dist-packages/openerp_web-5.0.6-py2.6.egg/config/openerp-web.cfg /etc/</pre>
<div id="_mcePaste">(This is the openerp-web configuration file)</div>
<div id="_mcePaste">Grant execute permission to /etc/init.d/openerp-web</div>
<pre>$sudo chmod +x /etc/init.d/openerp-web</pre>
<div id="_mcePaste">Edit /etc/init.d/openerp-web file. In the file we need to provide the user who runs openerp. First we need to create new system user for this. I named mine as &#8216;openerp&#8217;.</div>
<pre>$ useradd openerp</pre>
<div>( this is the system user for running the server and web-client )</div>
<pre>$ sudo vim /etc/init.d/openerp-web</pre>
<div id="_mcePaste"><em><span style="color: #808080;">PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">DAEMON=/usr/local/bin/openerp-web</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">USER=&#8221;your system username&#8221;</span></em></div>
<p>Next edit /etc/openerp-web.cfg and specify the log files.</p>
<pre>$ sudo gedit /etc/openerp-web.cfg</pre>
<div id="_mcePaste">log.access_file = &#8220;/var/log/openerp-web/access.log&#8221;</div>
<div id="_mcePaste">log.error_file = &#8220;/var/log/openerp-web/error.log&#8221;</div>
<div id="_mcePaste">Lets create the log file directory and grant ownership to openerp user.</div>
<pre>$ sudo mkdir /var/log/openerp-web/</pre>
<pre>$ sudo chown openerp /var/log/openerp-web/</pre>
<div id="_mcePaste">Now run following command to start the OpenERP Web automatically on system startup (Debian/Ubuntu).</div>
<pre>$ sudo update-rc.d openerp-web defaults</pre>
<div id="_mcePaste">Now you can start the daemon like this:</div>
<pre>$ sudo /etc/init.d/openerp-web start</pre>
<h2><strong>Running openerp-server as a service</strong></h2>
<div id="_mcePaste">I could not find an init script for server in installation directory. So lets create a one.</div>
<pre>$ sudo vim /etc/init.d/openerp-server</pre>
<div id="_mcePaste">And enter the following script.</div>
<div id="_mcePaste"><em><span style="color: #808080;">#!/bin/sh</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">### BEGIN INIT INFO</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Provides: openerp-server</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Required-Start: $syslog</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Required-Stop: $syslog</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Should-Start: $network</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Should-Stop: $network</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Default-Start: 2 3 4 5</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Default-Stop: 0 1 6</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Short-Description: Enterprise Resource Management software</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Description: Open ERP is a complete ERP and CRM software.</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">### END INIT INFO</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">DAEMON=/usr/local/bin/openerp-server</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">NAME=openerp-server</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">DESC=openerp-server</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">USER=openerp</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">test -x ${DAEMON} || exit 0</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">set -e</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">case &#8220;${1}&#8221; in</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">start)</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo -n &#8220;Starting ${DESC}: &#8220;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">start-stop-daemon &#8211;start &#8211;quiet &#8211;pidfile /var/run/${NAME}.pid \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;chuid ${USER} &#8211;background &#8211;make-pidfile \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;exec ${DAEMON} &#8212; &#8211;config=/etc/openerp-server.conf</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo &#8220;${NAME}.&#8221;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">;;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">stop)</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo -n &#8220;Stopping ${DESC}: &#8220;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">start-stop-daemon &#8211;stop &#8211;quiet &#8211;pidfile /var/run/${NAME}.pid \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;oknodo</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo &#8220;${NAME}.&#8221;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">;;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">restart|force-reload)</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo -n &#8220;Restarting ${DESC}: &#8220;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">start-stop-daemon &#8211;stop &#8211;quiet &#8211;pidfile /var/run/${NAME}.pid \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;oknodo</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">sleep 1</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">start-stop-daemon &#8211;start &#8211;quiet &#8211;pidfile /var/run/${NAME}.pid \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;chuid ${USER} &#8211;background &#8211;make-pidfile \</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">&#8211;exec ${DAEMON} &#8212; &#8211;config=/etc/openerp-server.conf</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo &#8220;${NAME}.&#8221;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">;;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">*)</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">N=/etc/init.d/${NAME}</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">echo &#8220;Usage: ${NAME} {start|stop|restart|force-reload}&#8221; &gt;&amp;2</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">exit 1</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">;;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">esac</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">exit 0</span></em></div>
<div><em><span style="color: #808080;"><br />
</span></em></div>
<div id="_mcePaste">Grant execute permissions to this script.</div>
<pre>$ sudo chmod +x /etc/init.d/openerp-server</pre>
<div id="_mcePaste">The following will make it run automatically on system startup.</div>
<pre>$ sudo update-rc.d openerp-server defaults</pre>
<div id="_mcePaste">Now we need to create a config file for the server. The server reads the config settings in the file on startup.</div>
<pre>$ sudo vim /etc/openerp-server.conf</pre>
<div id="_mcePaste"><em><span style="color: #808080;">[options]</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Enable the debugging mode (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">verbose = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">debug_mode = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># The file where the server pid will be stored (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">#pidfile = /var/run/openerp.pid</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># The file where the server log will be stored (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">logfile = /var/log/openerp-server.log</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># The unix account on behalf openerp is running.</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">process_user = openerp</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># The IP address on which the server will bind.</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># If empty, it will bind on all interfaces (default empty).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">interface = localhost</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># The TCP port on which the server will listen (default 8069).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">#port = 8070</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Enable debug mode (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">debug_mode = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Launch server over https instead of http (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">secure = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the SMTP server for sending email (default localhost).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">smtp_server = localhost</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the SMTP user for sending email (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">smtp_user = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the SMTP password for sending email (default False).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">smtp_password = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the database name.</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">db_name = False</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the database user name (default None).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">db_user = openerp</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the database password for db_user (default None).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">db_password = &lt;password_for_openerp_user&gt;</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the database host (default localhost).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">db_host = localhost</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the database port (default None).</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">db_port = 5432</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;"># Specify the price accuracy.</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">#price_accuracy =</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">#Specify the addons path</span></em></div>
<div id="_mcePaste"><em><span style="color: #808080;">addons-path = /usr/local/lib/python2.6/dist-packages/openerp-server/addons/</span></em></div>
<div><em><span style="color: #808080;"><br />
</span></em></div>
<div>Lets create the server log file and grant the ownership to OpenERP user.</div>
<pre>$ sudo touch /var/log/openerp-server.log</pre>
<pre>$ sudo chown openerp /var/log/openerp-server.log</pre>
<div>That&#8217;s it. Now you can start the server by executing</div>
<pre>$ sudo /etc/init.d/openerp-server start</pre>
<div>Now from a web browser  navigate to OpenERP. You will get the OpenERP login screen.</div>
<div>http://yourdomain:8080</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ibcscorp.com/application-integration-customization/erp/openerp-2/installing-openerp-from-source-as-a-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iBCScorp.com seeks Linux Administrator</title>
		<link>http://www.ibcscorp.com/openings/ibcscorp-com-seeks-linux-administrator/</link>
		<comments>http://www.ibcscorp.com/openings/ibcscorp-com-seeks-linux-administrator/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 05:21:35 +0000</pubDate>
		<dc:creator>James Cluff</dc:creator>
				<category><![CDATA[Openings]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ibcscorp.com/openings/ibcscorp-com-seeks-linux-administrator/</guid>
		<description><![CDATA[iBCScorp.com is seeking a Linux Systems Administrator for its Battaramulla, Sri Lanka office This persons main responsibility will be to work with and to support staff in Sri Lanka, the US and customers in various ]]></description>
			<content:encoded><![CDATA[<h2><a href="http://www.ibcscorp.com/wp-content/uploads/2010/07/ubuntu.png"><img class="alignnone size-full wp-image-1167" src="http://www.ibcscorp.com/wp-content/uploads/2010/07/ubuntu.png" alt="" width="118" height="27" /></a></h2>
<h2>iBCScorp.com is seeking a <strong>Linux Systems Administrator</strong> for its <strong>Battaramulla, Sri Lanka</strong> office</h2>
<p>This persons main responsibility will be to work with and to support staff in Sri Lanka, the US and customers in various locations.</p>
<h2>Preferred experience for the <strong>Linux Systems Administrator</strong></h2>
<p>This persons should have 2-3 years or more experience in Linux systems administration using one of the popular Linux distributions preferably <span dir="ltr">Ubuntu</span>, RedHat, or Fedora.</p>
<p>This person should have experience maintaining servers and doing most of the following tasks:</p>
<ul>
<li>Creating scripts to manage the server maintenance events.</li>
<li>Creating Maintenance schedules and processes</li>
<li>Setting up monitoring of machines for performance, security and other events</li>
<li>Upgrading servers</li>
<li>DNS Setup and migration</li>
<li>Mail Server setup and maintenance</li>
<li>Setup and maintenance of at least one versioning system, GIT, Bazaar, CVS, SVN, etc.</li>
<li>familiarity with open source tools.</li>
</ul>
<h2><strong>Linux Systems Administration duties<br />
</strong></h2>
<p>We are a development, integration company.  As such this person will be the go to person for all maintenance and administrative related tasks but as a team player should also be willing to learn how to program and work closely with developers to help understand their issues and to help make their jobs easier.</p>
<p>Duties will include such issues as:</p>
<ul>
<li>Setting up a postgresql or mysql database.</li>
<li>Tuning a server to get better performance from a database.</li>
<li>Installing mail servers or configuring mail servers.</li>
<li>Setting up a CMS or e-commerce system like Magento, Spree, Drupal, Joomla, OpenERP, SilverStripe, WordPress, etc.</li>
<li>Helping and supporting developers when they are stuck on administrative related issues.</li>
<li>Setting up and maintaining a Samba Server.</li>
<li>Setting up an Asterisk PBX.</li>
<li>Occasionally post articles related to our work.</li>
<li>be a team player and be willing to help on whatever else needs done be it helping with QA, development or whatever.</li>
</ul>
<h2>Key Characteristics for our <strong>Linux Systems Administrator.</strong></h2>
<p>This person should be someone who likes to learn how things work. They have to be able to solve problems on their own and troubleshoot problems which may not be immediately apparent.</p>
<p>The Linux Systems Administrator must be someone who is willing to take responsibility to solve problems that others have not been able to solve, but also willing to take advise and to work as a team player drawing on experience from his/her comrades.</p>
<p>This Systems Administrator should have good communication skills and listen so as to understand requirements.</p>
<p>The Systems Administrator person should be continually trying to improve his/her skills.</p>
<p>This Linux Administrator should pay close attention to detail and double check his/her work even though the tasks may seem simple or redundant so as not to frustrate production, security or delay things for our staff or customers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ibcscorp.com/openings/ibcscorp-com-seeks-linux-administrator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

