<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: debian</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/debian/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Upgrading To Debian Squeeze</title>
      <link>https://chrisjrob.com/2011/04/05/upgrading-to-debian-squeeze/</link>
      <pubDate>Tue, 05 Apr 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/04/05/upgrading-to-debian-squeeze</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>I finally decided to upgrade my work desktop to Debian Squeeze:</p>

<h2 id="preparing-for-the-upgrade">Preparing for the Upgrade</h2>

<p>I manually removed all but the official lenny repositories (and removed
the Debian Volatile repository which is no longer used), and updated
them to “squeeze”:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo vim /etc/apt/sources.list
deb http://91.121.125.139/debian/ squeeze main non-free contrib
deb-src http://91.121.125.139/debian/ squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main non-free contrib
deb-src http://security.debian.org/ squeeze/updates main non-free contrib
</code></pre></div></div>

<p>Next, in order to minimise download time, I reviewed my installed
packages:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo dpkg -l | grep "ii " | less
</code></pre></div></div>

<p>And I removed all the unnecessary packages. In particular I decided to
remove all of KDE, as I am now using pekwm. When removing packages I
found apt-get kept trying to upgrade large numbers of packages. Aptitude
was much better, as instead of just trying to install a load of
packages, it reported the problem (e.g. package XYZ will be broken by
this change) and let me choose the solution. I just added the packages
that would be broken to the list of packages to be removed.</p>

<h2 id="upgrade-apt-and-dpkg">Upgrade apt and dpkg</h2>

<p>Then I installed apt and dpkg, to save these from having to be upgraded
during the upgrade process:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get update
$ sudo apt-get install apt dpkg
</code></pre></div></div>

<h2 id="upgrade-to-squeeze">Upgrade to Squeeze</h2>

<p>Lastly, I ran the upgrade to squeeze with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get dist-upgrade
</code></pre></div></div>

<p>During the upgrade I receive warnings about <code class="language-plaintext highlighter-rouge">/lib/firmware/e100</code>
missing. Mindful of the Debian’s much touted removal of non-free
drivers, I did an <code class="language-plaintext highlighter-rouge">apt-file search e100</code> which revealed that I needed to
install the <code class="language-plaintext highlighter-rouge">firmware-linux-nonfree</code> package. This done, I rebooted.</p>

<h2 id="first-boot">First Boot</h2>

<p>It booted fine to the command prompt, but of course without a login
manager it got no further. I simply typed startx to get into pekwm and
it all worked perfectly.</p>

<h2 id="installing-kde">Installing KDE</h2>

<p>I decided to install KDE again, although I would struggle to explain
why, curiosity perhaps. I installed kde-core and it all just worked
perfectly, with a neat first time wizard to handle the migration of
configuration from KDE3.5 to KDE4, excellent work.</p>

<p>I used KDE4 for a few hours before returning to pekwm.</p>

<h2 id="conclusions">Conclusions</h2>

<p>So far Squeeze has been flawless and yet another Debian dist-upgrade
without a hitch. Well done Debian.</p>

<p>KDE looks great and seemed to work exactly as it ought. Over the few
hours I encountered no problems whatsoever. But I do wish KDE would
learn from some of the features of PekWM - I just love the
left-mouse-click on the screen edge to move to the next window, I love
the ability to group windows and I love the fact that you can resize
windows to fill the available space.</p>

