<?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>The Open Sourcerer</title>
	<atom:link href="http://www.theopensourcerer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theopensourcerer.com</link>
	<description>The Magic of Open Source</description>
	<lastBuildDate>Wed, 04 Apr 2012 18:32:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Open Source Software and Security</title>
		<link>http://www.theopensourcerer.com/2012/04/03/open-source-software-and-security/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=open-source-software-and-security</link>
		<comments>http://www.theopensourcerer.com/2012/04/03/open-source-software-and-security/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 21:51:49 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>
		<category><![CDATA[Public Sector]]></category>
		<category><![CDATA[#ukgovOSS]]></category>
		<category><![CDATA[Government]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3185</guid>
		<description><![CDATA[Back in December the UK Government published their Open Source procurement toolkit (in PDF and ODF formats) which is mostly aimed at the public sector procurement officials, but is of general interest too. One document in particular I would like to pick out and quote verbatim (which I can do under the creative-commons inspired open [...]]]></description>
			<content:encoded><![CDATA[<p>Back in December the UK Government published their <a href="https://update.cabinetoffice.gov.uk/resource-library/open-source-procurement-toolkit">Open Source procurement toolkit</a> (in PDF and ODF formats) which is mostly aimed at the public sector procurement officials, but is of general interest too. <a href="https://update.cabinetoffice.gov.uk/sites/default/files/resources/OSS_Toolkit_Security_Note_v1.0.odt">One document in particular</a> I would like to pick out and quote verbatim (which I can do under the creative-commons inspired <a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/">open government license</a>) relates to the myth that the government can&#8217;t use Free Software because of security concerns. This is completely and utterly false. Free Software can be put through the certification processes just like closed software, but for most normal applications formal certification makes little difference one way or another as this is not the way solutions are accredited. So here it is, in their own words:</p>
<blockquote>
<h1>Open Source Software and Security</h1>
<p>December 2011<br />
This note, developed in consultation with CESG, highlights some of the key security considerations for the use of open source software in Government, and their implications for procurement practice. It focuses on dispelling common security myths about open source software which prevent a level playing field for its evaluation and use in Government. It is published in recognition that a wider audience wish to understand the UK Government’s position on open source software and security. Public sector customers can obtain further information from CESG in GPG38.</p>
<h2>1. Open source, as a category, is no more or less secure than closed proprietary software.</h2>
<p>All software, including open source and closed proprietary, will have vulnerabilities. Individual software products, regardless of category, will have strengths and weaknesses in security characteristics such as provenance, quality, support, and vulnerability management. Given the range of vulnerabilities and diversity of exploits, on balance, neither category is considered more or less secure than the other.</p>
<h2>2. Therefore, open source software cannot be excluded from an options analysis for Government IT.</h2>
<p>Given that no one type of software is inherently more secure than another, neither open source nor closed proprietary software should be excluded from an options analysis for security reasons. It is Government policy for open source software to be evaluated in an options analysis, and for suppliers to provide appropriately detailed evidence of the reasoning behind their selection. It is entirely possible that an open source option is not selected for valid reasons, such as insufficient functional fit, inability to meet performance requirements, or higher cost of ownership due to more expensive security controls. It is important that the same selection criteria are applied to all options. It is also important that requirements are not exaggerated, unnecessarily inflating costs.</p>
<h2>3. CESG does not accredit software products. Departments accredit their own ICT solutions.</h2>
<p>It is a myth that some software products are “accredited” for use in Government. This is a misunderstanding of the security framework and accreditation process. Departmental accreditation of their own IT solutions is a sophisticated and rigorous process encompassing business benefit, threat and risk assessment, hardware, software, communications, and human factors. CESG does operate assurance schemes through which security enforcing products, both open source and closed proprietary, can be evaluated and certified. Such certification assures the public sector that security enforcing products, such as firewalls and cryptography tools, can mitigate various risks to its information. The large majority of software used to build Government IT solutions does not fall into this category. Furthermore, the risk managed decision whether or not to use such software remains with the Department’s information risk owner.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/04/03/open-source-software-and-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Standards Open Opportunities</title>
		<link>http://www.theopensourcerer.com/2012/04/03/open-standards-open-opportunities/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=open-standards-open-opportunities</link>
		<comments>http://www.theopensourcerer.com/2012/04/03/open-standards-open-opportunities/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 20:17:12 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>
		<category><![CDATA[Public Sector]]></category>
		<category><![CDATA[#ukgovOSS]]></category>
		<category><![CDATA[Government]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3170</guid>
		<description><![CDATA[Flexibility and efficiency are perhaps not two words that have been traditionally associated with the public sector in general, and certainly not with government IT. This might change though, and you can help nudge it in the right direction. Last week, just before the budget was announced in front of a packed house of commons [...]]]></description>
			<content:encoded><![CDATA[<p>Flexibility and efficiency are perhaps not two words that have been traditionally associated with the public sector in general, and certainly not with government IT. This might change though, and you can help nudge it in the right direction. Last week, just before the budget was announced in front of a packed house of commons there was this little exchange:</p>
<p>John Pugh (Southport, Liberal Democrat)</p>
<blockquote><p>To ask the Minister for the Cabinet Office what recent assessment he has made of Government policy on open source software and open standards; and if he will make a statement.</p></blockquote>
<p>Francis Maude (Minister for the Cabinet Office; Horsham, Conservative)</p>
<blockquote><p>We have always made clear that, where appropriate, Government will procure open source solutions.</p>
<p>Open source products are used in the delivery, of huge database programmes—such as the Indian Identity card scheme—at a greater scale and for much less cost than we have experienced in the past.</p>
<p>Gov.uk, the new platform for publishing in <a href="http://en.wikipedia.org/wiki/UK_Government">UK Government</a> employs the same open source technologies.</p>
<p>It&#8217;s being delivered for a fraction of the cost of previous Government web schemes.</p></blockquote>
<p>So not a big long speech, but there it is, said in the house and recorded for posterity with the transcript of the oral answers in <a href="http://www.publications.parliament.uk/pa/cm201212/cmhansrd/cm120321/debtext/120321-0001.htm#12032154000998">Hansard</a> and <a href="http://www.theyworkforyou.com/wrans/?id=2012-03-21a.100946.h">theyworkforyou.com</a>,</p>
<p>The government is moving on Free Software, there is a very high level understanding of the need to avoid lock in, promote re-use and to remove the barriers to adoption for Open Source software. <a href="http://www.instituteforgovernment.org.uk/publications/system-error">They have been taken for a ride by a bunch of proprietary suppliers who have sold them the same old stuff over and over again, with contracts that tie the government down and keep the gravy train rolling</a>. There is no massive appetite for the government to contribute directly to free software projects, but they are very willing to have more open software from their existing and new suppliers, and to have those suppliers be good citizens in the open source community.</p>
<p>There appears to be a general alignment (and indeed confusion between) open source and open standards. What the government really appears to want is open standards, with open source software as a means to get to an environment where open standards are prevalent. This will give them the re-use and interoperability that they really want.</p>
<p>To this end the cabinet office is running a public consultation at the moment, asking you to comment on their thinking in the area of open standards. Don&#8217;t be misled though, this is all about open source really, and they really really want a bunch more responses to their consultation. You can view the consultation website here:</p>
<p><a href="http://consultation.cabinetoffice.gov.uk/openstandards/">http://consultation.cabinetoffice.gov.uk/openstandards/</a></p>
<p>It is a bit of an epic read, there is a <a href="http://www.cabinetoffice.gov.uk/sites/default/files/resources/Open-Standards-Open-Opportunities-Consultation_FINAL.pdf">31 page pdf describing the consultation</a> then you can go on to provide your responses on the website where your answers will be published along with those of everyone else. I don&#8217;t think I have ever filled in a form where my answers were broken down into chapters before, but there is a first time for everything. <a href="http://consultation.cabinetoffice.gov.uk/openstandards/question1/">Chapter 1</a> is all about how they should define what an open standard actually is, kind of like art, you know it when you see it. <a href="http://consultation.cabinetoffice.gov.uk/openstandards/question2/">Chapter 2</a> discusses whether open standards should be mandatory (expect some detailed answers from proprietary suppliers in this section explaining why the world would end if openness was not optional). <a href="http://consultation.cabinetoffice.gov.uk/openstandards/question3/">Chapter 3</a> is all about international alignment and would be a great place for comments from people who are not UK based but for whatever reason think we should be more interoperable at a government level.</p>
<p>Please do have a read of it and browse the questions and answer any you feel like giving your opinion on. Don&#8217;t feel you have to answer them all, or give long answers. I am assured that this consultation will make a difference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/04/03/open-standards-open-opportunities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unity Window Quicklists</title>
		<link>http://www.theopensourcerer.com/2012/03/16/unity-window-quicklists/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-window-quicklists</link>
		<comments>http://www.theopensourcerer.com/2012/03/16/unity-window-quicklists/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 19:31:08 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3162</guid>
		<description><![CDATA[The Unity desktop that the recent releases of Ubuntu uses is kind of nice overall, but there are some specific things that are really hard to do, one of which is finding and focussing on one window of a particular type of application when you may have many other windows of that application you are [...]]]></description>
			<content:encoded><![CDATA[<p>The Unity desktop that the recent releases of Ubuntu uses is kind of nice overall, but there are some specific things that are really hard to do, one of which is finding and focussing on one window of a particular type of application when you may have many other windows of that application you are not interested in. For example, a lot of the time I have three browser windows, a few gedit editors and around ten terminal windows open. When I am doing something I am normally interested in one browser window, one editor and one terminal. If I want to move from the browser to the terminal I am interested in I don&#8217;t want the other 9 terminals popping up over the browser, I only want the one that relates to that browser.</p>
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/03/quicklists.png"><img class="alignnone size-medium wp-image-3163" title="quicklists" src="http://www.theopensourcerer.com/wp-content/uploads/2012/03/quicklists-300x188.png" alt="" width="300" height="188" /></a></p>
<p>What kind of makes sense to me is that you should be able to right click on the things in the launcher and see the list of windows and choose the one you want. Luckily Unity is quite extensible, there are APIs for adding quicklists to the launcher icons and there is enough information kicking about in dbus to find the window names and get callbacks to happen when things get updated like a window title changes or a window gets added or removed.</p>
<p>I put my thoughts together in a little python script, which I have now packaged and put in a PPA (which was harder than it sounds) so if the screenshot makes sense to you and you are running Ubuntu with Unity (2d or 3d) then you can install it with the following commands:</p>
<pre>sudo apt-add-repository ppa:alanbell/unity</pre>
<pre>sudo apt-get update</pre>
<pre>sudo apt-get install unity-window-quicklists</pre>
<p>Then log out and back in again to get a much more usable desktop if you tend to use lots of windows</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/03/16/unity-window-quicklists/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>How to: OpenERP 6.1, Ubuntu 10.04 LTS, nginx SSL Reverse Proxy</title>
		<link>http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy</link>
		<comments>http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 11:02:08 +0000</pubDate>
		<dc:creator>Alan Lord</dc:creator>
				<category><![CDATA[OpenERP]]></category>
		<category><![CDATA[The Open Learning Centre]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CalDAV]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3128</guid>
		<description><![CDATA[This article follows on (hopefully not unsurprisingly) from the basic 6.1 installation howto. In this post I&#8217;ll describe one way of providing SSL encrypted access to your shiny new OpenERP 6.1 server running on Ubuntu 10.04 LTS. This time I thought I&#8217;d use the nginx (pronounced like &#8220;Engine X&#8221;) webserver to act as a reverse [...]]]></description>
			<content:encoded><![CDATA[<p>This article follows on (hopefully not unsurprisingly) from <a href="2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts">the basic 6.1 installation howto</a>.</p>
<p>In this post I&#8217;ll describe <em>one way</em> of providing SSL encrypted access to your shiny new OpenERP 6.1 server running on Ubuntu 10.04 LTS. </p>
<p>This time I thought I&#8217;d use the <a href="http://nginx.org/en/">nginx</a> (<em>pronounced like &#8220;Engine X&#8221;</em>) webserver to act as a reverse proxy and do SSL termination for web, GTK client and WebDAV/CalDAV access. nginx is gaining in popularity and is now the second most popular web server in the world according to some figures. It has a reputation for being fast and lean &#8211; so it seemed like a good choice for a relatively simple job like this. </p>
<p>I&#8217;m indebted to xat for <a href="http://blog.thamini.com/xat/howto-add-some-additional-security-your-openerp-web-client-ssl-using-nginx">this post</a> which provided the main configuration script for a reverse proxy on OpenERP 6.0. The changes I have made to xat&#8217;s original configuration are: different port number, some additional rewrite rules to support WebDAV and the new mobile interface, new location for static files.</p>
<p><em>NB: For the purposes of this how to, we&#8217;ll be using self-signed certificates. A discussion of the pros and cons of this choice is beyond the scope of this article.</em></p>
<h3>Step 1. Install nginx</h3>
<p>On your server install nginx by typing:</p>
<p><code>sudo apt-get install nginx</code></p>
<p>Next, we need to generate a SSL certificate and key.</p>
<h3>Step 2. Create your cert and key</h3>
<p>I create the files in a temporary directory then move them to their final resting place once they have been built (the first <code>cd</code> is just to make sure we are in our home directory to start with):</p>
<p><code>cd<br />
mkdir temp<br />
cd temp</code></p>
<p>Then we generate a new key, you will be asked to enter a passphrase and confirm:</p>
<p><code>openssl genrsa -des3 -out server.pkey 1024</code></p>
<p>We don&#8217;t really want to have to enter a passphrase every time the server starts up so we remove the passphrase by doing this:</p>
<p><code>openssl rsa -in server.pkey -out server.key</code></p>
<p>Next we need to create a signing request which will hold the data that will be visible in your final certificate:</p>
<p><code>openssl req -new -key server.key -out server.csr</code></p>
<p>This will generate a series of prompts like this: Enter the information as requested:</p>
<blockquote><p>
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;<br />
Country Name (2 letter code) [AU]:<br />
State or Province Name (full name) [Some-State]:<br />
Locality Name (eg, city) []:<br />
Organization Name (eg, company) [Internet Widgits Pty Ltd]:<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, YOUR name) []:<br />
Email Address []:</p>
<p>Please enter the following &#8216;extra&#8217; attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:The Client&#8217;s Company
</p></blockquote>
<p>And finally we self-sign our certificate.</p>
<p><code>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</code></p>
<p>We only need two of the files in the working directory, the key and the certificate. But before we can use them they need to have their ownership and access rights altered:</p>
<p><code>sudo chown root:www-data server.crt server.key<br />
sudo chmod 640 server.crt server.key</code></p>
<p>And then we put them in a sensible place:</p>
<p><code>sudo mkdir /etc/ssl/nginx<br />
sudo chown www-data:root /etc/ssl/nginx<br />
sudo chmod 710 /etc/ssl/nginx<br />
sudo mv server.crt server.key /etc/ssl/nginx/</code></p>
<p>Now the key and certificate are safely stored away, we can tell nginx where they are and what it should be doing&#8230;</p>
<h3>Step 3. Create the nginx site configuration file</h3>
<p>We create a new configuration file</p>
<p><code>sudo nano /etc/nginx/sites-available/openerp</code></p>
<p>with the following content:</p>
<p><strong>Note: You will need to change all references to <code>10.0.0.26</code> in the following file to either the domain name or static IP address of your server. This was the IP address of the machine I built this test script on. It will not work unless changed to suit your own system!</strong></p>
<blockquote>
<pre>
<code>upstream openerpweb {
    server 127.0.0.1:8069 weight=1 fail_timeout=300s;
}

server {
    listen 80;
    server_name    10.0.0.26;

    # Strict Transport Security
    add_header Strict-Transport-Security max-age=2592000;

    rewrite ^/mobile.*$ https://10.0.0.26/web_mobile/static/src/web_mobile.html permanent;
    rewrite ^/webdav(.*)$ https://10.0.0.26/webdav/$1 permanent;
    rewrite ^/.*$ https://10.0.0.26/web/webclient/home permanent;
}

server {
    # server port and name
    listen        443 default;
    server_name   10.0.0.26;

    # Specifies the maximum accepted body size of a client request,
    # as indicated by the request header Content-Length.
    client_max_body_size 200m;

    # ssl log files
    access_log    /var/log/nginx/openerp-access.log;
    error_log    /var/log/nginx/openerp-error.log;

    # ssl certificate files
    ssl on;
    ssl_certificate        /etc/ssl/nginx/server.crt;
    ssl_certificate_key    /etc/ssl/nginx/server.key;

    # add ssl specific settings
    keepalive_timeout    60;

    # limit ciphers
    ssl_ciphers            HIGH:!ADH:!MD5;
    ssl_protocols            SSLv3 TLSv1;
    ssl_prefer_server_ciphers    on;

    # increase proxy buffer to handle some OpenERP web requests
    proxy_buffers 16 64k;
    proxy_buffer_size 128k;

    location / {
        proxy_pass    http://openerpweb;
        # force timeouts if the backend dies
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

        # set headers
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;

        # Let the OpenERP web service know that we're using HTTPS, otherwise
        # it will generate URL using http:// and not https://
        proxy_set_header X-Forwarded-Proto https;

        # by default, do not forward anything
        proxy_redirect off;
    }

    # cache some static data in memory for 60mins.
    # under heavy load this should relieve stress on the OpenERP web interface a bit.
    location ~* /web/static/ {
        proxy_cache_valid 200 60m;
        proxy_buffering    on;
        expires 864000;
        proxy_pass http://openerpweb;
    }

}</code>
</pre>
</blockquote>
<p>UPDATE: 04/04/2012. I have added a line to the above file: <code>client_max_body_size 200m;</code> thanks to <a href="http://kirkmanlabs.com/">Praxi</a> for reminding me about this. The default setting is just 1MB which will stop users from uploading any files larger than that, including databases!</p>
<p>And then we can enable the new site configuration by creating a symbolic link in the <code>/etc/nginx/sites-enabled</code> directory.</p>
<p><code>sudo ln -s /etc/nginx/sites-available/openerp /etc/nginx/sites-enabled/openerp</code></p>
<h3>Step 4. Change the OpenERP server configuration file</h3>
<p>The next step is to re-configure the OpenERP server so that non-encrypted services are not accessible from the outside world.</p>
<p>In <code>/etc/openerp-server.conf</code> the non-encrypted services will only listen on localhost, i.e. not from external connections so in effect only traffic from nginx will be accepted.</p>
<p>After opening the file for editing, just add 127.0.0.1 to the xmlrpc and netrpc interface lines as shown below.</p>
<p><code>sudo nano /etc/openerp-server.conf</code></p>
<blockquote><p>
<code>xmlrpc_interface = 127.0.0.1<br />
netrpc_interface = 127.0.0.1</code>
</p></blockquote>
<p>That&#8217;s it. Everything is now configured.</p>
<h3>Step 5. Try it out</h3>
<p>Restart the services to load the new configurations</p>
<p><code>sudo service openerp-server restart<br />
sudo service nginx restart</code></p>
<p>You should not be able to connect to the web client on port 8069 and the GTK client should not connect on either the NetRPC (8070) or XMLRPC (8069) services. </p>
<p>For web access you just need to visit https://your-ip-or-domain and in the GTK client you will need to use port 443 (https) and choose the XMLRPC (Secure) protocol.</p>
<p>The nginx configuration above will also redirect any incoming requests for port 80 to port 443 (https) and it also makes sensible redirects for the mobile and WebDAV/CalDAV services. (From what I can gather however WebDAV clients really don&#8217;t handle redirects so this bit is probably not that useful). I think the best bet for WebDAV/CalDAV is just to provide the correct URL in the first place.</p>
<p>For CalDAV access then, the URL to a calendar will be something like this:</p>
<p><code>https://your-ip-or-domain/webdav/DB_NAME/calendars/users/USERNAME/c/CALENDAR_NAME</code></p>
<p>There you have it. In OpenERP 6.1 this job actually proved to be a little simpler than the previous version largely due to the integrated web interface. There are also fewer configuration changes required in <code>openerp-server.conf</code>.</p>
<p>Finally, I really wanted to try and make use of the WSGI support in OpenERP 6.1 instead of the method above, but my efforts to get this to work from nginx or Apache have so far ended in failure <img src='http://www.theopensourcerer.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Obviously if anyone wants to provide a working config for that please feel free to add a comment and link.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>How to install OpenERP 6.1 on Ubuntu 10.04 LTS</title>
		<link>http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-openerp-6-1-on-ubuntu-10-04-lts</link>
		<comments>http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 22:44:45 +0000</pubDate>
		<dc:creator>Alan Lord</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>
		<category><![CDATA[OpenERP]]></category>
		<category><![CDATA[The Open Learning Centre]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3082</guid>
		<description><![CDATA[The new release of OpenERP 6.1 heralds a great many incremental improvements in the product plus a complete re-write of the web interface; which is a massive improvement and much more an integral part of OpenERP than it&#8217;s predecessor. UPDATE: By popular request here is a subsequent post describing how to set up a reverse [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.openerp.com"><img src="http://www.theopensourcerer.com/wp-content/uploads/2011/04/logo1.png" alt="OpenERP Logo" title="OpenERP Logo" width="190" height="46" class="size-full wp-image-2815 alignleft" /></a>The new release of OpenERP 6.1 <a href="http://www.openerp.com/node/1056">heralds a great many incremental improvements</a> in the product plus a complete re-write of the web interface; which is a massive improvement and much more an integral part of OpenERP than it&#8217;s predecessor.</p>
<p><strong>UPDATE: By popular request <a href="http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/">here is a subsequent post describing how to set up a reverse proxy and ssl using nginx.</a></strong></p>
<p>As my <a href="http://www.theopensourcerer.com/2011/04/19/how-to-install-openerp-6-on-ubuntu-10-04-lts-server-part-1">previous howto</a> for 6.0 was a such roaring success I thought I&#8217;d better do something for the new 6.1 release too. </p>
<p>Before continuing, I should mention that you can simply <a href="http://nightly.openerp.com/6.1/releases/openerp_6.1-1-1_all.deb">download</a> a &#8220;.deb&#8221; package of OpenERP 6.1 and install that on Ubuntu. But that doesn&#8217;t provide me with enough fine grained control over what and where things get installed and it restricts our flexibility to modify &#038; customise hence I prefer to do it a slightly more manual way&#8230; <em>(It should be said though, that this install process should only take about 10-15 minutes once the host machine has been built)</em></p>
<p>So without further ado here we go:</p>
<h3>Step 1. Build your server</h3>
<p>I install just the bare minimum from the install routine (you can install the <code>openssh-server</code> during the install procedure or install subsequently depending on your preference).</p>
<p>After the server has restarted for the first time I install the <code>openssh-server</code> package (so we can connect to it remotely) and <code>denyhosts</code> to add a degree of brute-force attack protection. There are other protection applications available: I’m not saying this one is the best, but it’s one that works and is easy to configure and manage. If you don’t already, it’s also worth looking at setting up key-based ssh access, rather than relying on passwords. This can also help to limit the potential of brute-force attacks. [NB: This isn't a How To on securing your server...]</p>
<p><code>sudo apt-get install openssh-server denyhosts</code></p>
<p>Now make sure you are running all the latest patches by doing an update:</p>
<p><code>sudo apt-get update</code><br />
<code>sudo apt-get dist-upgrade</code></p>
<p>Although not always essential it’s probably a good idea to reboot your server now and make sure it all comes back up and you can login via ssh.</p>
<p>Now we’re ready to start the OpenERP install.</p>
<h3>Step 2. Create the OpenERP user that will own and run the application</h3>
<p><code>sudo adduser --system --home=/opt/openerp --group openerp</code></p>
<p>This is a “system” user. It is there to own and run the application, it isn’t supposed to be a person type user with a login etc. In Ubuntu, a system user gets a UID below 1000, has no shell (it’s actually <code>/bin/false</code>) and has logins disabled. Note that I’ve specified a “home” of <code>/opt/openerp</code>, this is where the OpenERP server code will reside and is created automatically by the command above. The location of the server code is your choice of course, but be aware that some of the instructions and configuration files below may need to be altered if you decide to install to a different location.</p>
<p>A question I was asked a few times in the previous how to for 6.0 was how to run the OpenERP server as the openerp system user from the command line if it has no shell. This can be done quite easily:</p>
<p><code>sudo su - openerp -s /bin/bash</code></p>
<p>This will <code>su</code> your current terminal login to the openerp user (the &#8220;<code>-</code>&#8221; between <code>su</code> and <code>openerp</code> is correct) and use the shell <code>/bin/bash</code>. When this command is run you will be in openerp&#8217;s home directory: <code>/opt/openerp</code>.</p>
<p>When you have done what you need you can leave the openerp user&#8217;s shell by typing <code>exit</code>.</p>
<h3>Step 3. Install and configure the database server, PostgreSQL</h3>
<p><code>sudo apt-get install postgresql</code></p>
<p>Then configure the OpenERP user on postgres:</p>
<p>First change to the postgres user so we have the necessary privileges to configure the database.</p>
<p><code>sudo su - postgres</code></p>
<p>Now create a new database user. This is so OpenERP has access rights to connect to PostgreSQL and to create and drop databases. Remember what your choice of password is here; you will need it later on:</p>
<p><code>createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp</code><br />
<code>Enter password for new role: ********</code><br />
<code>Enter it again: ********</code></p>
<p>Finally exit from the postgres user account:</p>
<p><code>exit</code></p>
<h3>Step 4. Install the necessary Python libraries for the server</h3>
<p><em style="font-size:80%;color:#FFF;">Update 27/02/2012: Many thanks to <a href="http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/comment-page-1/#comment-40647">Gavin</a> for reporting. Have added python-simplejson to the package list.</em></p>
<p><code>sudo apt-get install python-dateutil python-feedparser python-gdata \<br />
python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \<br />
python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \<br />
python-simplejson python-tz python-vatnumber python-vobject python-webdav \<br />
python-werkzeug python-xlwt python-yaml python-zsi</code></p>
<p><em>From what I can tell, on Ubuntu 10.04 the package python-werkzeug is too old and this will cause the server to not start properly. If you are trying this on a later version of Ubuntu then you might be OK, but just in-case you can also do the following.</em></p>
<blockquote><p>I found it necessary to install a more recent version of Werkzeug using Python&#8217;s own package management library PIP. The python pip tool can be installed like this:</p>
<p><code>sudo apt-get install python-pip</code></p>
<p>Then remove Ubuntu&#8217;s packaged version of werkzeug:</p>
<p><code>sudo apt-get remove python-werkzeug</code></p>
<p>Then install the up-to-date version of werkzeug:</p>
<p><code>sudo pip install werkzeug</code>
</p></blockquote>
<p>With that done, all the dependencies for installing OpenERP 6.1 are now satisfied, including for the new integral web interface.</p>
<h3>Step 5. Install the OpenERP server</h3>
<p>I tend to use <code>wget</code> for this sort of thing and I download the files to my home directory.</p>
<p>Make sure you get the latest version of the application. At the time of writing this it’s 6.1-1; I got the download links from their download page.</p>
<p><code>wget http://nightly.openerp.com/6.1/releases/openerp-6.1-1.tar.gz</code></p>
<p>Now install the code where we need it: <code>cd</code> to the <code>/opt/openerp/</code> directory and extract the tarball there.</p>
<p><code>cd /opt/openerp</code><br />
<code>sudo tar xvf ~/openerp-6.1-1.tar.gz</code></p>
<p>Next we need to change the ownership of all the the files to the OpenERP user and group.</p>
<p><code>sudo chown -R openerp: *</code></p>
<p>And finally, the way I have done this is to copy the server directory to something with a simpler name so that the configuration files and boot scripts don’t need constant editing (I called it, rather unimaginatively, server). I started out using a symlink solution, but I found that when it comes to upgrading, it seems to make more sense to me to just keep a copy of the files in place and then overwrite them with the new code. This way you keep any custom or user-installed modules and reports etc. all in the right place.</p>
<p><code>sudo cp -a openerp-6.1-1 server</code></p>
<p>As an example, should OpenERP 6.1-2 come out soon, I can extract the tarballs into /opt/openerp/ as above. I can do any testing I need, then repeat the copy command so that the modified files will overwrite as needed and any custom modules, report templates and such will be retained. Once satisfied the upgrade is stable, the older 6.1-1 directories can be removed if wanted.</p>
<p>That’s the OpenERP server software installed. The last steps to a working system is to set up the configuration file and associated boot script so OpenERP starts and stops automatically when the server itself stops and starts.</p>
<h3>Step 6. Configuring the OpenERP application</h3>
<p>The default configuration file for the server (in <code>/opt/openerp/server/install/</code>) is actually very minimal and will, with only one small change work fine so we&#8217;ll simply copy that file to where we need it and change it&#8217;s ownership and permissions:</p>
<p><code>sudo cp /opt/openerp/server/install/openerp-server.conf /etc/<br />
sudo chown openerp: /etc/openerp-server.conf<br />
sudo chmod 640 /etc/openerp-server.conf</code></p>
<p>The above commands make the file owned and writeable only by the openerp user and group and only readable by openerp and root.</p>
<p>To allow the OpenERP server to run initially, you should only need to change one line in this file. Toward to the top of the file change the line <code>db_password = False</code> to the same password you used back in step 3. Use your favourite text editor here. I tend to use nano, e.g. </p>
<p><code>sudo nano /etc/openerp-server.conf</code></p>
<p>One other line we might as well add to the configuration file now, is to tell OpenERP where to write its log file. To complement my suggested location below add the following line to the <code>openerp-server.conf</code> file:</p>
<p><code>logfile = /var/log/openerp/openerp-server.log</code></p>
<p>Once the configuration file is edited and saved, you can start the server just to check if it actually runs.</p>
<p><code>sudo su - openerp -s /bin/bash</code><br />
<code>/opt/openerp/server/openerp-server</code></p>
<p>If you end up with a few lines eventually saying OpenERP is running and waiting for connections then you are all set. Just type <code>CTL+C</code> to stop the server then <code>exit</code> to leave the openerp user&#8217;s shell. </p>
<p>If there are errors, you&#8217;ll need to go back and check where the problem is.</p>
<h3>Step 7. Installing the boot script</h3>
<p>For the final step we need to install a script which will be used to start-up and shut down the server automatically and also run the application as the correct user. There is a script you can use in <code>/opt/openerp/server/install/openerp-server.init</code> but this will need a few small modifications to work with the system installed the way I have described above. <a href="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-server">Here’s a link</a> to the one I’ve already modified for 6.1-1.</p>
<p>Similar to the configuration file, you need to either copy it or paste the contents of this script to a file in <code>/etc/init.d/</code> and call it <code>openerp-server</code>. Once it is in the right place you will need to make it executable and owned by root:</p>
<p><code>sudo chmod 755 /etc/init.d/openerp-server</code><br />
<code>sudo chown root: /etc/init.d/openerp-server</code></p>
<p>In the configuration file there’s an entry for the server’s log file. We need to create that directory first so that the server has somewhere to log to and also we must make it writeable by the openerp user:</p>
<p><code>sudo mkdir /var/log/openerp</code><br />
<code>sudo chown openerp:root /var/log/openerp</code></p>
<h3>Step 8. Testing the server</h3>
<p>To start the OpenERP server type:</p>
<p><code>sudo /etc/init.d/openerp-server start</code></p>
<p>You should now be able to view the logfile and see that the server has started.</p>
<p><code>less /var/log/openerp/openerp-server.log</code></p>
<p>If there are any problems starting the server you need to go back and check. There’s really no point ploughing on if the server doesn’t start…</p>
<p><div id="attachment_3090" class="wp-caption alignright" style="width: 310px"><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-6.1-home.png"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-6.1-home-300x150.png" alt="OpenERP 6.1 Home Screen" title="OpenERP 6.1 Home Screen" width="300" height="150" class="size-medium wp-image-3090" /></a><p class="wp-caption-text">OpenERP 6.1 Home Screen</p></div><br />
If the log file looks OK, now point your web browser at the domain or IP address of your OpenERP server (or localhost if you are on the same machine) and use port 8069. The url will look something like this:</p>
<p><code>http://IP_or_domain.com:8069</code></p>
<p>What you should see is a screen like this one:</p>
<div class="clear"></div>
<p>What I do recommend you do at this point is to change the super admin password to something nice and strong (Click the &#8220;Manage Databases&#8221; link below the main Login box). By default this password is just &#8220;admin&#8221; and knowing that, a user can create, backup, restore and <strong>drop</strong> databases! This password is stored in <em>plain text</em> in the <code>/etc/openerp-server.conf</code> file; <em>hence why we restricted access to just openerp and root</em>. When you change and save the new password the <code>/etc/openerp-server.conf</code> file will be re-written and will have a lot more options in it.</p>
<p>Now it’s time to make sure the server stops properly too:</p>
<p><code>sudo /etc/init.d/openerp-server stop</code></p>
<p>Check the logfile again to make sure it has stopped and/or look at your server’s process list.</p>
<h3>Step 9. Automating OpenERP startup and shutdown</h3>
<p>If everything above seems to be working OK, the final step is make the script start and stop automatically with the Ubuntu Server. To do this type:</p>
<p><code>sudo update-rc.d openerp-server defaults</code></p>
<p>You can now try rebooting you server if you like. OpenERP should be running by the time you log back in.</p>
<p>If you type <code>ps aux | grep openerp</code> you should see a line similar to this:</p>
<p><code>openerp 1491 0.1 10.6 207132 53596 ?  Sl  22:23  0:02 python /opt/openerp/server/openerp-server -c /etc/openerp-server.conf</code></p>
<p>Which shows that the server is running. And of course you can check the logfile or visit the server from your web browser too.</p>
<p>That&#8217;s it!</p>
<p>OpenERP 6.1 really is a major step up in terms of improvements from 6.0 and the new integrated web interface (with a Point of Sale and a Mobile interface built-in) are really very cool. Performance has improved considerably and the way the new web service interfaces to OpenERP is very different. So, if I get the time, the next instalment of these posts will go into a bit of detail about how this works and some alternative ways to provide more secure access, such as reverse proxy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/feed/</wfw:commentRss>
		<slash:comments>173</slash:comments>
		</item>
		<item>
		<title>OT: Chillies 2012</title>
		<link>http://www.theopensourcerer.com/2012/01/21/ot-chillies-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ot-chillies-2012</link>
		<comments>http://www.theopensourcerer.com/2012/01/21/ot-chillies-2012/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:11:58 +0000</pubDate>
		<dc:creator>Alan Lord</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3064</guid>
		<description><![CDATA[It&#8217;s that time again. This evening (Saturday 21/01/2012) I have sowed 13 varieties of chillies, just over 50 seeds! I&#8217;m very excited about the prospects for the year ahead but have absolutely no idea what I will do if I have 50 plants to tend &#8211; they won&#8217;t all fit in our small greenhouse and [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s that time again.</p>
<p>This evening (Saturday 21/01/2012) I have sowed 13 varieties of chillies, just over 50 seeds! I&#8217;m very excited about the prospects for the year ahead but have absolutely no idea what I will do if I have 50 plants to tend &#8211; they won&#8217;t all fit in our small greenhouse and we don&#8217;t have a conservatory&#8230; Suggestions welcome.</p>
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0177.jpg"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0177-300x225.jpg" alt="" title="Three chilli varieties" width="300" height="225" class="alignleft size-medium wp-image-3065" /></a> From the left there is &#8220;Black Naga&#8221; which I managed to grow last year and by the end of October the pods had ripened to a dark chocolate brown colour. They were hot too <img src='http://www.theopensourcerer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  . Next is a Red Habanero &#8211; These seeds were a gift from my sister-in-law and I have no idea what they will be like but Habaneros are generally quite hot and a have lovely fruity flavour. Finally in this tray is Goat Horn which I also grew last year and they were an absolute delight! A lovely traditional torpedo shaped chilli with a great flavour. They aren&#8217;t blisteringly hot but a very, very nice chilli.</p>
<p class="clear">
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0176.jpg"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0176-300x225.jpg" alt="" title="Three Chilli Varieties" width="300" height="225" class="alignleft size-medium wp-image-3066" /></a> In this tray I have the famous &#8220;Dorset Naga&#8221; which has been a reliable variety over the last two seasons. Hope these seeds still germinate OK. Next is a Bhut Jolokia and to be honest I can&#8217;t remember where these seeds came from or if I have grown from this packet before, but there were only 5 seeds in the bag so they have all gone in the tray. Finally is another Habanero style called Congo Trinidad.</p>
<p class="clear">
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0175.jpg"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0175-300x225.jpg" alt="" title="Three Chilli Varieties" width="300" height="225" class="alignleft size-medium wp-image-3067" /></a> I have two varieties in this tray I also grew last year from the first time and liked them so much am growing again: Aji Crystal was quite prolific and produces big meaty chillies with a nice (but not insanely hot) kick. The Lemon Drop on the other side was also quite a good cropper and I loved the bright yellow chillies. These look great on the plate and taste yummy too &#8211; a slight citrus note. In the centre is a new variety for me this season &#8211; The Habanero 7 Pot. Called the 7 pot apparently as this is how many pots of stew one chilli will flavour! I&#8217;m really looking forward to getting these on my tongue!</p>
<p class="clear">
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0174.jpg"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0174-300x225.jpg" alt="" title="Three Chilli Varieties" width="300" height="225" class="alignleft size-medium wp-image-3068" /></a> Here are the &#8220;HOT Ones&#8221;&#8230; The <a href="http://en.wikipedia.org/wiki/Naga_Viper_pepper">Naga Viper</a> held the hottest chilli world record in 2011 for a while at around 1.4million Scovilles! However within just a few days this Viper was beaten by the <a href="http://en.wikipedia.org/wiki/Trinidad_Scorpion_Butch_T_pepper">Trinidad Scorpion &#8220;Butch T&#8221;</a> which was measured at just under 1.5million Scovilles. Also in this tray is a chilli called Portugal, which is a Jumbo Cayenne type. Not in the same league heat-wise as it&#8217;s 2 neighbours but I like a bit of variety.</p>
<p class="clear">
<p><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0173.jpg"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/01/IMG_0173-300x225.jpg" alt="" title="One Chilli Variety" width="300" height="225" class="alignleft size-medium wp-image-3069" /></a>And finally, I remember growing this one a few years ago and being pleasantly surprised so I thought I&#8217;d give it another go. It&#8217;s Italian seed with a description of <em>Peperoncino piccante tondo calabrese</em>. It&#8217;s a round chilli that is commonly used for stuffing or in salads. I recall it having a nice punch and the plants being excellent croppers.</p>
<p class="clear">
<p>I&#8217;ll provide updates through the year as, hopefully, the seeds germinate, plants grow and bear fruit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2012/01/21/ot-chillies-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu IRC Council</title>
		<link>http://www.theopensourcerer.com/2011/12/29/ubuntu-irc-council-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-irc-council-2</link>
		<comments>http://www.theopensourcerer.com/2011/12/29/ubuntu-irc-council-2/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 15:13:04 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3056</guid>
		<description><![CDATA[The new Ubuntu IRC Council was announced this week and I am pleased to have been appointed to it. The Ubuntu project makes extensive use of the Freenode Internet Relay Chat network, with a team of operators doing a grand job keeping it all running smoothly for the thousands of users online each day. The [...]]]></description>
			<content:encoded><![CDATA[<p>The new Ubuntu IRC Council <a href="http://fridge.ubuntu.com/2011/12/28/new-irc-council">was announced this week</a> and I am pleased to have been appointed to it. The Ubuntu project makes extensive use of the Freenode Internet Relay Chat network, with a team of operators doing a grand job keeping it all running smoothly for the thousands of users online each day. The IRC council has a few duties to assist the team, which you can read about in more details here <a href="https://wiki.ubuntu.com/IRC/IrcCouncil">https://wiki.ubuntu.com/IRC/IrcCouncil</a>. Our first open team meeting will be on the 14th January at 11:00UTC in the #ubuntu-meeting channel, we have decided to keep the same meeting schedule as the previous council as it seems to work for most people. If you have any questions about the council do feel free to join our meeting or find us on Freenode IRC, we are all very approachable and here to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2011/12/29/ubuntu-irc-council-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERPpeek, a tool for browsing OpenERP data from the command line</title>
		<link>http://www.theopensourcerer.com/2011/12/13/erppeek-a-tool-for-browsing-openerp-data-from-the-command-line/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=erppeek-a-tool-for-browsing-openerp-data-from-the-command-line</link>
		<comments>http://www.theopensourcerer.com/2011/12/13/erppeek-a-tool-for-browsing-openerp-data-from-the-command-line/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 20:18:51 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[OpenERP]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3045</guid>
		<description><![CDATA[We have been rather busy implementing OpenERP for a number of our customers and I have been tweaking and customising and extending it all over the place. It is a great fun product to work with, very flexible and Python is a really nice language to use. One thing I have been finding is that [...]]]></description>
			<content:encoded><![CDATA[<p>We have been rather busy implementing OpenERP for a number of our customers and I have been tweaking and customising and extending it all over the place. It is a great fun product to work with, very flexible and Python is a really nice language to use. One thing I have been finding is that as a developer I really want to know more about the fieldnames and field values that are stored behind the scenes on an object, I want a command line utility to allow me to inspect a particular document and figure out why it displays what it displays etc. There might be one out there somewhere, but I figured it would be more fun to write my own, so I did. The best way to show how it works is with an example</p>
<p><code>./erppeek.py -d testdb -u admin -p admin -m res.users 1</code></p>
<p>in it&#8217;s simplist form that will connect to an openerp server running on localhost, (port 8069) with username admin and password admin to a database called testdb. It will then return all fields for the model res.users with id 1 (which will be the admin user)</p>
<p><code>./erppeek.py --server 'http://myserver.com:8069' -d testdb -u admin -p admin -m res.partner 1 3 5</code></p>
<p>This connects to a remote server called myserver.com and returns all fields from partners 1, 3 and 5</p>
<p><code>./erppeek.py --server 'http://myserver.com:8069' -d testdb -u admin -p admin -m res.partner -f name -f city 1 3 5</code></p>
<p>and now we are using the -f field parameter to return just the name and city (and it always returns the id as well) of those partners</p>
<p><code>./erppeek.py --server 'http://myserver.com:8069' -d testdb -u admin -p admin -m res.partner -f name -f city -s "name like School" -s "city = Southampton"</code></p>
<p>This time it is not relying on us passing in a list of object IDs, but it is doing a search of the res.partner objects where the name field contains &#8216;School&#8217; and the city field is equal to Southampton.</p>
<p>To grab a copy of this small but handy little utility please <a title="ERP Peek Download" href="http://bazaar.launchpad.net/~alanbell/+junk/erppeek/view/head:/erppeek.py">download it from launchpad</a> and make it executable. It works fine on Ubuntu, and should work on most platforms with Python. Do let me know in the comments what you think of it and what else you would like it to do.</p>
<p>Security note &#8211; this does at the moment get you to enter a password on the command line, which means the password will be available in your bash history and other users on your computer looking at processes you are running. This doesn&#8217;t bother me much as I am only using it on local development databases with trivial passwords anyway, but you have been warned. If someone wants to help fix that then great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2011/12/13/erppeek-a-tool-for-browsing-openerp-data-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Free Ubuntu 11.10 CDs for the UK</title>
		<link>http://www.theopensourcerer.com/2011/10/18/free-ubuntu-11-10-cds-for-the-uk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-ubuntu-11-10-cds-for-the-uk</link>
		<comments>http://www.theopensourcerer.com/2011/10/18/free-ubuntu-11-10-cds-for-the-uk/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 17:29:05 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3037</guid>
		<description><![CDATA[Today the Ubuntu UK LoCo team CD allocation arrived from Canonical, as is traditional I have upgraded the Kubuntu CD that my chickens peck at. I have a different set of chickens to the ones in the last photo due to a series of unfortunate events. In July we restocked by purchasing three rather young [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://picasaweb.google.com/lh/photo/VLb79I8OteL-0wiczoQ6Tg?feat=embedwebsite"><img class="alignright" src="https://lh6.googleusercontent.com/-RwMhI4ONNBA/Tp1-UU9b8II/AAAAAAAABXw/d0nkzJtOh7Y/s288/2011-10-18%25252014.23.29.jpg" alt="" width="288" height="216" /></a>Today the Ubuntu UK LoCo team CD allocation arrived from Canonical, as is traditional I have upgraded the Kubuntu CD that my chickens peck at. I have a different set of chickens to the ones in the last photo due to a series of unfortunate events. In July we restocked by purchasing three rather young hens, Specky, Chocolate and Snowdrop who entertained the crowds at the Oggcamp Crew BBQ and have been growing fast ever since. Pictured here with the new Kubuntu CD is Specky. We wanted three nice new hens to lay lots of eggs and they are approaching egg time. Of the three, Specky has grown the fastest and has a nice comb and a tail and really is quite a lot bigger than the others and . . . actually Specky is looking a bit um, butch, for a hen. . . and those cockadoodledoo noises are not a good sign. I think we may have a problem here. Girls are lovely and useful and hard working. Boys are big, noisy and useless. I think Specky needs to urgently get in touch with it&#8217;s feminine side and lay some eggs, or there will be a less full henhouse and a more full curry pot.</p>
<p>Anyhow, back to the subject of this post, which is the CDs. If you are living in the UK and want an Ubuntu CD, a Kubuntu CD or an Ubuntu Server CD (or combination thereof) then you are most welcome to one. Please <a href="http://ubuntu-uk.org/free-cds/">follow the procedure</a> and I will send one out to you. For a while I will also include an 11.04 CD until I run out of them. If you want more than one CD then do ask me and we will try and work something out particularly if you are wanting to distribute them at a University or similar.</p>
<p>I almost forgot to mention, I removed their old Kubuntu 11.04 CD and washed the muck off and stuck it in a desktop, it still boots!<br />
<a href="https://picasaweb.google.com/lh/photo/CxgVU3GPEYTRfqxWjQXx1Q?feat=embedwebsite"><img src="https://lh3.googleusercontent.com/-Vo2hLc7esqs/Tp2BLGeZO4I/AAAAAAAABYM/yepZZdDWEtc/s288/2011-10-18%25252014.36.26.jpg" alt="" width="288" height="216" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2011/10/18/free-ubuntu-11-10-cds-for-the-uk/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>If all else fails, switch to Open Source</title>
		<link>http://www.theopensourcerer.com/2011/09/06/if-all-else-fails-switch-to-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-all-else-fails-switch-to-open-source</link>
		<comments>http://www.theopensourcerer.com/2011/09/06/if-all-else-fails-switch-to-open-source/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 08:19:48 +0000</pubDate>
		<dc:creator>Alan Bell</dc:creator>
				<category><![CDATA[FLOSS in the news]]></category>

		<guid isPermaLink="false">http://www.theopensourcerer.com/?p=3025</guid>
		<description><![CDATA[An element of comedy in the open source cable of the day, this one is from Latvia in 2008. The country is facing significant economic issues and they are trying to reduce their public sector costs. They are OK with reducing spending, cutting staff, postponing wage increases, but if that doesn&#8217;t work they will have [...]]]></description>
			<content:encoded><![CDATA[<p>An element of comedy in the open source cable of the day, this one is from Latvia in 2008. The country is facing significant economic issues and they are trying to reduce their public sector costs. They are OK with reducing spending, cutting staff, postponing wage increases, but if that doesn&#8217;t work they will have to take <em>drastic measures</em> . . .<br />
<a href="http://wikileaks.org/cable/2008/10/08RIGA644.html">http://wikileaks.org/cable/2008/10/08RIGA644.html</a></p>
<blockquote><p>Next year&#8217;s central government budget proposal, which the Cabinet<br />
of Ministers has now submitted to the parliament for review, has<br />
dominated the headlines in Latvian media in recent weeks.  The<br />
Cabinet has been struggling to prepare a budget with a target<br />
deficit rate of 1.85% of GDP by reducing ministry spending,<br />
eliminating staff positions, postponing planned wage increases for<br />
public sector employees, and <strong>even proposing measures as drastic as<br />
closing specific ministries and switching to open source software.</strong><br />
Labor unions and other affected parties have met these proposals<br />
with strong condemnation.</p></blockquote>
<p>Sounds like switching to open source would release a saving in the order of magnitude of closing a ministry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theopensourcerer.com/2011/09/06/if-all-else-fails-switch-to-open-source/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

