<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tech on Ricky Moorhouse</title>
    <link>https://rickymoorhouse.uk/tags/tech/</link>
    <description>Recent content in Tech on Ricky Moorhouse</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Sat, 18 Oct 2014 06:11:17 +0000</lastBuildDate>
    <atom:link href="https://rickymoorhouse.uk/tags/tech/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Disabling SSLv3</title>
      <link>https://rickymoorhouse.uk/blog/2014/disabling-sslv3/</link>
      <pubDate>Sat, 18 Oct 2014 06:11:17 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2014/disabling-sslv3/</guid>
      <description>&lt;p&gt;With &lt;a href=&#34;http://googleonlinesecurity.blogspot.co.uk/2014/10/this-poodle-bites-exploiting-ssl-30.html&#34;&gt;POODLE&lt;/a&gt; the time has come to disable SSLv3 everywhere. There will be clients that break and need fixing but it needs doing. You can &lt;a href=&#34;https://www.imperialviolet.org/2014/10/14/poodle.html&#34;&gt;read more details and background&lt;/a&gt; on the &lt;a href=&#34;https://www.openssl.org/~bodo/ssl-poodle.pdf&#34;&gt;vulnerability&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here&#39;s a few useful snippets from my experience with it this week:&lt;/p&gt;&#xA;&lt;h2 id=&#34;apache&#34;&gt;Apache&lt;/h2&gt;&#xA;&lt;p&gt;Make sure the combination you have for the SSLProtocol line disables SSLv2 and v3 - something like:&#xA;&lt;code&gt;SSLProtocol All -SSLv2 -SSLv3&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;datapower&#34;&gt;DataPower&lt;/h2&gt;&#xA;&lt;p&gt;Ensure your crypto profiles have SSLv2 and v3 disabled in the options line:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Traffic Pi</title>
      <link>https://rickymoorhouse.uk/blog/2014/traffic-pi/</link>
      <pubDate>Thu, 17 Jul 2014 09:23:54 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2014/traffic-pi/</guid>
      <description>&lt;p&gt;Using my Raspberry Pi, Piglow and the traffic API feeds I have created a script to give me a visual representation of the journey time to work. This gives me an idea of the traffic before I leave the house in the morning, or so that when I&#39;m working at home I can look at it and see how glad I am that I&#39;m not sitting in traffic on the way to work :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering encrypted filesystems</title>
      <link>https://rickymoorhouse.uk/blog/2014/recovering-encrypted-filesystems/</link>
      <pubDate>Tue, 25 Feb 2014 10:25:55 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2014/recovering-encrypted-filesystems/</guid>
      <description>&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Boot from Live CD / USB&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Decrypt the filesystem&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;code class=&amp;quot;markdown&amp;quot;&amp;gt;cryptsetup luksOpen /dev/sda5 &amp;lt;span class=&amp;quot;emphasis&amp;quot;&amp;gt;*hostname*&amp;lt;/span&amp;gt;&#xA;&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Mount filesystems&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;code class=&amp;quot;sql&amp;quot;&amp;gt;mount /dev/dm-2 /mnt&#xA;mount /dev/dm-3 /mnt/home&#xA;mount /dev/sda1 /mnt/boot&#xA;mount &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;--bind /dev /mnt/dev&amp;lt;/span&amp;gt;&#xA;mount &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;--bind /sys /mnt/sys&amp;lt;/span&amp;gt;&#xA;mount &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;--bind /proc /mnt/proc&amp;lt;/span&amp;gt;&#xA;&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Enter chroot&#xA;chroot /mnt&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;code&gt;/etc/crypttab&lt;/code&gt; should have: sda5_crypt UUID=&lt;em&gt;sda5_uuid&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>MySQL Locking</title>
      <link>https://rickymoorhouse.uk/blog/2010/mysql-locking/</link>
      <pubDate>Wed, 15 Sep 2010 15:17:56 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2010/mysql-locking/</guid>
      <description>&lt;p&gt;After experimenting a bit with MySQL locking today, I thought I&#39;d make a note of what I&#39;d discovered:&lt;/p&gt;&#xA;&lt;p&gt;To create a lock, you need to use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;code&amp;gt;LOCK TABLES table1 [READ |WRITE], table2 [READ |WRITE]&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;READ is used to stop other people changing the table while you read from it.&#xA;WRITE is used to stop other people reading the table while you write to it.&lt;/p&gt;&#xA;&lt;p&gt;Once you have issued a &lt;code&gt;LOCK TABLES&lt;/code&gt; statement, you will not have access to any tables you didn&#39;t include.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recover from &#34;Failed to open the relay log&#34;</title>
      <link>https://rickymoorhouse.uk/blog/2010/recover-from-failed-to-open-the-relay-log/</link>
      <pubDate>Mon, 06 Sep 2010 14:17:12 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2010/recover-from-failed-to-open-the-relay-log/</guid>
      <description>&lt;p&gt;If you find that after rebooting your MySQL slave it stops replicating with the master and you see the &amp;quot;Failed to open the relay log&amp;quot; error in the logs it is probably caused by MySQL putting it&#39;s relay logs in /var/run by default, which gets cleared out on boot.&lt;/p&gt;&#xA;&lt;p&gt;To fix this, you need to change the location MySQL uses for the logging by adding the following line to the [mysqld] section of /etc/my.cnf&lt;/p&gt;</description>
    </item>
    <item>
      <title>Restore Default Panels</title>
      <link>https://rickymoorhouse.uk/blog/2010/restore-default-panels/</link>
      <pubDate>Wed, 24 Mar 2010 09:08:31 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2010/restore-default-panels/</guid>
      <description>&lt;p&gt;Been using these commands quite a bit recently as I experiment with moving the panels about.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;﻿gconftool --recursive-unset /apps/panel pkill gnome-panel&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;from &lt;a href=&#34;http://www.watchingthenet.com/restore-panels-in-ubuntu-back-to-their-default-settings.html&#34;&gt;Watching the Net&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hursley minibus mentioned on BBC News</title>
      <link>https://rickymoorhouse.uk/blog/2009/hursley-minibus-mentioned-on-bbc-news/</link>
      <pubDate>Thu, 07 May 2009 10:30:50 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2009/hursley-minibus-mentioned-on-bbc-news/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://rickymoorhouse.uk/ricky/images/2009/hursleyminibus-news.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I created the twitter feed based on a JSON feed of the geographic location of the minibus provided by my colleague. I then compare the coordinates of the minibus with a set of bounding boxes stored in a database. If the bus is within squares defined in the database, then the pre-defined description is sent to twitter so that anyone following the bus can receive updates as to where it is.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux: What is using up disk space?</title>
      <link>https://rickymoorhouse.uk/blog/2009/linux-what-is-using-up-disk-space/</link>
      <pubDate>Mon, 27 Apr 2009 12:50:43 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2009/linux-what-is-using-up-disk-space/</guid>
      <description>&lt;p&gt;&lt;code&gt;du -m | sort -nr | head&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;du -m&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;summarises disk usage from current path recursively (in megabytes)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;sort -nr&#xA;sorts the output numerically in reverse&lt;/p&gt;&#xA;&lt;p&gt;head&#xA;restricts output to the top 10 lines&lt;/p&gt;&#xA;&lt;p&gt;adapted from &lt;a href=&#34;http://linuxreviews.org/quicktips/chkdirsizes/&#34;&gt;Linux Reviews&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