<p>I am not saying that all those features should be made the default in
KDE, such matters are subjective, but they ought to at least be possible
in KDE and as far as I can tell they are not. There is a screen edge
option, but it works poorly, relying on you holding the mouse at the
screen edge for a definable period of time.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Virtualization With KVM On A Debian Squeeze Server</title>
      <link>https://chrisjrob.com/2011/03/14/virtualization-with-kvm-on-a-debian-squeeze-server-howtoforge-linux-howtos-and-tutorials/</link>
      <pubDate>Mon, 14 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/14/virtualization-with-kvm-on-a-debian-squeeze-server-howtoforge-linux-howtos-and-tutorials</guid>
      <description>
       <![CDATA[
         
         <p>A nice how-to for KVM and libvirt on Debian Squeeze:</p>

<ul>
  <li><a href="http://www.howtoforge.com/virtualization-with-kvm-on-a-debian-squeeze-server">Virtualization With KVM On A Debian Squeeze Server</a></li>
</ul>

<!--more-->

<p>I have used KVM, but never with libvirt.  I understand that libvirt is a
standard api for managing various virtualisation technologies, e.g. KVM,
QEMU, Xen and others, giving you a common way of managing your guests
regardless of the technology in use.</p>

<p>For more information please visit:</p>

<ul>
  <li><a href="http://www.howtoforge.com/virtualization-with-kvm-on-a-debian-squeeze-server">Virtualization With KVM On A Debian Squeeze Server</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Where Are Debian News And Debaday</title>
      <link>https://chrisjrob.com/2011/03/01/where-are-debian-news-and-debaday/</link>
      <pubDate>Tue, 01 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/01/where-are-debian-news-and-debaday</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>I went to look for an article on fcheck, that I originally found on
<a href="http://debaday.debian.net">http://debaday.debian.net</a>, only to find the site down, there is 
<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543343" title="Debian Bug 543343">a related bug</a>,
but no news on where it has gone nor why.  The debaday service was
fantastic for finding out about useful packages, in fact that was how I
learned about fcheck.</p>

<p>Then I ended up at <a href="http://news.debian.net/">http://news.debian.net/</a>, and what do I see but:</p>

<!--more-->

<blockquote>
  <p>news.debian.net is closing. In the next days, the website will become
a static copy.</p>

  <p>Thank you for following all this 19 months!</p>
</blockquote>

<p>No explanation, just that.  If it was coming back soon, one would have
expected the announcement to state that, so the assumption has to be
that these valuable services have both come to an end.</p>

<p>This makes me sad.  The answer is for the community to leap in, and I
hope this time that the work can be distributed; so that it is not
reliant on any one person.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install Debian Squeeze With Raid1 + LVM</title>
      <link>https://chrisjrob.com/2011/03/01/install-debian-squeeze-with-raid1lvm/</link>
      <pubDate>Tue, 01 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/01/install-debian-squeeze-with-raid1lvm</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/hp-proliant-microserver-n36l.jpg" align="right" alt="Featured Image">
         
         <p>I’ve just bought a new <a href="http://h10010.www1.hp.com/wwpc/uk/en/sm/WF06a/15351-15351-4237916-4237917-4237917-4248009.html?jumpid=in_r2515_uk/en/smb/psg/psc404redirect-ot-xx-xx-/chev/" title="HP N36L Microserver">HP N36L Microserver</a>,
for £210 with £100 cashback.  It came with a 250gb SATA, so I added a second
250gb SATA; so that I could have a simple software RAID array.  I also added
2gb of Crucial RAM.</p>

<!--more-->

<p>When the server arrived, I was surprised to find it had RAID built into
it, but my understanding is that this is FakeRAID and thus should be
avoided at all costs.  If you were particularly interested in that
 option, with particular reference to Windows Home Server (yikes) then
<a href="http://www.tenniswood.co.uk/technology/windows-home-server/how-to-setup-a-raid-array-on-a-hp-microserver/" title="How to setup a raid array on a HP Microserver">this page may be helpful</a>.</p>

<p>I plugged in <a href="http://linitx.com/viewproduct.php?prodid=12992" title="IODD External Harddrive">my wonderful IODD ISO drive</a>
and selected Debian Squeeze AMD64 netinstall, and off I went.  When it
came to the partitioning, you need to carry this out manually, in the
following order:</p>

<ul>
  <li>Partition <strong>both disks </strong>as follows:
    <ul>
      <li>Create boot primary partition (about 500mb)
        <ul>
          <li>Set mount as /boot and make bootable</li>
        </ul>
      </li>
      <li>Create partition using most of the rest of the first drive (e.g.
247gb)
        <ul>
          <li>Set partition as Use as physical volume for RAID</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Configure software RAID
    <ul>
      <li>Create MD Device, RAID1, 2 devices, 0 spare devices</li>
      <li>Select the RAID partition on each drive</li>
    </ul>
  </li>
  <li>Create Physical Volumes for LVM
    <ul>
      <li>Create volume group</li>
      <li>Create suitable volumes for your systems, e.g. swap (2 x
RAM, root (10GB or so), home (to your taste), usr (2gb+), var
(2gb+), tmp (1gb+).
        <ul>
          <li>it is a good idea not to use the whole space, as the whole
benefit to LVM is being able to then add available space
into any volume</li>
        </ul>
      </li>
      <li>I also created a large volume for /var/lib/vz/private, as this
will be an openvz server.</li>
    </ul>
  </li>
  <li>Partition disks
    <ul>
      <li>Set each LVM volume to use the appropriate file system type,
e.g. ext3 or ext4, and set the appropriate mountpoint, e.g. home
should be /home etc, swap should be allocated to swap space etc</li>
    </ul>
  </li>
</ul>

<p>I found this howto on <a href="http://dev.jerryweb.org/raid/" title="LVM + RAID for debian-installer">LVM + RAID for debian-installer</a>
most useful but, providing you follow the logical progression, it really
is not as difficult as it seems.</p>

<p>After the partitioning, I continued with the installation, removing all
options including “Standard System” from the software profiles; so that
I basically installed a base system, which is how I prefer it.</p>

<p>Next I installed: sudo, <a href="http://en.wikipedia.org/wiki/GNU_Screen" title="Wikipedia::GNU Screen">GNU Screen</a>,
openssh-server, vim, fcheck, locales, localepurge, apt-file,
 apt-show-versions and nullmailer (ssmtp is  better if your mailserver
requires secure authentication).  Doubtless you have your own favourite
packages to install!</p>

<p>Next step will be to configure as a small
<a href="http://openvz.org" title="openvz">openvz</a> server, and migrate the virtual
machines off my old server (which I will be commissioning as a storage
server).</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>OpenOffice Lock Files Not Being Removed On DavFS2</title>
      <link>https://chrisjrob.com/2011/02/26/openoffice-lock-files-not-being-removed-on-davfs2/</link>
      <pubDate>Sat, 26 Feb 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/02/26/openoffice-lock-files-not-being-removed-on-davfs2</guid>
      <description>
       <![CDATA[
         
         <p>I have a mystery - I have two Debian Lenny servers both running the same
version of davfs2 and the same version of openoffice.org.  When you open
an openoffice document, openoffice creates a lock file of the same name,
but prefixed with “.~lock”.  This file retains a copy of the document
until you save and exit, whereon it is removed automatically.</p>

<p>The mystery is that, at one of our branches, it reduces size to 0, but
is never actually removed; after which time the file cannot be edited
until that lock file is manually removed.</p>

<!--more-->

<p>Both servers have the same <code class="language-plaintext highlighter-rouge">davfs2.conf</code> and I have done a diff between
the two servers:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for file in `find /usr/lib/openoffice/ -name *.xcs -type f`; \
  do echo "=== $file ==="; \
  ssh root@other-server "cat $file" | diff $file - ; \
  done
</code></pre></div></div>

<p>But there are no differences.  I have checked users’ <code class="language-plaintext highlighter-rouge">davfs2.conf</code> files,
but these are all commented out entirely.</p>

<p>Previously I had “fixed” this problem, by setting UseDocumentOOoLockFile
to false in:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/usr/lib/openoffice/basis3.2/share/registry/schema/org/openoffice/Office/Common.xcs
</code></pre></div></div>

<p>This doesn’t stop the lock files being created, but it does tell
Openoffice not to worry about them.  Unfortunately this no longer seems
to be working, and I really can’t understand why.</p>

<p>Currently I have “fixed” the problem by setting <code class="language-plaintext highlighter-rouge">davfs2.conf</code> to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>use_locks 0
</code></pre></div></div>

<p>This is now allowing the lock files to be removed properly.  I believe
that actually this will work quite well, with the <code class="language-plaintext highlighter-rouge">UseDocumentOOoLockFile</code>
set to true, given that 99.9% of our documents are Openoffice documents.
 Always assuming I can persuade Openoffice to obey its own registry!</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Debian 6 First Impressions Linux Magazine</title>
      <link>https://chrisjrob.com/2011/02/23/debian-6-first-impressions-linux-magazine/</link>
      <pubDate>Wed, 23 Feb 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/02/23/debian-6-first-impressions-linux-magazine</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/linux-magazine-debian6.png" align="right" alt="Featured Image">
         
         <p>Apparently I am not the only one that thinks that the Debian graphics
are appalling:</p>

<table>
  <tbody>
    <tr>
      <td>[Debian 6: First Impressions</td>
      <td>Linux Magazine](http://www.linux-mag.com/id/8188/)</td>
    </tr>
  </tbody>
</table>

<!--more-->

<p>Debian did have a design contest of sorts, well a brief mailing list
thread that had the impossible task of voting the best out of just a
handful of rubbish themes.  Given the choices, personally I would have
opted for the upstream themes, or just to stick with the Debian Lenny
theme which was perfectly okay.</p>

<p>I do wonder how easy or difficult it is to submit themes - do you have
to be a Debian developer?  If so, then they should really think about
lowering the bar.  I’m sure that I could produce something better,
although <a href="http://kde-look.org/content/search.php?user=chrisjrob&amp;search=Search" title="chrisjrob @ kde-look">my last attempt</a>
does not appear to be getting widespread approval.</p>

<p>Anyhow, we don’t love Debian for how pretty is looks - we can soon
change the theme if it bothers us.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Etherpad on Debian Squeeze</title>
      <link>https://chrisjrob.com/2011/02/07/etherpad-on-debian-squeeze/</link>
      <pubDate>Mon, 07 Feb 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/02/07/etherpad-on-debian-squeeze</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/etherpad.png" align="right" alt="Featured Image">
         
         <p>Just installed <a href="http://etherpad.org/">Etherpad</a> on our openvz server.  Having created an openvz guest for the purpose, running Debian Squeeze, installing Etherpad proved no more difficult than adding the Etherpad repository to your <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code>:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo su
# echo "deb http://apt.etherpad.org all ." &amp;gt;&amp;gt; /etc/apt/sources.list
# apt-get update
# apt-get install etherpad
</code></pre></div></div>

<p>All the requisite dependencies were brought in.  Unfortunately the etherpad server did not start after installation, and I had to do the following commands:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># sed -i.orig 's/local/share/' /etc/init.d/etherpad
</code></pre></div></div>

<p>Then it started perfectly simply with <code class="language-plaintext highlighter-rouge">/etc/init.d/etherpad</code> start.</p>

<p>To make this happen automatically on boot:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># update-rc.d etherpad defaults
</code></pre></div></div>

<p>If you would prefer to use openjdk than sun-java (and you should), then google for “etherpad openjdk”.  Sorry to say I was in too much of a hurry on this occasion.</p>

<h3 id="references">References</h3>

<ul>
  <li><a href="http://etherpad.org/">Etherpad</a></li>
  <li><a href="http://sis.bthstudent.se/2011/525/how-to-install-etherpad-on-debian-lenny/">http://sis.bthstudent.se/2011/525/how-to-install-etherpad-on-debian-lenny/</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Skype 64-bit</title>
      <link>https://chrisjrob.com/2010/12/05/skype-64-bit/</link>
      <pubDate>Sun, 05 Dec 2010 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/12/05/skype-64-bit</guid>
      <description>
       <![CDATA[
         
         <p>When I bought my Toshiba laptop and opted for 64-bit Debian Squeeze I made one compromise, I gave up Skype.  This was for the simple reason that it would not work on 64-bit Linux (or 64-bit anything, come to that).  Later I heard from several people that you could install the 32-bit version using the 32-bit libraries, but I was conscious that this was sub-optimal and in any case Skype should be punished for being closed source and, perhaps more to the point, for not providing a 64-bit version.</p>

<!--more-->

<p>Skype is important, though, for new Linux users.  It is no good telling them to use SIP, as their friends have Skype and most people do not want to make the sacrifices that some of us feel are necessary.</p>

<p>Feeling a little guilty, I decided to give it a go.  I was expecting to download the 32-bit version of Skype, and the 32-bit libraries, but was surprised to see a 64-bit version for Ubuntu.  Given that Ubuntu is based on Debian, it was worth a try:</p>

<ul>
  <li><a href="http://www.skype.com/en/download-skype/skype-for-linux/">Download Skype for Linux</a></li>
</ul>

<p>I installed it with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo dpkg -i skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb
</code></pre></div></div>

<p>And, erm, it seems to work.  Well at least the test call worked perfectly.</p>

<p>So we seem to be able to tick the Skype 64-bit box as “job done”, now how about iTunes…</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install Ruby on Rails3 on Debian Lenny</title>
      <link>https://chrisjrob.com/2010/11/20/install-ruby-on-rails3-on-debian-lenny/</link>
      <pubDate>Sat, 20 Nov 2010 16:15:40 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/11/20/install-ruby-on-rails3-on-debian-lenny</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>I know nothing about Ruby on Rails, but this is how I ended up successfully (I think!) installing it.  There may be better ways.</p>

<h2 id="download-and-compile-ruby">Download and Compile Ruby</h2>

<p>At the time of writing, the current version is 1.9.2</p>

<ul>
  <li>http://www.ruby-lang.org/en/downloads/</li>
</ul>

<!--more-->

<p>I tend to use checkinstall wherever possible, so that I can manage the package via apt-get and dpkg.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install checkinstall

$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
$ tar -xvvzf ruby-1.9.2-p0.tar.gz
$ cd ruby-1.9.2-p0

$ ./configure
$ make
$ sudo checkinstall
</code></pre></div></div>

<p>Set the version number to 1.9.2</p>

<h2 id="install-rails">Install Rails</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install rails
</code></pre></div></div>

<h2 id="install-passenger">Install Passenger</h2>

<p><strong>This assumes you are using apache2.</strong></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install passenger
$ sudo passenger-install-apache2-module
</code></pre></div></div>

<p>Please read thoroughly the output from this the last command, as it will give you the information you require for the next section.</p>

<h2 id="enable-passenger">Enable Passenger</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd /etc/apache2/mods-available
</code></pre></div></div>

<p>Create or edit the following files, using the output from passenger-install-apache2-module above.</p>

<h3 id="passengerconf">passenger.conf</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;IfModule mod_passenger.c&gt;
    PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15
    PassengerRuby /usr/local/bin/ruby
&lt;/IfModule&gt;
</code></pre></div></div>

<h3 id="passengerload">passenger.load</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
</code></pre></div></div>

<h3 id="enable-in-apache">Enable in Apache</h3>

<p>You should now be able to enable the apache module with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo a2enmod passenger
</code></pre></div></div>

<h2 id="update-vhosts">Update Vhosts</h2>

<p>This will vary depending on your system, but you are aiming to have a vhost configuration similar to the following:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;VirtualHost *:80&gt;
    ServerName www.yourhost.com
    DocumentRoot /somewhere/public    # &lt;-- be sure to point to 'public'!
    RailsEnv development              # &lt;-- change to testing/production as appropriate (see note below)
    RackEnv development               # &lt;-- change to testing/production as appropriate (see note below)
    &lt;Directory /somewhere/public&gt;
       AllowOverride all              # &lt;-- relax Apache security settings
       Options -MultiViews            # &lt;-- MultiViews must be turned off
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre></div></div>

<p>By default, passenger uses the Ruby on Rails production database, which may or may not be appropriate, depending on where you are in the development process.  If you are still developing your rails app, then you may want to set in the above:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>RailsEnv development
RackEnv development
</code></pre></div></div>

<p>In theory you only need the former, but the presence of the file config.ru in your application directory makes passenger require RackEnv instead.</p>

<p>Otherwise, when making changes to your database, do remember to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># db:migrate RAILS_ENV=production
# touch tmp/restart.txt
</code></pre></div></div>

<p>Otherwise your application will not work.</p>

<h2 id="ispconfig">ISPConfig</h2>

<p>If you are using ISPConfig, then I currently have this working by adding the following to the sites Apache Directives in the admin control panel:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>DocumentRoot /var/www/web11/web/blog/public
&lt;Directory /var/www/web11/web/blog/public&gt;
    AllowOverride all
    Options -MultiViews
&lt;/Directory&gt;
</code></pre></div></div>

<p>And then edit <code class="language-plaintext highlighter-rouge">/etc/apache2/vhosts/Vhosts_ispconfig.conf</code> and remove the old DocumentRoot line from the relevant vhost section.  Unfortunately you will have to do this everytime you change your site configuration.  This is very poor, there has to be a better way.</p>

<h2 id="installing-jquery">Installing JQuery</h2>

<p>These are rather poor notes, you are probably better looking elsewhere, but the key thing is that the long and complex instructions for installing jquery that abound on the Internet should be avoided.  The installation should be a mere couple of commands.</p>

<p>Either type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ gem install jquery-rails
</code></pre></div></div>

<p>Or as I preferred, edit your Gemfile (in the root of your rails project) and add:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>gem 'jquery-rails'
</code></pre></div></div>

<p>My handwritten notes don’t say this, but I believe you would then need to run:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ bundle install
</code></pre></div></div>

<p>And then (add “–ui” on the end of the following command to include the jquery UI):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ rails generate jquery:install
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
    <item>
      <title>A quick and dirty install of LibreOffice on Debian</title>
      <link>https://chrisjrob.com/2010/10/28/a-quick-and-dirty-install-of-libreoffice-on-debian/</link>
      <pubDate>Thu, 28 Oct 2010 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/10/28/a-quick-and-dirty-install-of-libreoffice-on-debian</guid>
      <description>
       <![CDATA[
         
         <p>Following the forking of OpenOffice.org into LibreOffice under the auspices of the new Document Foundation, I decided that I should take a look.</p>

<p>First I removed OpenOffice:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get --purge remove ".*openoffice.*"
</code></pre></div></div>

<!--more-->

<p>Then I visited <a href="http://download.documentfoundation.org/libreoffice/testing/">the Document Foundation LibreOffice website</a> and downloaded:</p>

<ul>
  <li>LibO_3.3.0_beta2_Linux_x86_install-deb_en-US.tar.gz</li>
  <li>LibO_3.3.0_beta2_Linux_x86_langpack-deb_en-GB.tar.gz</li>
</ul>

<p>Then, having checked that the md5sums matched, I extracted both with <code class="language-plaintext highlighter-rouge">tar -xvvzf</code> and changed to the DEBS directory in each and ran:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo dpkg -i *.deb
</code></pre></div></div>

<p>All very clumsy, but this was only my work PC, which isn’t mission critical, as I generally use NX client to log into my desktop on our LTSP Server.</p>

<p>So what are my first impressions?  Sadly these will have to wait for another day, apart from the obvious branding change, I couldn’t see much different, but the good news is that it does all appear to be working.</p>

<p>I am not sure whether LibreOffice yet has the <a href="http://go-oo.org">Go-OO Patches</a> patches, which I believe were included by default in Debian and Ubuntu, but the fact that they are being combined into the core must be good news.</p>

<p>I am really hoping that LibreOffice improves quickly on OpenOffice, which still falls considerably short of Microsoft Office for power users.  In particular Macros, Pivot Tables, Conditional Formatting, and Mailmerge all need a lot of work.  Not to speak of the appalling performance, it really is a system hog.  I can’t help feeling that it really needs to be re-written from scratch, but I appreciate that is unrealistic.</p>

<p>In the meantime I have hopes that KOffice will soon step up to the mark - KWord’s mailmerge feature is a lesson in simplicity that OpenOffice/LibreOffice would do well to learn.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Installing Ruby on Rails</title>
      <link>https://chrisjrob.com/2010/10/18/install-ruby-on-rails/</link>
      <pubDate>Mon, 18 Oct 2010 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/10/18/install-ruby-on-rails</guid>
      <description>
       <![CDATA[
         
         <p>I need a way of creating some quick and dirty web apps for internal use.  To this end, I decided to give Ruby on Rails a try.  Unfortunately it is in heavy development and the Debian packages have not kept up.  I decided to try and install from source, and, after several blind alleys, I ended up with quite a simple installation…</p>

<!--more-->

<h2 id="install-ruby-on-rails3-on-debian-lenny">Install Ruby on Rails3 on Debian Lenny</h2>

<h3 id="warning">Warning</h3>

<p>I know nothing about Ruby on Rails, but this is how I ended up successfully (I think!) installing it.  There may be better ways.</p>

<h3 id="download-and-compile-ruby">Download and Compile Ruby</h3>

<p>At the time of writing, the current version is 1.9.2</p>

<ul>
  <li><a href="http://www.ruby-lang.org/en/downloads/">http://www.ruby-lang.org/en/downloads/</a></li>
</ul>

<p>I tend to use checkinstall wherever possible, so that I can manage the package via apt-get and dpkg.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install checkinstall

$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
$ tar -xvvzf ruby-1.9.2-p0.tar.gz
$ cd ruby-1.9.2-p0

$ ./configure
$ make
$ sudo checkinstall
</code></pre></div></div>

<p>Set the version number to 1.9.2</p>

<h3 id="install-rails">Install Rails</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install rails
</code></pre></div></div>

<h3 id="install-passenger">Install Passenger</h3>

<p>N.B. This assumes you are using apache2.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install passenger
$ sudo passenger-install-apache2-module
</code></pre></div></div>

<p>Please read thoroughly the output from this the last command, as it will give you the information you require for the next section.</p>

<h3 id="enable-passenger">Enable Passenger</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd /etc/apache2/mods-available
</code></pre></div></div>

<p>Create or edit the following files, using the output from passenger-install-apache2-module above.</p>

<h4 id="passengerconf">passenger.conf</h4>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;IfModule mod_passenger.c&gt;
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15
PassengerRuby /usr/local/bin/ruby
&lt;/IfModule&gt;
</code></pre></div></div>

<h4 id="passengerload">passenger.load</h4>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
</code></pre></div></div>

<h4 id="enable-in-apache">Enable in Apache</h4>

<p>You should now be able to enable the apache module with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo a2enmod passenger
</code></pre></div></div>

<h3 id="update-vhosts">Update Vhosts</h3>

<p>This will vary depending on your system, but you are aiming to have a vhost configuration similar to the following:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;VirtualHost *:80&gt;
    ServerName www.yourhost.com
    DocumentRoot /somewhere/public    # &lt;-- be sure to point to 'public'!
    RailsEnv development              # &lt;-- change to testing/production as appropriate (see note below)
    RackEnv development               # &lt;-- change to testing/production as appropriate (see note below)
    &lt;Directory /somewhere/public&gt;
        AllowOverride all             # &lt;-- relax Apache security settings
        Options -MultiViews           # &lt;-- MultiViews must be turned off
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre></div></div>

<p>By default, passenger uses the Ruby on Rails production database, which may or may not be appropriate, depending on where you are in the development process.  If you are still developing your rails app, then you may want to set in the above:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>RailsEnv development
RackEnv development
</code></pre></div></div>

<p>In theory you only need the former, but the presence of the file <code class="language-plaintext highlighter-rouge">config.ru</code> in your application directory makes passenger require RackEnv instead.</p>

<p>Otherwise, when making changes to your database, do remember to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># db:migrate RAILS_ENV=production
# touch tmp/restart.txt
</code></pre></div></div>

<p>Otherwise your application will not work.</p>

<h3 id="ispconfig">ISPConfig</h3>

<p>If you are using ISPConfig, then I currently have this working by adding the following to the sites Apache Directives in the admin control panel:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>DocumentRoot /var/www/web11/web/blog/public
&lt;Directory /var/www/web11/web/blog/public&gt;
    AllowOverride all
    Options -MultiViews
&lt;/Directory&gt;
</code></pre></div></div>

<p>And then edit <code class="language-plaintext highlighter-rouge">/etc/apache2/vhosts/Vhosts_ispconfig.conf</code> and remove the old DocumentRoot line from the relevant vhost section.  Unfortunately you will have to do this everytime you change your site configuration.  This is very poor, there has to be a better way.</p>

<h3 id="installing-jquery">Installing JQuery</h3>

<p>These are rather poor notes, you are probably better looking elsewhere, but the key thing is that the long and complex instructions for installing jquery that abound on the Internet should be avoided.  The installation should be a mere couple of commands.</p>

<p>Either type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ gem install jquery-rails
</code></pre></div></div>

<p>Or as I preferred, edit your Gemfile (in the root of your rails project) and add:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>gem 'jquery-rails'
</code></pre></div></div>

<p>My handwritten notes don’t say this, but I believe you would then need to run:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ bundle install
</code></pre></div></div>

<p>And then (add <code class="language-plaintext highlighter-rouge">--ui</code> on the end of the following command to include the jquery UI):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ rails generate jquery:install
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
    <item>
      <title>QEMU-KVM Black Screen</title>
      <link>https://chrisjrob.com/2010/09/28/qemu-kvm-black-screen/</link>
      <pubDate>Tue, 28 Sep 2010 00:00:03 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/09/28/qemu-kvm-black-screen</guid>
      <description>
       <![CDATA[
         
         <p>I upgraded one of our servers yesterday, including an upgrade from the Debian Stable kvm72 package, to the Debian Backports qemu-kvm version 0.12.4, whereon I could no longer start our Windows Server 2003 virtual machine.  As soon as the machine started, it locked up completely with just a black screen, and had to be terminated with a kill -9 signal.</p>

<!--more-->

<p>After a considerable time spent googling without any success, I decided to upgrade the Kernel from 2.6.26 to the backports 2.6.32 and normal operation was restored.  I mention this only in the hope that the next person who googles qemu-kvm black screen might be saved a considerable time searching for the solution!</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install FreeNX</title>
      <link>https://chrisjrob.com/2010/07/08/install-freenx/</link>
      <pubDate>Thu, 08 Jul 2010 16:01:27 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/07/08/install-freenx</guid>
      <description>
       <![CDATA[
         
         <h2 id="introduction">Introduction</h2>

<p>Installing from Ubuntu onto Debian Lenny seems sub-optimal, but is quick and dirty.</p>

<h2 id="step-1---add-sources">Step 1 - Add sources</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu intrepid main
# deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu intrepid main
</code></pre></div></div>

<!--more-->

<h2 id="step-2---install-freenx-in-debian">Step 2 - Install FreeNX in Debian</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># aptitude update
# aptitude install freenx
</code></pre></div></div>

<h2 id="step-3---connecting">Step 3 - Connecting</h2>

<p>To connect, you need to download the NoMachine client.  If you have issues with the arrow/cursor keys, please see:</p>

<ul>
  <li><a href="/2010/07/08/fix-nxclient-arrow-keys/">Fix nxclient arrow keys</a></li>
</ul>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://freenx.berlios.de/info.php">FreeNX</a></li>
  <li><a href="http://wiki.debian.org/freenx">FreeNX on Debian Wiki</a> ← Read this</li>
  <li><a href="http://www.debianhelp.co.uk/freenx.htm">FreeNX on DebianHelp</a></li>
  <li><a href="http://www.telemedia.ch/publ/ltsp-howto.html">FreeNX on LTSP</a>
    <ul>
      <li><a href="http://www.telemedia.ch/publ/freenx-setup-howto.html">FreeNX</a></li>
    </ul>
  </li>
  <li><a href="http://www.nomachine.com/">NoMachine</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>KDE Wallpaper</title>
      <link>https://chrisjrob.com/2010/06/26/kde-wallpaper/</link>
      <pubDate>Sat, 26 Jun 2010 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/06/26/kde-wallpaper</guid>
      <description>
       <![CDATA[
         
         <p>In an effort to make my desktop a little more elegant, I have designed some new wallpapers for use with KDE on Debian.  They may be a little too bling for some of you, but I’m quite pleased with them.  All created using free software, in the form of The Gimp.  In the spirit of free software, I have uploaded to <a href="http://kde-look.org/usermanager/search.php?username=chrisjrob&amp;action=contents">KDE Look</a> under a Creative Commons licence.</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install Adempiere on Debian Lenny</title>
      <link>https://chrisjrob.com/2010/02/22/install-adempiere-on-debian-lenny/</link>
      <pubDate>Mon, 22 Feb 2010 17:28:11 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/02/22/install-adempiere-on-debian-lenny</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/adempiere_logo.png" align="right" alt="Featured Image">
         
         <p>I have run through these notes again and corrected the odd mistake and they do seem to work.  At least until something changes!!</p>

<p>I have not yet got the init.d script working, but am able to successfully start adempiere and reach the login page.</p>

<p>I need to review the postgresql security settings as “trust” for all is probably unsafe.</p>

<!--more-->

<p>Lastly, I am an adempiere newbie, so please take everything I say with a pinch of salt.</p>

<p>Good luck!</p>

<h2 id="install-a-debian-system">Install a Debian system</h2>

<p>Please visit Debian for guidance on how to do this.  Personally I like to install an absolutely bare system as my starting point (I even uncheck the option for “standard system”).</p>

<p>It is possible, I believe, to do a headless (non-GUI) installation, but these instructions do require a desktop environment, as some of the setup screens require a GUI.</p>

<p>For example to install a minimal KDE on a Debian base system:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install kdm kde-core
</code></pre></div></div>

<h2 id="install-tofrodos">Install tofrodos</h2>

<p>Required for the database migration.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install tofrodos
</code></pre></div></div>

<h2 id="install-postgresql--82">Install Postgresql &gt; 8.2</h2>

<p>Fortunately Debian includes version 8.3, so a simple apt-get should do the trick:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install postgresql postgresql-doc oidentd
</code></pre></div></div>

<p>And a ton of dependencies will also be installed.</p>

<p>Once installed, you should have a functional postgresql database installed and running.  Debian places the database in <code class="language-plaintext highlighter-rouge">/var/lib/postgresql/version</code> the default database is named <code class="language-plaintext highlighter-rouge">main</code> and is located in <code class="language-plaintext highlighter-rouge">/var/lib/postgresql/version/main</code>. We assume in this guide that Adempiere’s database will be created in the default cluster.</p>

<h2 id="install-java">Install Java</h2>

<p>sun-java6 is the version to install, unless you are using the ajax interface in which case you can even use openjdk. To do add <code class="language-plaintext highlighter-rouge">contrib non-free</code> to <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code> repositories.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install sun-java6-jdk sun-java6-fonts sun-java6-jre sun-java6-plugin
</code></pre></div></div>

<h2 id="configure-postgresql-for-java">Configure postgresql for java</h2>

<p>Now we must add the <code class="language-plaintext highlighter-rouge">JAVA_HOME</code> variable to the <code class="language-plaintext highlighter-rouge">/etc/postgresql/8.3/main/environment</code> so postgresql can find the java virtual machine:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>JAVA_HOME = '/usr/lib/jvm/java-6-sun'
</code></pre></div></div>

<h2 id="authorise-users-for-postgres">Authorise users for postgres</h2>

<p>Now we must enable users to access the database as the postgres user, which is the system user of the database and will be used by the <code class="language-plaintext highlighter-rouge">RUN_ImportAdempiere.sh</code> script to import the database data.</p>

<p>Add the following lines to <code class="language-plaintext highlighter-rouge">/etc/postgresql/8.3/main/pg_hba.conf</code>:</p>

<p><strong>You may wish to change the IP address to the external IP</strong></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Database administrative login by UNIX sockets
#local   all         postgres                          ident sameuser

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                                 trust

# IPv4 local connections for user postgres:
host    all         postgres       127.0.0.1/32         trust
# IPv4 local connections for user adempiere:
host    all         all            127.0.0.1/32         trust
# IPv6 local connections:
host    all         all            ::1/128              trust
</code></pre></div></div>

<p><strong>trust or md5 - trust is probably wrong</strong></p>

<h2 id="configure-postgresql-listen-address">Configure postgresql listen address</h2>

<p>Running the database configured in localhost isn’t probably what you want, as all the clients will need access to this database and the address you tell the script the database runs from will be remembered in the future (but it can be altered). So you should probably put you server external IP address (the address of the eth0 interface i.e.) instead of the 127.0.0.1 address of the previous line.</p>

<p>If this is a test server and you will only be accessing it locally, then leaving it as 127.0.0.1 is fine.</p>

<h2 id="restart-postgresql">Restart Postgresql</h2>

<p>We must now restart the postgresql server to active the changes in the configuration files:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># /etc/init.d/postgresql-8.3 restart
</code></pre></div></div>

<h2 id="install-subversion">Install Subversion</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install subversion
</code></pre></div></div>

<h2 id="download-adempiere-from-svn-head">Download Adempiere from SVN Head</h2>

<p><strong>This could take a very long time, depending on your Internet bandwidth</strong></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ svn co https://adempiere.svn.sourceforge.net/svnroot/adempiere/trunk */svnworkdir/adempiere
</code></pre></div></div>

<h2 id="build-adempiere">Build Adempiere</h2>

<p>Open a terminal window.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ export JAVA_HOME='/usr/lib/jvm/java-6-sun'
$ cd */svnworkdir/adempiere/utils_dev
$ ./RUN_build.sh
</code></pre></div></div>

<h2 id="install-adempiere">Install Adempiere</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># unzip */svnworkdir/adempiere/install/build/Adempiere_354a.zip -d /opt
</code></pre></div></div>

<p>Now the extracted folder <code class="language-plaintext highlighter-rouge">/opt/Adempiere</code> exists in <code class="language-plaintext highlighter-rouge">/opt</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd /opt
$ sudo mv Adempiere adempiere-3.54a
$ sudo ln -sf adempiere-3.54a adempiere
</code></pre></div></div>

<p>Now it looks like this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ ls -l /opt
$ total 4
$ lrwxrwxrwx  1 root root   15 Oct 18 19:22 adempiere -&gt; adempiere-3.54a
$ drwxr-xr-x 10 root root 4096 Oct 18 19:11 adempiere-3.54a
</code></pre></div></div>

<h2 id="create-the-database">Create the database</h2>

<p>Switch to the postgres user:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>debian:/opt$ sudo su - postgres
postgres@debian:*$ export ADEMPIERE_HOME="/opt/adempiere"
postgres@debian:*$ /usr/bin/createdb adempiere
postgres@debian:*$ /usr/bin/createuser adempiere
Shall the new role be a superuser? (y/n) y
</code></pre></div></div>

<h2 id="set-database-password">Set database password</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>postgres@debian:*$ echo "ALTER USER adempiere WITH PASSWORD 'your-chosen-password';" | psql
ALTER ROLE
</code></pre></div></div>

<h2 id="check-database">Check database</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>postgres@debian:*$ echo "select * from pg_user; select * from pg_roles;" | psql
  usename  | usesysid | usecreatedb | usesuper | usecatupd |  passwd  | valuntil | useconfig
-----------+----------+-------------+----------+-----------+----------+----------+-----------
 postgres  |       10 | t           | t        | t         | ******** |          |
 adempiere |    16385 | t           | t        | t         | ******** |          |
(2 rows)

  rolname  | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcatupdate | rolcanlogin | rolconnlimit | rolpassword | rolvaliduntil | rolconfig |  oid
-----------+----------+------------+---------------+-------------+--------------+-------------+--------------+-------------+---------------+-----------+-------
 postgres  | t        | t          | t             | t           | t            | t           |           -1 | ********    |               |           |    10
 adempiere | t        | t          | t             | t           | t            | t           |           -1 | ********    |               |           | 16385
(2 rows)
postgres@debian:*$ exit
</code></pre></div></div>

<h2 id="load-database">Load database</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ export ADEMPIERE_HOME="/opt/adempiere"
$ psql -h localhost -d adempiere -U adempiere &lt; $ADEMPIERE_HOME/data/Adempiere_pg.dmp
</code></pre></div></div>

<h2 id="set-up-adempiere">Set-up Adempiere</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ export ADEMPIERE_HOME="/opt/adempiere"
$ cd $ADEMPIERE_HOME
$ sudo chmod +x *.sh
$ export JAVA_HOME='/usr/lib/jvm/java-6-sun'
$ sudo ./RUN_setup.sh
</code></pre></div></div>

<p>Please note that this section must be able to write to the display, so either the desktop session needs to be root, or use sudo.  If you get an error about connecting to DISPLAY then try using sudo.</p>

<p>The following screen should now be displayed.  Change the database name to adempiere, database type to postgresql, set your mailserver settings.  You may need to set the database server to localhost, if the hostname does not work.</p>

<p><img src="/assets/adempiere_server_setup.png" /></p>

<h2 id="migrate-to-head">Migrate to Head</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd */svnworkdir/adempiere/migration
$ chmod +x *.sh
$ ./migrate_postgresql.sh 354a-trunk commit | psql -U adempiere -d adempiere &gt; 354a-trunk.lst
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "ad_document_action_access_key" for table "ad_document_action_access"
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "r_contactinterest_key" for table "r_contactinterest"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "c_ordersource_pkey" for table "c_ordersource"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "c_ordersource_ad_client_id_key" for table "c_ordersource"
WARNING:  there is no transaction in progress
</code></pre></div></div>

<h2 id="start-server">Start Server</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd $ADEMPIERE_HOME/utils
$ sudo nohup ./RUN_Server2.sh &amp;
$ sudo tail -f nohup.out
</code></pre></div></div>

<p><strong>The output of nohub.out will indicate that the server started in only a few seconds, this is only the JBoss server, the site will not be accessible for several minutes.</strong></p>

<h2 id="client-login">Client Login</h2>

<p>On the server, open a browser and go to: http://hostname.yourdomain/admin/ and follow the Adempiere ZK Webui</p>

<p><strong>http://localhost/admin/ will not work.</strong></p>

<table>
  <thead>
    <tr>
      <th>Usage</th>
      <th>User</th>
      <th>Password</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>System Management</td>
      <td>System</td>
      <td>System</td>
    </tr>
    <tr>
      <td>System Management or any role/company</td>
      <td>SuperUser</td>
      <td>System</td>
    </tr>
    <tr>
      <td>Sample Client Administration</td>
      <td>GardenAdmin</td>
      <td>GardenAdmin</td>
    </tr>
    <tr>
      <td>Sample Client User</td>
      <td>GardenUser</td>
      <td>GardenUser</td>
    </tr>
  </tbody>
</table>

<p>For guidance visit <a href="http://www.adempiere.com/index.php/InstallClient">http://www.adempiere.com/index.php/InstallClient</a>.</p>

<h2 id="optional-install-initd-script">Optional: Install init.d script</h2>

<p>Not essential for a test server (and I have not yet got this working, I suspect because I am not using user = adempiere.</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># ./RUN_Server2Stop.sh</span>
<span class="c"># sudo cp unix/adempiere_Debian.sh /etc/init.d/adempiere</span>
<span class="c"># /etc/init.d/adempiere start </span>
</code></pre></div></div>

<h2 id="read-the-functional-user-manual">Read the Functional User Manual</h2>

<ul>
  <li>http://www.adempiere.com/index.php/Functional_User_Manual</li>
</ul>

<h2 id="references">References</h2>

<ul>
  <li>http://www.adempiere.com/index.php/Debian_and_PostgreSQL_Install</li>
  <li>http://www.adempiere.com/index.php/Adempiere/Libero_Linux_install_from_subversion_head</li>
  <li>http://www.adempiere.com/index.php/Manual_Installation_From_Trunk</li>
  <li>http://www.adempiere.com/index.php/ADempiere_Install_Linux&amp;PostgreSQL</li>
  <li>http://www.adempiere.com/index.php/ADempiere_Install#JDBC_Connection_Error
    <ul>
      <li>http://www.adempiere.com/index.php/CreateDatabase</li>
      <li>http://www.adempiere.com/index.php/InstallComplete</li>
    </ul>
  </li>
  <li>http://www.adempiere.com/index.php/ADempiere_with_Postgresql_on_Ubuntu_9.04_Jaunty</li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Building a new mailserver</title>
      <link>https://chrisjrob.com/2009/05/27/building-a-new-mailserver/</link>
      <pubDate>Wed, 27 May 2009 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/05/27/building-a-new-mailserver</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>Our Debian Lenny <a href="/2009/01/24/ltsp5-clean-install/">LTSP5 Install</a> has hit a road block: currently the site are using a Citrix server at another location over a 256k connection to pick up their emails.  I really didn’t feel that I could ask them all to collect their emails over a 256k connection, so what are the alternatives?</p>

<!--more-->

<p>Well I could upgrade the bandwidth by creating an inter-site VPN, but that will still only provide perhaps 600k (that being the upload bandwidth of the host site).  The solution is to move the mailserver onto the ‘net, so that they can benefit from a full 8mb ADSL download.</p>

<p>After seeking advice, I choose <a href="http://bytemark.co.uk">Bytemark</a> as a trusted Debian VPS supplier, a day later I had my login to my new virtual server.  But what to install?  Advice pointed me in the direction of Postfix and Dovecot, which were not much more than an apt-get install:</p>

<ul>
  <li><a href="http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html">Debian Admin Mailserver</a></li>
</ul>

<p>Great, a working mailserver, but the problem with the installation was that the users were local system accounts, which made it more cumbersome to administer.  The best solution seemed to be LDAP, and I duly followed the guide <a href="http://www.debuntu.org/ldap-server-and-linux-ldap-clients">Debuntu</a> to install, and I managed to integrate LDAP with PAM thus giving me the ability to allow users to login with an LDAP account; but in a nutshell that was exactly what was wrong with this solution - the users <em>had</em> to login to the server, before their system account would be created, and if that was the case I might as well have stuck with local system accounts in the first place.  What I needed was a true virtual mail host.  To that end, I was pointed in the direction of a <a href="http://www.howtoforge.com/postfix-virtual-hosting-with-ldap-and-dovecot-on-ubuntu8.04">Ubuntu howto on Howtoforge</a>.</p>

<p>Okay but this was for Ubuntu not Debian and for one reason and another I simply could not get it working.  After starting from scratch a couple of times, but ending up in the same place, I found that I had to combine the howto with <a href="http://www.howtoforge.com/postfix-virtual-hosting-with-ldap-backend-and-with-dovecot-pop3-imap-on-ubuntu-8.10">this one for 8.10</a>.</p>

<p>Even then it took a fair amount of battling to get it working on Debian Lenny.  The key to most of my problems was in reading the comments on every page, as these include invaluable corrections and suggestions.</p>

<p>So after a week of pain, I now have a working virtual mail host, now I just need to set-up the domains, users and mailgroups.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Protect against rootkits</title>
      <link>https://chrisjrob.com/2009/03/21/protect-against-rootkits/</link>
      <pubDate>Sat, 21 Mar 2009 06:20:17 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/protect-against-rootkits</guid>
      <description>
       <![CDATA[
         
         <p>Apparently <strong>Rootkits</strong> are a major problem in the linux world.  Unlike viruses, you are much more likely to be infected without realising that you even have a problem.  The purpose of this document is twofold:</p>

<ol>
  <li>Check for existing infection</li>
  <li>Protect against future infection</li>
</ol>

<p>If you are unsure what a Rootkit is, then please read the <a href="https://en.wikipedia.org/wiki/Rootkit">Rootkit Wikipedia page</a> before continuing.</p>

<!--more-->

<h2 id="warning">Warning</h2>

<p><strong>This is how I checked and protected against rootkits and is not how I would recommend that anyone else should do so.</strong></p>

<h2 id="step-1-rkhunter">Step 1: rkhunter</h2>

<p>I suggest you visit the rkhunter website at: http://rkhunter.sourceforge.net/</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install rkhunter
$ sudo rkhunter --upgrade
$ sudo rkhunter --checkall --createlogfile
</code></pre></div></div>

<p>Read the output and take corrective action as required.</p>

<h2 id="step-2-chkrootkit">Step 2: chkrootkit</h2>

<p>I suggest you visit the chkrootkit website at:</p>

<ul>
  <li>http://www.chkrootkit.org</li>
</ul>

<p>In particular, <a href="http://www.chkrootkit.org/faq/#9">the FAQS</a> would suggest that you shouldn’t trust the chkrootkit to use the commands on your system, bearing in mind that you suspect that they might be compromised; I chose not to take this additional precaution - you should make your decision based on the exposure of your server to the Internet and your assessment of the likelihood of your having a rootkit.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install chkrootkit
$ sudo chkrootkit
</code></pre></div></div>

<h2 id="step-4-tripwire">Step 4: tripwire</h2>

<ul>
  <li>http://sourceforge.net/projects/tripwire/</li>
</ul>

<p>Tripwire creates a database of your system files and then tracks any changes to them.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install tripwire
</code></pre></div></div>

<p>Follow all the prompts, which will require you to create a Site Key Pass-phrase and a Local key Pass-phrase.  Next we need to create the database:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo tripwire --init
Wrote database file: /var/lib/tripwire/hostname.domain.com.twd
The database was successfully generated.
</code></pre></div></div>

<p>Next we run a first check:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo tripwire --check
</code></pre></div></div>

<p>This will doubtless come back with far more information than you really want.  For example I received loads of lines about “/proc/PIDNO/”.</p>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://sourceforge.net/docman/display_doc.php?docid=2078&amp;group_id=3130">Implementing Tripwire</a></li>
  <li><a href="http://www.alwanza.com/howto/linux/tripwire.html">Howto Linux - Tripwire</a></li>
</ul>

<h2 id="a-better-way">A better way</h2>

<ul>
  <li><a href="http://linuxgazette.net/issue98/moen.html">Combining AIDE and Tripwire</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install KeePassX on Debian Etch</title>
      <link>https://chrisjrob.com/2009/03/21/install-keepassx-on-debian-etch/</link>
      <pubDate>Sat, 21 Mar 2009 06:03:30 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/install-keepassx-on-debian-etch</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>KeePassX cannot be installed on Debian Etch, because of some dependency issues:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Version: 0.3.1-1
Depends: libc6 (&gt;= 2.7-1), libgcc1 (&gt;= 1:4.1.1-21), libqt4-core (&gt;= 4.3.4), libqt4-gui (&gt;= 4.3.4), libstdc++6 (&gt;= 4.2.1-4), libx11-6, libxtst6
</code></pre></div></div>

<!--more-->

<h2 id="the-solution">The Solution</h2>

<p>The solution is to install from source.  These instructions were borrowed from the following comment (thank you “John”):</p>

<ul>
  <li>http://www.keepassx.org/howto/setup/inst_source_tar#comment-15355</li>
</ul>

<h3 id="install-recent-version-of-qt4">Install recent version of qt4</h3>

<p>I installed from lenny, which is not ideal.  The above instructions do not say to do this, but I had already done it to resolve stability problems (see Install italc notes).</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install qt4-dev qt4-dev-tools qt4-designer
</code></pre></div></div>

<h3 id="install-source-repositories">Install Source Repositories</h3>

<p>You may need to add the lenny source repositories to <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>deb-src http://ftp.uk.debian.org/debian/ lenny main non-free contrib
</code></pre></div></div>

<h3 id="download-source">Download Source</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd
$ mkdir keepassx
$ cd keepassx
$ apt-get source keepassx
</code></pre></div></div>

<h3 id="make">Make</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd keepass*
$ qmake-qt4
Project MESSAGE: See 'INSTALL' for configuration options.
Project MESSAGE: Install Prefix: /usr
Project MESSAGE: *** Makefile successfully generated.
Project MESSAGE: *** Start make now.
$ make
</code></pre></div></div>

<p><strong>If you downloaded the source from <a href="http://www.keepassx.org/">KeePassX</a> itself, then you will probably need to cd into the src directory, delete the Makefile that was created and run qmake-qt4 again from there (ie: qmake-qt4; cd src; rm Makefile ; qmake-qt4 ; cd ..</strong></p>

<h3 id="errors">Errors</h3>

<p>If the above still gives an error about libXtst (and mind didn’t), you can either fix the source code, or simply:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo ln -s /usr/lib/libXtst.so.6 /usr/lib/libXtst.so
$ make
</code></pre></div></div>

<p><strong>This section has not been tested by the author</strong></p>

<h3 id="install">Install</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo make install
</code></pre></div></div>

<h3 id="test">Test</h3>

<p>You should see it installed under your Utilities menu, but you may need to log off/on for this to appear.  Alternatively I usually find editing the menu and resaving has the same effect.</p>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://www.keepassx.org/">KeePassX</a>
    <ul>
      <li><a href="http://www.keepassx.org/howto/setup/inst_source_tar#comment-15355">Forum post detailing install method</a></li>
    </ul>
  </li>
</ul>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install Flashplayer</title>
      <link>https://chrisjrob.com/2009/03/21/install-flashplayer/</link>
      <pubDate>Sat, 21 Mar 2009 06:01:08 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/install-flashplayer</guid>
      <description>
       <![CDATA[
         
         <h2 id="install-flashplayer-on-debian-etch">Install Flashplayer on Debian Etch</h2>

<p>You should be able to install from Backports:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ apt-get -t "etch-backports" install flashplugin-nonfree
</code></pre></div></div>

<!--more-->

<p>If this fails, then leave it installed and manually download from Adobe:</p>

<ul>
  <li>http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux</li>
</ul>

<p>Then extract contents and copy <code class="language-plaintext highlighter-rouge">libflashplayer.so</code> into <code class="language-plaintext highlighter-rouge">/usr/lib/flashplugin-nonfree/</code>. The failed install should have created all the necessary symlinks.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Download Debian with Jigdo</title>
      <link>https://chrisjrob.com/2009/03/21/download-debian-with-jigdo/</link>
      <pubDate>Sat, 21 Mar 2009 05:59:30 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/download-debian-with-jigdo</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>Just do an <code class="language-plaintext highlighter-rouge">sudo apt-get jigdo-file</code> and read the following:</p>

<ul>
  <li><a href="http://tldp.org/HOWTO/Debian-Jigdo/index.html">Debian Jigdo</a></li>
</ul>

<!--more-->

<h2 id="where-to-get-downloads">Where to get downloads</h2>

<p>Download the appropriate .jigdo and .template file into a suitable directory on your system.</p>

<ul>
  <li><a href="http://www.debian.org/CD/jigdo-cd/">Jigdo Releases</a></li>
</ul>

<h2 id="reducing-your-download">Reducing your download</h2>

<p>Pretty much the raison-d’etre of Jigdo is the ability to re-use an existing CD to reduce the number of files to be downloaded.  But if you’re anything like me it’s much easier to use an ISO:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo mkdir /mnt/cdrom
$ sudo mount -o loop debian-LennyBeta2-i386-kde-CD-1.iso /mnt/cdrom
</code></pre></div></div>

<p>Now just enter <code class="language-plaintext highlighter-rouge">/mnt/cdrom</code> as the path to the CD to use</p>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://tldp.org/HOWTO/Debian-Jigdo/index.html">Debian Jigdo</a></li>
  <li><a href="http://www.electrictoolbox.com/how-to-use-jigdo-lite/">How to use Jigdo Lite</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Debug Debian Sound</title>
      <link>https://chrisjrob.com/2009/03/21/debug-debian-sound/</link>
      <pubDate>Sat, 21 Mar 2009 05:58:43 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/debug-debian-sound</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>Sound is one of those things in Linux which either works out-of-the-box, or drives you berserk. The following instructions did not solve my problems, but I leave them here for future reference.</p>

<p>The gospel for sound according to Debian:</p>

<ul>
  <li>http://www.debianhelp.co.uk/sound.htm</li>
</ul>

<!--more-->

<h2 id="step-1-make-sure-you-have-the-sound-system-fully-installed">Step 1: Make sure you have the sound system fully installed</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install alsa-base alsa-oss alsa-source alsa-utils
# apt-get install alsamixergui alsaplayer alsaplayer-common alsaplayer-gtk alsaplayer-jack
# apt-get install alsaplayer-oss snd-gtk-alsa vlc-plugin-alsa alsaplayer-jack jack jackd
</code></pre></div></div>

<h2 id="step-2-determine-your-sound-card">Step 2: Determine your sound card</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># lspci -v | grep -A 6 Audio
00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
        Subsystem: Micro-Star International Co., Ltd. Unknown device 7297
        Flags: bus master, slow devsel, latency 64, IRQ 22
        Memory at fe020000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
</code></pre></div></div>

<h2 id="step-3-run-module-assistant">Step 3: Run module-assistant</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install module-assistant
# module-assistant
</code></pre></div></div>

<p>If this fails stating cannot find <code class="language-plaintext highlighter-rouge">config.h</code>, then:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># cd /usr/src/linux-headers/linux-headers-2.6.21-2-k7/include/linux
# ln -s autoconf.h config.h
</code></pre></div></div>

<p>Next run:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># alsaconf
</code></pre></div></div>

<p>The solution to the problem is often as simple as adding a line at the end of <code class="language-plaintext highlighter-rouge">/etc/modprobe.d/alsa-base</code> along the lines of:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ options snd-hda-intel model=xyz
</code></pre></div></div>

<p>To determine sound chip model:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC861VD Analog [ALC861VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

# cat /proc/asound/cards
0 [SB             ]: HDA-Intel - HDA ATI SB
                    HDA ATI SB at 0xfe020000 irq 22
</code></pre></div></div>

<p>Then gunzip <code class="language-plaintext highlighter-rouge">/usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz</code>. Open with nano and search for your soundcard chip as shown above.</p>

<p><code class="language-plaintext highlighter-rouge">options snd-hda-intel model=3stack</code> works for many motherboard integrated chips with shared surrounds. Sometimes it is also possible to use the more generic <code class="language-plaintext highlighter-rouge">options snd-hda-intel model=ref</code>, which the hda driver uses to load manufacturer specfic presets (SigmaTel, Realtek, etc.). The full list is available in ALSA-Configuration.txt in the driver tarball under alsa-kernel/Documentation/.</p>

<h2 id="restart-sound-system">Restart sound system</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># cd /etc/init.d
# then ./alsasound restart
</code></pre></div></div>

<h2 id="play-test-sound">Play Test Sound</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># locate *.wav
/usr/share/sounds/KDE_Beep_RingRing.wav
/usr/share/sounds/KDE_Beep_ShortBeep.wav

# aplay /usr/share/sounds/KDE_Beep_RingRing.wav
Playing WAVE '/usr/share/sounds/KDE_Beep_RingRing.wav' : Unsigned 8 bit, Rate 22254 Hz, Mono
</code></pre></div></div>

<h2 id="external-references">External references</h2>

<ul>
  <li>http://www.debianhelp.co.uk/sound.htm</li>
  <li>http://ubuntuforums.org/showthread.php?t=205449</li>
  <li>http://bugs.archlinux.org/task/6978</li>
  <li>http://ubuntuforums.org/showthread.php?t=314383</li>
  <li>http://ubuntuforums.org/showthread.php?p=3267595</li>
  <li>https://wiki.ubuntu.com/LaptopTestingTeam/Lenovo3000C200_89224MG</li>
  <li>https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/107821</li>
  <li>https://help.ubuntu.com/community/HdaIntelSoundHowto</li>
  <li>https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/85869</li>
</ul>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Configure apt-get</title>
      <link>https://chrisjrob.com/2009/03/21/configure-apt-get/</link>
      <pubDate>Sat, 21 Mar 2009 05:55:33 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/configure-apt-get</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <h2 id="remove-cdrom-installation">Remove CDROM installation</h2>

<p>Firstly comment out the CDROM installation from <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code>.  This seems to be done automatically from Lenny.</p>

<p>Next change any references to “stable” are replaced with the name of the current stable release, currently “Lenny”.  If we don’t do this, then when the next release “Squeeze” goes “stable”, suddenly your system will be upgraded next time you do an apt-get upgrade.</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ apt-get update
</code></pre></div></div>

<h2 id="proxy-server">Proxy Server</h2>

<p>If it didn’t work, then you may need to configure apt with your proxy server.</p>

<h3 id="option-1---edit-aptconf">Option 1 - Edit apt.conf</h3>

<p>The usual method is to add the following line to <code class="language-plaintext highlighter-rouge">/etc/apt/apt.conf</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ nano /etc/apt/apt.conf
Apt.conf:
Acquire::http::Proxy "http://admin:password@proxy:port/"
</code></pre></div></div>

<p>Obviously it is not generally a good idea to have a username and password in plain text form in this way.</p>

<h3 id="option-2---environment-variable">Option 2 - Environment Variable</h3>

<p>It is also possible to add the proxy server to the environment variables:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ export http_proxy="http://admin:password@proxy:port/"
$ export ftp_proxy="http://admin:password@proxy:port/"
</code></pre></div></div>

<p>Obviously this will be lost when you close the current console.  Again it is not a good idea to enter usernames and passwords as command line arguments, so you should clear your bash_history.</p>

<h3 id="option-3---update-proxy-server">Option 3 - Update Proxy Server</h3>

<p>Ideally you need to change your proxy server to allow traffic without the need to specify a username and password.</p>

<h2 id="add-backports">Add Backports</h2>

<p>In many cases you will require newer packages than are afforded by stable alone, and for that purpose you need Debian Backports.  To add backports, visit:</p>

<ul>
  <li>http://www.backports.org/dokuwiki/doku.php?id=instructions</li>
</ul>

<p>And follow the instructions on that page to add the repository to your sources, and add the security keyring.</p>

<h2 id="pinning">Pinning</h2>

<p>If you have multiple sources in your sources.list, then in general the latest package will be selected by default.  You can change this behaviour by creating a file <code class="language-plaintext highlighter-rouge">/etc/apt/preferences</code>.  This is called “pinning”.</p>

<p>Save as <code class="language-plaintext highlighter-rouge">/etc/apt/preferences</code>…</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 900

Package: *
Pin: origin www.backports.org
Pin-Priority: 600

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 400

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 300

Package: *
Pin: release o=Debian
Pin-Priority: -1
</code></pre></div></div>

<p>For a fuller description of pinning see the following page:</p>

<ul>
  <li>http://wiki.debian.org/AptPinning</li>
</ul>

<h2 id="saving-and-restoring-package-selections">Saving and restoring package selections</h2>

<p>To save your package selections:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ dpkg --get-selections &gt;filename
</code></pre></div></div>

<p><strong>Remember to save your sources.list and preferences.</strong></p>

<p>To restore your package selections:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ dpkg --set-selections &lt; filename
$ apt-get upgrade-dselect
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Debian Lenny - applying the new KDM theme</title>
      <link>https://chrisjrob.com/2008/12/20/debian-lenny-applying-the-kdm-theme/</link>
      <pubDate>Sat, 20 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/20/debian-lenny-applying-the-kdm-theme</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>If you install kde from a Debian base install, then it is likely that you do not have the attractive new Debian theming for the boot loader and KDM login.  The key to this is the installation of desktop-base, but you do need a few other packages, which don’t currently get treated as dependencies.</p>

<!--more-->

<h2 id="install-packages">Install packages</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo aptitude install desktop-base ksplash-engine-moodin kdmtheme splashy splashy-themes
</code></pre></div></div>

<h2 id="add-splashy-to-grub">Add splashy to grub</h2>

<p>Look for the kopt line in <code class="language-plaintext highlighter-rouge">/boot/grub/menu.lst</code> and add <code class="language-plaintext highlighter-rouge">quiet splash vga=791</code>:</p>

<p>N.B.  <code class="language-plaintext highlighter-rouge">vga=791</code> is suitable for 1024x768, if your monitor resolution is below this, then you should change this number by reference to the table below.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/boot/grub/menu.lst:
# kopt=root=/dev/sda1 ro quiet splash vga=791
</code></pre></div></div>

<p>N.B. Do not uncomment this line, this line is not used itself, but is used by update-grub to automatically populate the actual kernel lines further down</p>

<p>Then update-grub to apply this change to your kernels:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo update-grub
</code></pre></div></div>

<h2 id="splashy-vga-settings-table">Splashy VGA settings table</h2>

<table>
  <thead>
    <tr>
      <th>colour</th>
      <th>depth</th>
      <th>640x480</th>
      <th>800x600</th>
      <th>1024x768</th>
      <th>1280x1024</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>256</td>
      <td>8bit</td>
      <td>769</td>
      <td>771</td>
      <td>773</td>
      <td>775</td>
    </tr>
    <tr>
      <td>32000</td>
      <td>15bit</td>
      <td>784</td>
      <td>787</td>
      <td>790</td>
      <td>793</td>
    </tr>
    <tr>
      <td>65000</td>
      <td>16bit</td>
      <td>785</td>
      <td>788</td>
      <td>791</td>
      <td>794</td>
    </tr>
    <tr>
      <td>16.7m</td>
      <td>24bit</td>
      <td>786</td>
      <td>789</td>
      <td>792</td>
      <td>795</td>
    </tr>
  </tbody>
</table>

<p>The 65000 colour line is the one recommended for this purpose, so you’ll probably want 785 or 788 if you have a low resolution netbook.  I don’t believe there is any point in increasing to 794, as I believe the new Debian themes have been designed for 1024x768 (I have not checked that fact).</p>

<h2 id="configure-kdm-themes">Configure KDM themes</h2>

<p>Under KDE Control Panel, System Administration, KDM Theme Manager, enter Administrator Mode and enable KDM Themes and select “More Blue Orbit”.  It will warn you that your changes will be overwritten by /etc/default/kdm.d/, but this step still seems to be required.</p>

<h2 id="remove-login-manager-background">Remove Login Manager Background</h2>

<p>Under KDE Control Panel, System Administration, Login Manager, select the Background tab and disable the background.  This background displays after your new KDM Theme and before your actual desktop, which is definitely one background too many!</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Debian Lenny - Some simple performance improvements</title>
      <link>https://chrisjrob.com/2008/12/19/debian-lenny-some-simple-performance-improvements/</link>
      <pubDate>Fri, 19 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/19/debian-lenny-some-simple-performance-improvements</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>After setting up my Eee PC on Debian and following the tips (see <a href="/2008/12/08/lenny-on-speed/">Lenny on Speed</a> to maximise performance, I have found the same tips quite effective on other Debian systems.  The key changes are as follows:</p>

<!--more-->

<h2 id="add-a-ramdisk-file-system-for-tmp">Add a ramdisk file system for /tmp</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/etc/fstab:
tmpfs      /tmp     tmpfs      defaults     0    0
</code></pre></div></div>

<h2 id="add-a-ramdisk-file-system-for-varrun-and-varlock">Add a ramdisk file system for /var/run and /var/lock</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/etc/default/rcS:
RAMRUN=yes
RAMLOCK=yes
</code></pre></div></div>

<h2 id="add-relatime-option-to-hard-disk-file-systems">Add relatime option to hard disk file systems</h2>

<p>Lastly, in <code class="language-plaintext highlighter-rouge">/etc/fstab</code>, add the following option to each hard disk based filesystem “relatime”.  This is really important, as this stops the system from recording when a file was last read; without this option set, every time a file is read on your system, it is written to with the date last read - effectively changing a read into a read/write and thus slowing down the system.  Adding the relatime option cuts this nonsense out and makes a surprising performance improvement.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># /etc/fstab: static file system information.
#
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;                   &lt;dump&gt;  &lt;pass&gt;
proc            /proc           proc    defaults                      0       0
/dev/sda1       /               ext3    errors=remount-ro,relatime    0       1
/dev/sda6       /home           ext3    defaults,relatime             0       2
/dev/sda5       none            swap    sw                            0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto               0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto                0       0
tmpfs           /tmp            tmpfs   defaults                      0       0
</code></pre></div></div>

<h2 id="using-a-faster-system-shell">Using a faster system shell</h2>

<p>By default, the standard system shell <code class="language-plaintext highlighter-rouge">/bin/sh</code> is provided by bash. Bash is very slow at start-up, because it does quite a lot of things before it starts to process shell statements. During boot-up, a lot of shell scripts are executed, and switching to a quicker shell has a noticeable impact. To switch <code class="language-plaintext highlighter-rouge">/bin/sh</code> to point at dash, install the package and use <code class="language-plaintext highlighter-rouge">dpkg-reconfigure</code> to enable it as the default system shell.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ aptitude install dash
$ dpkg-reconfigure dash
</code></pre></div></div>

<p>Thanks to <a href="http://wiki.debian.org/">Debian Wiki</a> for these tips.</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Lenny on Speed</title>
      <link>https://chrisjrob.com/2008/12/08/lenny-on-speed/</link>
      <pubDate>Mon, 08 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/08/lenny-on-speed</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>Okay, to be quite honest my Debian Lenny 64-bit Toshiba Satellite Pro A300 laptop is really fast.  Certainly the fastest machine that I’ve ever used, problem is that makes you hungry for more speed.  So far I have followed several of the suggestions included in this <a href="http://wiki.debian.org/DebianEeePC/TipsAndTricks">Debian EeePC page</a>, for example adding the <code class="language-plaintext highlighter-rouge">relatime</code> option to the disks.</p>

<!--more-->

<p>I’ve also switched on boot concurrency and installed <code class="language-plaintext highlighter-rouge">preload</code>, as discussed in <a href="http://forums.debian.net/viewtopic.php?t=31275">this forum thread</a>.  Early days, but it does feel very snappy indeed.  The bootup doesn’t seem much faster, although apparently preload can slow things up a tad, but it is still around one minute, including about 5 seconds for the bios and another 15 seconds for typing in the kdm and kwalletmanager passwords.</p>

<p>I’ve also moved the <code class="language-plaintext highlighter-rouge">unmountnfs.sh</code> from the shutdown scripts to position 14, to enable this to be completed before closing the network services.  This has dramatically improved the shutdown performance.</p>

<p>Follow these links for more information:</p>

<ul>
  <li><a href="http://wiki.debian.org/DebianEeePC/TipsAndTricks">Debian EeePC Tips &amp; Tricks</a></li>
  <li><a href="http://forums.debian.net/viewtopic.php?t=31275">Debian Forum Topic</a></li>
</ul>

<p>Lastly, exim4 is installed by default, but you really don’t need this if, like me, you send/receive mail through a dedicated server, this shaves a second or two from the boot process.</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>EeePC - Hello Lenny</title>
      <link>https://chrisjrob.com/2008/12/04/eeepc-hello-lenny/</link>
      <pubDate>Thu, 04 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/04/eeepc-hello-lenny</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/eee-pc-701.jpg" align="right" alt="Featured Image">
         
         <p>I guess the logical replacement distro to install on an eepc, is the <a href="http://www.ubuntu-eee.com/">Ubuntu EeePC</a> remix.  To be quite honest I think you have to have a pretty compelling reason to go anywhere else.  My compelling reasons were that I just wanted a standard distro, that I know well and can look after without having to learn new skills; as a KDE user I ideally wanted access to KDE apps.  It really was always going to be <a href="http://wiki.debian.org/DebianEeePC">Debian Lenny EeePC</a>.</p>

<!--more-->

<p>The <a href="http://wiki.debian.org/DebianEeePC/HowTo/Install">installation instructions</a> were an absolute doddle, which really don’t require any help from me.  I installed KDE, expecting it to be a bit sluggish, but the great surprise is that it is really fast.</p>

<p>All in all a really good experience and it really is lovely to be typing this on my Debian Lenny EeePC.</p>

<p>Thank you Debian.</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>EeePC - Goodbye Xandros</title>
      <link>https://chrisjrob.com/2008/12/03/eeepc-goodbye-xandros/</link>
      <pubDate>Wed, 03 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/03/eeepc-goodbye-xandros</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/eee-pc-701.jpg" align="right" alt="Featured Image">
         
         <p>When my old Dell laptop died, I naturally fell back to using my EeePC.  Now I’ve been using my EeePC for about six months now, and a very happy user I have been.  When I first bought it, I visited <a href="http://wiki.eeeuser.com/howto:beginners_guide">eeeuser.com</a> to enable me to add icons to the easy mode interface, so that I could add openvpn and NoMachine NX for connecting to our LTSP server.  Once done I had an ideal machine for taking notes and doing occasional server admin from the shell, and even connect to our LTSP server via VPN.</p>

<!--more-->

<p>So now my old Dell laptop has died, and without warning my eeepc has been promoted to primary laptop.  So of course I wanted to bring it all up-to-date, I went into the upgrade option and saw that there were several upgrades waiting, which I duly installed.  This whole process felt scarily reminiscent of Windows Update… Sure enough my custom icons had all disappeared, but fortunately I had anticipated this and had taken a backup of the <code class="language-plaintext highlighter-rouge">simpleui.rc</code>.  But the problem went deeper than that, I found that Xandros had changed the whole file structure, and even when I found the new locations for the <code class="language-plaintext highlighter-rouge">simpleue.rc</code> file, my custom icons were simply ignored.</p>

<p>Some Googling “<a href="https://www.google.co.uk/search?q=eeepc%20lost%20icons">eeepc lost icons</a>” found that I was not alone, but there was seemingly no fix for the problem (I think solutions have since been discovered).  In any case, I was by now feeling pretty fed up with such a non-standard system, so decided to leave Xandros and go to a standard Debian distro… more on this in due course.</p>

       ]]>
      </description>
    </item>
    
    <item>
      <title>Toshiba Satellite Pro A300 / Debian Lenny 64-bit</title>
      <link>https://chrisjrob.com/2008/11/20/toshiba-satellite-pro-a300-debian-lenny-64-bit/</link>
      <pubDate>Thu, 20 Nov 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/11/20/toshiba-satellite-pro-a300-debian-lenny-64-bit</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/toshiba-satellite-pro-a300.jpg" align="right" alt="Featured Image">
         
         <p>The battery on my ageing Dell Inspiron 8200 had to be replaced recently, then the charger, and then (perhaps damage from cheap charger/battery?) the laptop died completely with amperage warnings about a month later.</p>

<!--more-->

<p>So I researched a replacement laptop, and ordered a Toshiba Satellite Pro A300, with 3gb RAM and 250gb hard drive.  I ordered with downgrade media to XP Pro.  Yes, anyone who has read my previous postings will appreciate just how appallingly hypocritical that is; but given that I will need XP to run under VirtualBox, and given that you don’t seem to save any money by not having it, it made sense (even if it irks to be constantly adding to MS profits).</p>

<p>Tempted though I was to install Kubuntu 8.10 (my old laptop ran 8.04), I decided that the sensible thing to do (given KDE version) was to install Debian Lenny.  Obviously I had chosen a laptop which should be readily Linux compatible, so I did expect an easy time, and so it proved.  I decided to install the 64-bit version.</p>

<p>The installer picked up our DHCP server without a fuss, and prompted me to insert the non-free driver for the Intel wireless into a USB stick, which I did and it picked up without a fuss.  I asked the guided partitioner to give me a separate home, but apart from those two interactions, I just accepted the default for everything else.</p>

<p>I booted into Debian, and noticed that they have prettied kdm in the past few weeks, and even given kwin a new default wallpaper.  OpenOffice 2.4 and Iceweasel were already installed, so there really wasn’t much else to do.</p>

<p>The good news is that, thus far at least, all the packages that I have wanted have been available (remember this is 64-bit).  As far as I know (I’m new to 64-bit) I have a pure 64-bit system.  It all seems very snappy, apart from OpenOffice, which takes a second or two to load.</p>

<p>The astonishing thing, and something that I have never seen mentioned in any Linux vs Windows review, is how quick it is to go from zero to actually having a fully productive machine.  Probably close to one hour.</p>

<p>There is one negative, which is that for some reason Debian Lenny 32-bit and 64-bit have a mismatch in versions between virtualbox-ose and virtualbox-ose-modules.  Such problems are only to be expected (Lenny hasn’t been officially released yet) and I have checked that <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502346">there is a bug report logged</a>.  To fix the problem in the meantime:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo aptitude remove virtualbox-ose-modules-2.6.26-1-amd64
$ sudo rmmod vboxdrv
$ sudo aptitude install build-essential module-assistant
$ sudo aptitude install virtualbox-ose-source
$ sudo module-assistant auto-install virtualbox-ose
$ sudo dpkg -l virtualbox*  (check all are at same version)
$ sudo modprobe vboxdrv
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Debian Lenny</title>
      <link>https://chrisjrob.com/2008/10/13/debian-lenny/</link>
      <pubDate>Mon, 13 Oct 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/10/13/debian-lenny</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>Some weeks ago the hard drive on my work PC failed, with a temperature error on the hard drive.  I swapped the drive out but then had to decide which distro to install.  I had started my Linux life with <a href="http://www.kubuntu.org/">Kubuntu</a>, experimented with <a href="https://www.debian.org/releases/sid/">Debian Sid</a> + <a href="https://wiki.debian.org/DebianExperimental">Experimental</a>, before returning to Kubuntu.  Given <a href="https://www.debian.org/releases/lenny/">Debian Lenny</a>’s imminent release, the logical progression was to try that.</p>

<!--more-->

<p>I downloaded the ISO using Jigdo (see <a href="/2009/03/21/download-debian-with-jigdo/">How to Download Debian with Jigdo</a>) and ran the installer.  It really was simplicity itself and, except for the lack of a live CD, the installation was at least as simple and maybe simpler than Kubuntu.  In particular I love the fact that the partitioner gives you intelligent options, rather than the Kubuntu installer’s all-or-nothing approach.</p>

<p>Having installed Debian Lenny, I was struck by just how like Kubuntu it is, hardly surprising given the Debian parentage of Kubuntu.  What was surprising though, was just how easy everything was - I simply added non-free and contrib to the repositories, installed Java, Flash, the Win32 Codecs, and the MS Fonts.  To improve its looks I simply did:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install kwin-style-crystal kde-icons-nuvola
</code></pre></div></div>

<p>And then I activated Crystal style and the Nuvola icons in the KDE Control Panel.  The Crystal style takes a little bit of tweaking to make it look like Kubuntu (if that’s what you like).  To complete the effect I also installed Compiz, and Openbox, so that I have a choice of three Windows Managers - Slow, Medium and Fast!</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Kubuntu to Debian Sid</title>
      <link>https://chrisjrob.com/2008/08/20/kubuntu-to-debian-sid/</link>
      <pubDate>Wed, 20 Aug 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/08/20/kubuntu-to-debian-sid</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>It’s been bothering me for some time that I am using Kubuntu instead of Debian on my work desktop PC.  Yesterday I had a drive failure necessitating a reinstall; what better excuse could there be?  Having decided to change to Debian, I decided to install Sid, and then I decided that, as KDE 4.1 is now out, why not go the whole hog.</p>

<p>The experience was pretty positive, really the only problem was that I needed to tweak the <code class="language-plaintext highlighter-rouge">xorg.conf</code> in order to get my keyboard and mouse working, other than that it was a pretty straightforward install.</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Section "ServerLayout"
    Identifier   "Default Layout"
    Screen       "Default Screen"
    Inputdevice  "Generic Keyboard"
    Inputdevice  "Configured Mouse"
EndSection
</code></pre></div></div>

<p>Installing VirtualBox was not such fun, but the following link sorted me out:</p>

<ul>
  <li><a href="http://chirale.wordpress.com/2007/12/23/virtualbox-ose-debian-install-howto/">Virtualbox OSE Debian Install</a></li>
</ul>

<p>So far I have installed Iceweasel3, OpenOffice3, NoMachine NX Client and VirtualBox, and it’s running really nicely.  I have activated the KDE4 compositing effects, which seem very slow, so hopefully some room for improvement there in subsequent releases.</p>

<p>So would I recommend Debian Sid KDE4.1 over Kubuntu?  Well I think that’s an unfair comparison, as I’ve installed a bleeding edge solution, but all-in-all it really wasn’t a scary installation at all.</p>

<p>Well done to the Debian team.</p>

       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
