<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>noop();</title>
    <link>http://blog.mombe.org</link>
    <description>noop(&quot;guy's blog&quot;);</description>
    <language>en</language>
    <ttl>3600</ttl>
    <generator>blosxom/2.0</generator>


<item>
  <title>Building Mozilla Weave on FreeBSD</title>
  <link>http://blog.mombe.org/systems/weave-freebsd.htm</link>
  <description>
&lt;p&gt;
Mozilla Lab's &lt;a href=&quot;http://labs.mozilla.com/projects/weave/&quot;&gt;Weave&lt;/a&gt;
project provides bookmark and user data synchronisation between browsers. 
It's very useful, but doesn't currently support FreeBSD.  Since I run &lt;a
href=&quot;http://mozilla.com/firefox&quot;&gt;Firefox 3.0&lt;/a&gt; on FreeBSD, this is a
little irritating to me ;) So, following the hints on Weave's wiki, I
attempted to &lt;a href=&quot;http://wiki.mozilla.org/Labs/Weave/Building&quot;&gt;build&lt;/a&gt;
Weave on my BSD box.
&lt;/p&gt;

&lt;p&gt;
The script I came up with is a nasty hack.  There *must* be a cleaner way to
do this.  Nevertheless, it successfully builds Weave 0.2.5 on FreeBSD
7.0-RELEASE against the Firefox 3.0.1 sources.
&lt;/p&gt;

&lt;p&gt;
To build Weave, you'll need a working ports system that's reasonably
up-to-date (has &lt;a
href=&quot;http://freshports.org/www/firefox3&quot;&gt;www/firefox3&lt;/a&gt;).  You'll also
need gmake and python installed.
&lt;/p&gt;

&lt;p&gt;
Download the latest &lt;a
href=&quot;http://hg.mozilla.org/labs/weave/index.cgi/archive/tip.tar.gz&quot;&gt;Weave
sources&lt;/a&gt; and untar them.  Then copy my &lt;a
href=&quot;/data/systems/patches/buildweave.sh.asis&quot;&gt;script&lt;/a&gt; into the
top-level source directory (weave-c8bce0724360 at time of writing).  cd into
this directory, and run the &lt;a
href=&quot;/data/systems/patches/buildweave.sh.asis&quot;&gt;buildweave.sh&lt;/a&gt; script. 
You'll be left with an XPI installer ready to install.
&lt;/p&gt;

&lt;p&gt;
For those who're lazy, here's my &lt;a
href=&quot;/data/systems/patches/weave-FreeBSD.xpi.asis&quot;&gt;pre-compiled version of
Weave 0.2.5&lt;/a&gt; for FreeBSD 7.0.
&lt;/p&gt;&lt;p&gt;&lt;a name=&quot;weave-freebsd-1&quot; class=&quot;updatetitle&quot;&gt;UPDATE 2008/08/10: Weave 0.2.6 released
&lt;/a&gt;&lt;br /&gt;Weave's been updated, so here's a &lt;a href=&quot;/data/systems/patches/weave-FreeBSD.xpi-0.2.6.asis&quot;&gt;pre-compiled version of 0.2.6&lt;/a&gt;.
&lt;/p&gt;

</description>
  <author>Guy Antony Halse</author>
  <pubDate>Mon, 21 Jul 2008 18:22:00 +0200</pubDate>
</item>

<item>
  <title>EPrints, SPAM &amp;amp; deleting users</title>
  <link>http://blog.mombe.org/systems/eprints.htm</link>
  <description>
&lt;p&gt;
We run an instance of &lt;a href=&quot;http://eprints.org/&quot;&gt;EPrints 2.3&lt;/a&gt; and
noticed recently that it was getting lots of SPAM.  Well, more specifically,
that a lot of spammers had registered accounts on the system with meaningful
usernames like &amp;quot;cunnilingus&amp;quot;.  Fortunately our self-archiving
policy requires that user submissions are approved, but nevertheless the
multitude of irrelevent accounts was irritating.
&lt;/p&gt;

&lt;p&gt;
It was then that I discovered that EPrints doesn't have a command-line way
to delete users.  There's a &lt;tt&gt;create_user&lt;/tt&gt;, but no
&lt;tt&gt;remove_user&lt;/tt&gt;.  Not being one who is daunted by such problems, I set
about writing one.  It turned out to be quite simple.
&lt;/p&gt;

&lt;p&gt;
Since I'm a firm believer of making the wheel available, here's what &lt;a
href=&quot;/data/systems/patches/remove_user.asis&quot;&gt;I came up with&lt;/a&gt;.  YMMV and all that.
&lt;/p&gt;</description>
  <author>Guy Antony Halse</author>
  <pubDate>Thu, 29 May 2008 09:04:00 +0200</pubDate>
</item>

<item>
  <title>Ubuntu 6.06 LTS to 8.04 LTS on a Xen VPS</title>
  <link>http://blog.mombe.org/systems/hardy.htm</link>
  <description>
&lt;p&gt;
I've just upgraded the server hosting this blog from Dapper (6.06 LTS) to
Hardy (8.04 LTS).  I started by &lt;a
href=&quot;https://help.ubuntu.com/community/HardyUpgrades&quot;&gt;following the
instructions&lt;/a&gt;, which seemed simple enough.
&lt;/p&gt;

&lt;p&gt;
Unfortunately, as apt started processing the post-install configurations I
started seeing a lot of errors  Lots of packages (apache, mysql, amavis,
etc) had --configure fail with errors like:
&lt;pre&gt;Segmentation fault
dpkg: error processing w3m (--configure):
 subprocess post-install script returned error exit status 139&lt;/pre&gt;

&lt;p&gt;
Googling the problem produced &lt;a
href=&quot;https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/152664&quot;&gt;this&lt;/a&gt;,
which suggested the problem was related to the fact that the machine in
question was a VPS running under Xen.  The suggested solution was to
uninstall libc6-i686 and replace it with libc6-xen.  Unfortunately I didn't
have libc6-i686 installed, and installing libc6-xen didn't help ...
&lt;/p&gt;

&lt;p&gt;
After much head scratching and experimentation, I stumbled across the
answer.  Or more realistically, I figured out what the failing packages had
in common and it triggered a distant memory.  All the packages use crypto of
some form.  SSl or TLS.  And I vaugely remember that &lt;a
href=&quot;http://wiki.xensource.com/xenwiki/XenFaq#head-31ebe1eb6c34c5d4044559364d1048bf8ea1cae7&quot;&gt;Xen
has a problem with TLS&lt;/a&gt; that I had to fix in 6.06.
&lt;/p&gt;

&lt;p&gt;
The suggested solution is to rename /lib/tls to /lib/tls.disabled.  I'd
already done this in the past (the directory was there as evidence), but the
8.04 upgrade had replaced /lib/tls.  Sure enough, removing the directory
fixed the problems :-)  I then installed libc6-xen, which put in a
Xen-friendly /lib/tls.
&lt;/p&gt;</description>
  <author>Guy Antony Halse</author>
  <pubDate>Sun, 25 May 2008 23:58:00 +0200</pubDate>
</item>

  </channel>
</rss>
