<?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"
	>

<channel>
	<title>Andy Cottrell</title>
	<atom:link href="http://blog.andycottrell.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.andycottrell.com</link>
	<description>Technology, Security, Life.....</description>
	<pubDate>Wed, 05 May 2010 18:38:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Setting up easy_install</title>
		<link>http://blog.andycottrell.com/2010/05/setting-up-easy_install/</link>
		<comments>http://blog.andycottrell.com/2010/05/setting-up-easy_install/#comments</comments>
		<pubDate>Wed, 05 May 2010 18:37:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=38</guid>
		<description><![CDATA[Many python packages suggest using &#8216;easy_install&#8216; to install them. How do you get easy_install working if its not present on your system.
Download the correct egg for your python version from http://pypi.python.org/pypi/setuptools.
Run the egg as if it were a shell script (which it is). For example sh xxx.egg
There are various options for changing defaults for if [...]]]></description>
			<content:encoded><![CDATA[<p>Many python packages suggest using &#8216;<span><strong class="command">easy_install</strong></span>&#8216; to install them. How do you get easy_install working if its not present on your system.</p>
<p>Download the correct egg for your python version from <a href="http://pypi.python.org/pypi/setuptools" target="_blank">http://pypi.python.org/pypi/setuptools</a>.</p>
<p>Run the egg as if it were a shell script (which it is). For example <code>sh xxx.egg</code></p>
<p>There are various options for changing defaults for if you are not root for example, but if you are god on your platform&#8230;.this just works.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2010/05/setting-up-easy_install/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Password Authentication Takes Another Poke In the Eye</title>
		<link>http://blog.andycottrell.com/2010/01/password-authentication-takes-another-poke-in-the-eye/</link>
		<comments>http://blog.andycottrell.com/2010/01/password-authentication-takes-another-poke-in-the-eye/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 23:28:40 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=36</guid>
		<description><![CDATA[On January 4th as reported on DarkReading and DataBreaches,  Lincoln National Corporation notified the New Hampshire Attorney General’s Office  of a major security breach affecting 1.2 million people. In addition to  the internal cost of investigating the breach and bringing in an  external forensics team; in addition to planning and executing [...]]]></description>
			<content:encoded><![CDATA[<p><span>On January 4th</span><span> </span><span>as reported on <a href="http://www.darkreading.com/vulnerability_management/security/privacy/showArticle.jhtml?articleID=222301034" target="_blank"><span style="color: #800080;">DarkReading</span></a> and <a href="http://www.databreaches.net/?p=9431" target="_blank">DataBreaches</a>,  Lincoln National Corporation <a href="http://doj.nh.gov/consumer/pdf/lincoln_financial.pdf" target="_blank">notified</a> the New Hampshire Attorney General’s Office  of a major security breach affecting 1.2 million people. In addition to  the internal cost of investigating the breach and bringing in an  external forensics team; in addition to planning and executing  remediation activities; in addition to the brand impact and loss of  trust in the marketplace, Lincoln National had to cut checks for  identity and credit monitoring services for all affected users&#8230;&#8230;&#8230;.</span></p>
<p><a title="http://blog.thesecurityconsortium.net/2010/01/password-authentication-takes-another-poke-in-the-eye/" href="http://blog.thesecurityconsortium.net/2010/01/password-authentication-takes-another-poke-in-the-eye/" target="_self">http://blog.thesecurityconsortium.net/2010/01/password-authentication-takes-another-poke-in-the-eye/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2010/01/password-authentication-takes-another-poke-in-the-eye/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using route and iptables to proxy traffic</title>
		<link>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/</link>
		<comments>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:17:29 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=35</guid>
		<description><![CDATA[As part of an experiment at work, I wanted to intercept all traffic on port 80 that was headed to a certain IP address. To handle the traffic, I built a python script using BaseHTTPServer based around this sample code and ran it on .202 - one of my CentOS 5.2 boxes.
Next step was to [...]]]></description>
			<content:encoded><![CDATA[<p>As part of an experiment at work, I wanted to intercept all traffic on port 80 that was headed to a certain IP address. To handle the traffic, I built a python script using BaseHTTPServer based around <a href="http://wiki.python.org/moin/BaseHttpServer" target="_blank">this sample code</a> and ran it on .202 - one of my CentOS 5.2 boxes.</p>
<p>Next step was to get the traffic to the right machine. As the browser was on a Vista box, I used the windows command <code>route ADD 82.94.164.162  192.168.0.202 </code>Yes that&#8217;s the python.org website. I often use that for testing as is generally well behaved and doesn&#8217;t seem to do &#8217;special&#8217; things.</p>
<p>Now I needed to tell the .202 box to not forward the traffic, but to deliver it locally. <em>iptables </em>to the rescue: <code>sudo /sbin/iptables -t nat -A PREROUTING -p tcp -j REDIRECT</code></p>
<p>Didn&#8217;t even need to poke a hole in the iptables firewall as this seemed to do the job without.</p>
<p>iptables is BUCK!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting VMWare 1.0.6 preallocated virtual disks to growable</title>
		<link>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/</link>
		<comments>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 04:26:22 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=33</guid>
		<description><![CDATA[Running out of space on your VMWare Server? Try this to convert some of your larger preallocated disks to growable. This way they only consume the space on the disk that they currently need, and will not consume disk space on the host drive for disk space on the guest systems whic is in fact [...]]]></description>
			<content:encoded><![CDATA[<p>Running out of space on your VMWare Server? Try this to convert some of your larger preallocated disks to growable. This way they only consume the space on the disk that they currently need, and will not consume disk space on the host drive for disk space on the guest systems whic is in fact empty and unused.</p>
<p>Stop the VM, then:</p>
<pre>vmware-vdiskmanager -r GuestVM.vmdk -t 0 NewGuestVM.vmdk</pre>
<p>This will create a new, growable, <span style="underline;">copy</span> of the original drive. Then you will need to point the VM at the new drive (or delete the original and rename the new one back to the same name as the old).</p>
<p>I assume there is a performance penalty for doing this. But if you are running out of space, this can at least buy you some time.</p>
<p>While you are messing around on the command line, you could use the following to defrag the VMDK file for better perfomance.</p>
<pre>vmware-vdiskmanager -d Guest.vmdk</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CentOS 5.2 does not install on VMWare Server 1.0.6</title>
		<link>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/</link>
		<comments>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 05:38:49 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=32</guid>
		<description><![CDATA[This is a known bug inherited from RedHat.
http://rhn.redhat.com/errata/RHSA-2009-0225.html
Workaround is to add
scsi0.virtualDev = "lsilogic"
to the .vmx file before installation.
]]></description>
			<content:encoded><![CDATA[<p>This is a known bug inherited from RedHat.</p>
<p><a title="http://rhn.redhat.com/errata/RHSA-2009-0225.html" href="http://rhn.redhat.com/errata/RHSA-2009-0225.html" target="_blank">http://rhn.redhat.com/errata/RHSA-2009-0225.html</a></p>
<p>Workaround is to add</p>
<pre>scsi0.virtualDev = "lsilogic"</pre>
<p>to the .vmx file before installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/feed/</wfw:commentRss>
		</item>
		<item>
		<title>To read a CD into an ISO on CentOS 5.2</title>
		<link>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/</link>
		<comments>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 23:59:36 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=31</guid>
		<description><![CDATA[dd if=/dev/cdrom of=your_image.iso
]]></description>
			<content:encoded><![CDATA[<p>dd if=/dev/cdrom of=your_image.iso</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mounting the CDRom on Centos 5.2</title>
		<link>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/</link>
		<comments>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 23:20:56 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=30</guid>
		<description><![CDATA[Ensure the mount point /mnt/cdrom exists.
To perform the mount:
mount -t auto /dev/cdrom /mnt/cdrom
If the symbolic link /dev/cdrom is not there, then try:
mount -t auto /dev/hdb /mnt/cdrom
replacing hdb with whatever your device is called.
]]></description>
			<content:encoded><![CDATA[<p>Ensure the mount point /mnt/cdrom exists.</p>
<p>To perform the mount:</p>
<pre>mount -t auto /dev/cdrom /mnt/cdrom</pre>
<p>If the symbolic link /dev/cdrom is not there, then try:</p>
<pre>mount -t auto /dev/hdb /mnt/cdrom</pre>
<p>replacing hdb with whatever your device is called.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Poking a hole in the CentOS firewall</title>
		<link>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/</link>
		<comments>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 20:05:54 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=29</guid>
		<description><![CDATA[With CentOS 5.2 (as ever), use the following to enable a listening tcp port (in this case 8000) to be accessed through the firewall.
sudo /sbin/iptables -A INPUT -p tcp &#8211;dport 8000 -j ACCEPT
sudo /sbin/service iptables save
sudo /sbin/iptables -F
]]></description>
			<content:encoded><![CDATA[<p>With CentOS 5.2 (as ever), use the following to enable a listening tcp port (in this case 8000) to be accessed through the firewall.</p>
<p>sudo /sbin/iptables -A INPUT -p tcp &#8211;dport 8000 -j ACCEPT<br />
sudo /sbin/service iptables save<br />
sudo /sbin/iptables -F</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enabling RDP on Windows Vista Home</title>
		<link>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/</link>
		<comments>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 15:44:02 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=27</guid>
		<description><![CDATA[The instructions for retrofitting Terminal server to Windows Vista Home are here. This enables Remote Desktop to that machine.
]]></description>
			<content:encoded><![CDATA[<p>The instructions for retrofitting Terminal server to Windows Vista Home are <a href="http://portal.tonychan.org/Default.aspx?tabid=58&amp;EntryID=123" target="_blank">here</a>. This enables Remote Desktop to that machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enabling RDP on Windows XP Home</title>
		<link>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/</link>
		<comments>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 13:14:09 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=26</guid>
		<description><![CDATA[The instructions for retrofitting Terminal server to Windows XP Home are here. This enables Remote Desktop to that machine.
]]></description>
			<content:encoded><![CDATA[<p>The instructions for retrofitting Terminal server to Windows XP Home are <a href="http://www.mydigitallife.info/2008/06/14/install-and-enable-remote-desktop-in-windows-xp-home-edition/" target="_blank">here</a>. This enables Remote Desktop to that machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
