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

<channel>
	<title>Andrew Beaton :: FAQ &#187; General</title>
	<atom:link href="http://andrewbeaton.net/faq/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewbeaton.net/faq</link>
	<description>Tips from the world of a software developer</description>
	<lastBuildDate>Wed, 13 Jul 2011 17:03:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>List and Install Security Updates via YUM</title>
		<link>http://andrewbeaton.net/faq/2011/07/08/list-and-install-security-updates-via-yum/</link>
		<comments>http://andrewbeaton.net/faq/2011/07/08/list-and-install-security-updates-via-yum/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 17:04:30 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[YUM]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum security]]></category>

		<guid isPermaLink="false">http://andrewbeaton.net/faq/?p=151</guid>
		<description><![CDATA[You can now easily find out what security updates there are for your system (RHEL / CentOs / Fedora) by installing the &#8216;yum-security&#8216; plugin. # yum install yum-security To list available updates and see the relevant advisory code, use the following command: # yum list security To obtain information on the returned advisory codes, use [...]]]></description>
			<content:encoded><![CDATA[<p>You can now easily find out what security updates there are for your system (<strong>RHEL</strong> / <strong>CentOs</strong> / <strong>Fedora</strong>) by installing the &#8216;<strong>yum-security</strong>&#8216; plugin.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum install yum-security</span></pre></div></div>

<p>To list available updates and see the relevant advisory code, use the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum list security</span></pre></div></div>

<p>To obtain information on the returned advisory codes, use the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum info-security &lt;ADVISORY CODE&gt;</span></pre></div></div>

<p>To list updates that are security relevent, use the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum --security check-update</span></pre></div></div>

<p>And finally, to install only the security update packages, use the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum update --security</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://andrewbeaton.net/faq/2011/07/08/list-and-install-security-updates-via-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View output of  the dd command</title>
		<link>http://andrewbeaton.net/faq/2011/06/23/view-output-of-dd/</link>
		<comments>http://andrewbeaton.net/faq/2011/06/23/view-output-of-dd/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 10:48:36 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[dd output]]></category>
		<category><![CDATA[dd verbose]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[wipe]]></category>

		<guid isPermaLink="false">http://andrewbeaton.net/faq/?p=142</guid>
		<description><![CDATA[Recently whilst wiping some old hard disks I thought it would be useful to see what the &#8216;dd&#8217; command was doing, rather than sitting there blankly for hour. I knocked up a little bash script to run in another terminal that will update the terminal running dd with some useful status information. In this example, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently whilst wiping some old hard disks I thought it would be useful to see what the &#8216;dd&#8217; command was doing, rather than sitting there blankly for hour. I knocked up a little bash script to run in another terminal that will update the terminal running dd with some useful status information.</p>
<p>In this example, dd will be run as&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre></div></div>

<p>copy the following into ddUpdate.sh for example and run it&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">ddpid</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> auwx <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'/dd if/ &amp;&amp; !/awk/ { print $2}'</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ddpid</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-USR1</span> <span style="color: #007800;">$ddpid</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #007800;">ddpid</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> auwx <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'/dd if/ &amp;&amp; !/awk/ { print $2}'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>This outputs the following to the terminal running dd&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xxxxxx records <span style="color: #000000; font-weight: bold;">in</span>
xxxxxx records out
xxxxxx bytes <span style="color: #7a0874; font-weight: bold;">&#40;</span>xx nn<span style="color: #7a0874; font-weight: bold;">&#41;</span> copied, xxxx s, xx MB<span style="color: #000000; font-weight: bold;">/</span>s</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://andrewbeaton.net/faq/2011/06/23/view-output-of-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: sec_error_reused_issuer_and_serial</title>
		<link>http://andrewbeaton.net/faq/2009/11/13/error-sec_error_reused_issuer_and_serial/</link>
		<comments>http://andrewbeaton.net/faq/2009/11/13/error-sec_error_reused_issuer_and_serial/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 23:13:31 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CA]]></category>
		<category><![CDATA[Certificate Authority]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[sec_error_reused_issuer_and_serial]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://andrewbeaton.com/faq/?p=39</guid>
		<description><![CDATA[Problem You come across the following error message when trying to browse to a secure website (SSL) Secure Connection Failed &#160; An error occurred during a connection to 192.168.12.122. &#160; You have received an invalid certificate. Please contact the server administrator or email correspondent and give them the following information: &#160; Your certificate contains the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>You come across the following error message when trying to browse to a secure website (SSL)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Secure Connection Failed
&nbsp;
An error occurred during a connection to 192.168.12.122.
&nbsp;
You have received an invalid certificate. Please contact the server administrator or email correspondent and give them the following information:
&nbsp;
Your certificate contains the same serial number as another certificate issued by the certificate authority. Please get a new certificate containing a unique serial number.
&nbsp;
(Error code: sec_error_reused_issuer_and_serial)
&nbsp;
The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
&nbsp;
    * Please contact the web site owners to inform them of this problem.</pre></div></div>

<p><strong>Solution</strong></p>
<p>If you have recieved this error and are trying to access something that has a self signed certificate, there are two places in Firefox that you must visit in order to access the particular site again.</p>
<p>The first visit <strong>Tools</strong> –> <strong>options</strong> –> <strong>Advanced</strong> –> <strong>View Certificates</strong></p>
<p>You must remove the certificates in the “<strong>Servers</strong>” tab, then under the same location you must remove the certificate authority because it is a self signed certificate, so on the “<strong>Authorities</strong>” tab, simply find the CA for the device you are having trouble with and delete it. </p>
]]></content:encoded>
			<wfw:commentRss>http://andrewbeaton.net/faq/2009/11/13/error-sec_error_reused_issuer_and_serial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

