tag:blogger.com,1999:blog-182244012024-03-13T01:38:13.592+00:00What of IT?Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.comBlogger75125tag:blogger.com,1999:blog-18224401.post-16508508732104625592012-04-18T14:52:00.001+00:002012-04-18T14:52:21.735+00:00Witchcraft<div class='posterous_autopost'><p style="text-align: left;">I've recently gotten my hands on a new PC that has the Intel-VT instruction set enabled.</p> <p style="text-align: left;">What's the first thing I do? </p> <p style="text-align: left;">Install OS X Lion. On VMWare ESXi.</p> <p style="text-align: left;"><div class='p_embed p_image_embed'> <a href="http://getfile7.posterous.com/getfile/files.posterous.com/temp-2012-04-18/EcIEAiwkACiojsahHzcxrzfonmrdIjfHrBcmhjFfyBbufxnalbmktsasqohk/Screen_Shot_2012-04-18_at_15.39.01.png.scaled1000.png"><img alt="Screen_shot_2012-04-18_at_15" height="426" src="http://getfile2.posterous.com/getfile/files.posterous.com/temp-2012-04-18/EcIEAiwkACiojsahHzcxrzfonmrdIjfHrBcmhjFfyBbufxnalbmktsasqohk/Screen_Shot_2012-04-18_at_15.39.01.png.scaled500.png" width="500" /></a> </div> Time will tell how it behaves as it's going to replace my current mixed (and not very nice( environment (Windows Server 2K8 running iTunes serving to an apple TV and Debian (a broken Squeeze install) running Twonky serving to my PS3. Now theres going to be one machine doing it all.</p> <p style="text-align: left;">Epic.</p></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com4tag:blogger.com,1999:blog-18224401.post-44913459378764042222012-04-18T10:08:00.001+00:002012-04-18T10:08:50.733+00:00802.1q VLAN Tagging/VTP with Windows Hyper-V R2<div class='posterous_autopost'><p>I came across this potentially useful piece of information whilst trying to get a new guest VM to speak to it's default gateway. </p> <p>It was set to use a VLAN on a shared interface on the firewall (VLAN 1,2&3), this was a new VLAN and was configured in the same manner as the other two functioning VLANs. The whole way through both switches (allowing VLAN trunking, configuring the allowed VLANs on the switch ports affected etc.) but it was not working, it couldn't ping it's gateway, nor could the gateway ping it.</p> <p>The problem was that the Hyper-V Host was not trunking all VLANs, only specified ones. I don't know if this is an out of the box setting, but I don't recall changing it, or adding the other VLANs to it. </p> <p>To rectify this, open up the Host properties in SCVMM or in Hyper-V Manager, then navigate to the Network tab.</p> <p><div class='p_embed p_image_embed'> <a href="http://getfile8.posterous.com/getfile/files.posterous.com/temp-2012-04-18/xsfoBjdjgcrGJJvfFIrdlAhtgyAbDAwmCAizuHfmlEiJAahwxbDihspHHruq/Screen_Shot_2012-04-18_at_11.04.09.png.scaled1000.png"><img alt="Screen_shot_2012-04-18_at_11" height="444" src="http://getfile5.posterous.com/getfile/files.posterous.com/temp-2012-04-18/xsfoBjdjgcrGJJvfFIrdlAhtgyAbDAwmCAizuHfmlEiJAahwxbDihspHHruq/Screen_Shot_2012-04-18_at_11.04.09.png.scaled500.png" width="500" /></a> </div> </p> <p>Click on the affected connection (LAN1 in this case) then select Edit.(You should see that the VLAN is set to Trunk already) If this isn't the case, you may need to allow trunking on the next screen as well.<div class='p_embed p_image_embed'> <img alt="Screen_shot_2012-04-18_at_11" height="346" src="http://getfile0.posterous.com/getfile/files.posterous.com/temp-2012-04-18/feksxlieuIGxsxjfpJaaeABjeBBwvaDbBkwCwsaIaouABjyCzehhCkCfhicy/Screen_Shot_2012-04-18_at_11.05.59.png.scaled500.png" width="370" /> </div> </p> <p>Now you can either add the VLAN manually, or select the Trunk All VLAN ids. This will then populate the list below with all VLANs 1-4095. The checkbox will disappear the next time you open this but the list remains populated.</p> <p>If you are managing a lot of VLANs (100's) or if you're only in charge of the Virtualisation technology, I might suggest allowing all, if you have a close coupling with the network team (or you *are* the network team) then allowing only specified VLANs may be a better, safer solution.</p></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com2tag:blogger.com,1999:blog-18224401.post-69535730741159874832012-02-20T10:57:00.001+00:002012-02-20T10:57:47.589+00:00Exchange 2010 and iPhone with ActiveSync<div class='posterous_autopost'>You need to make sure that the following is set up when attempting to use an iPhone with iOS > 4 with Exchange > 2010 SP1.<p /><div>1. In the Hub Transport section under Organization Configuration, ensure that both the "Name" and "Accepted Domain" do not contain any spaces. I recommend using the accepted domain as the name. This does not matter if it is an Authoritative, Internal or External Relay. You can use the GUI to do this, i.e. right click on the domain with spaces and select properties. Or use the Exchange cmdlet</div> <p /><div><span style="background-color: rgb(255,255,255); color: rgb(51,51,51); font-family: Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 16px; text-align: left;">Set-AcceptedDomain –Identity <value> -Name “ValidSMTPDomainName”</span> </div> <p /><div>2. You need to reenable inheritance of permissions from parent if you are adding privileged accounts, i.e. member of Domain Admins. </div><div>To do this, open up Active Directory Users and Computers, then click on View, and then click on Advanced Features. </div> <div>Right click on the affected user, then select "Properties". Go to the "Security" tab and click "Advanced". Then enable "Include inheritable permissions from this object's parent" Click Apply and OK.</div></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-1618134379320893492011-12-07T15:57:00.001+00:002011-12-07T15:57:44.614+00:00Barracuda Health Monitoring with Nagios<div class='posterous_autopost'>Ive written a few plugins that check the health of a Barracuda SPF appliance. They're in (bad) perl but seem to do the job pretty well<div>The first, to check the RPM of the CPU and System Fans has been accepted into the NagiosExchange site and is listed as:</div> <p /><div><a href="http://exchange.nagios.org/directory/Plugins/Hardware/Others/check_barracuda_fans/details">http://exchange.nagios.org/directory/Plugins/Hardware/Others/check_barracuda_fans/details</a> </div> <p /><div>The others, which check the 3 mail queues, and the CPU temperature have been submitted but not yet approved.</div><div>I'll update here when they are released.</div></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-51798930126851108622011-11-22T09:25:00.001+00:002011-11-22T09:25:05.381+00:00Changing default editor to vim<div class='posterous_autopost'><div><span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 17px; background-color: rgb(249, 249, 249);">Run the command below: </span></div> <p />sudo update-alternatives --config editor<p /><div><span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 17px; background-color: rgb(249, 249, 249);">Then select vim.basic or vim.tiny from the menu presented</span></div></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-71559639224549530202011-11-21T16:36:00.001+00:002011-11-21T16:36:07.739+00:00Copy SSH Key to Server in one command<div class='posterous_autopost'>Use this technique to copy the SSH key and add it to the authorized_keys file in one command<br /><div><span style="color: rgb(21, 140, 7); font-family: monospace; font-size: 12px;">ssh-copy-id -i .ssh/id_dsa.pub username@remotehost</span></div> <p /><div><span style="color: rgb(21, 140, 7); font-family: monospace; font-size: 12px;">Pop in your password and you're done.</span></div> </div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-2730826061807819132011-03-21T09:57:00.001+00:002011-03-21T09:57:09.557+00:00Sage Payroll 2011 Won't Start<div class='posterous_autopost'>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.)<div> 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.</div> <p /><div>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.</div> <p /><div>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.</div></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-54314762890817921822010-08-21T18:59:00.001+00:002010-08-21T18:59:21.856+00:00Unprotect PDF Documents<div class='posterous_autopost'>install GhostScript then run this command to unprotect PDF<br /><div>gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf -c .setpdfwrite -f INPUT.pdf</div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/unprotect-pdf-documents">Daniel's posterous</a> </p> </div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-18253530316064755662010-08-18T08:17:00.001+00:002010-08-18T08:17:18.577+00:00Linux Guest VMs on Windows Server 2008 R2 Hyper-V Failover Cluster<div class='posterous_autopost'>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.<p /><div>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 "lost" 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'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</div> <div>Then execute ifup eth<new>, where <new> is the new number you found from ifconfig -a and set in /etc/network/interfaces.</div><p /><div>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.</div> <p /><div>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.</div><p /><div> Hope this helps someone </div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/linux-guest-vms-on-windows-server-2008-r2-hyp">Daniel's posterous</a> </p> </div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-36935663407213323732010-07-28T08:39:00.001+00:002010-07-28T08:39:15.908+00:00Voice - Missing, Reward offered<div class='posterous_autopost'>So this morning I've woken up and discovered that I've lost my voice. I have no idea what caused this as I didn't do anything differently nor am I feeling any more unwell (I've had a bit of a cold but I don't think that would do it)<div> <br /><div>It's quite a peculiar situation for me, when I'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'm shouting through treacle or leaves me exhausted.</div> </div><p /><div>So, if anyone phones me today I think I might just lay on some heavy breathing and make them think that they've gotten a wrong number.</div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/voice-missing-reward-offered">Daniel's posterous</a> </p> </div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-38075578765057799282010-07-10T17:55:00.001+00:002010-07-10T17:55:50.651+00:00Plumbing.<div class='posterous_autopost'>Things I have learned today (or why I am damp and smell a bit like the <br />plumbing counter at a building suppliers) <p /> 1. Some plumbing is easy. <p /> 2. I am better at plumbing than I thought. <p /> 3. Plumbing is called a wet trade for a reason. <p /> 4. Toilets are a *bastard* to work around <p /> 5. The plumber that fitted our house out is a moron who I will *drown* <br />in what I had to take care of today if I ever meet him. <p /> 6. B&Q staff know fuck all squared about plumbing. <p /> 7. My toilet now no longer leaks over the floor but it cost me £60 in <br />parts and a tool to fix. <p /> 8. The smell at a plumbing counter at a builders suppliers is <br />"Plumbers Mait" it's a sticky, never setting mastic compound that is <br />waterproof and incredibly sticky. <p /> I am now quite pleased with myself and am having some hot tea to <br />celebrate. I may or may not try to consume my own weight in Jaffa <br />cakes. <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/plumbing-113">Daniel's posterous</a> </p> </div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-60750538848779486752009-07-30T09:53:00.001+00:002009-07-30T09:53:37.910+00:00London to Paris Day 3 - The final leg
After having a very pleasant and pleasing day 2, day 3 started in a very similar manner, a bit cold but otherwise nice. <div>After cycling through a very sleepy village we came back out into the countryside and another few hill climbs. </div> <div>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.</div> <p /><div>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.</div> <p /><div>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'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. </div> <div>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.</div> <div>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 "natural" 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. </div> <p /><div>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.</div> <div>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.</div> <div>I thought I wasn't going to make it and that the next rest stop couldn'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.</div> <p /><div>I was egged on and left, knowing that there was an "epic" (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. </div> <div>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.</div> <div>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.</div> <p /><div>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.</div> <p /><div>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.</div> <p /><div>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)</div> <p /><div>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'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)</div> <p /><div>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. </div> <div>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.</div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/london-to-paris-day-3-the-final-leg">Daniel's posterous</a> </p> Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com2tag:blogger.com,1999:blog-18224401.post-38851036939131201542009-07-16T11:54:00.001+00:002009-07-16T11:54:35.152+00:00Trip To The Cinema
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.<div><br /><div>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.</div> <div><br /></div><div>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'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. </div> <div><br /></div><div>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 "No I can't talk, I'm in the cinema" then proceeded to have a 5 minute conversation. Take that shit outside, you aren't that fucking important (believe me, he was no brain surgeon)</div> <div>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?</div> <div><br /></div><div>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'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 <i>Glass</i>. It's no bloody wonder I don't go to the cinema anymore and paid out reasonable money for good kit at home. I'm just going to wait for stuff to hit bluray (or a HD Download :) ) and watch it there.</div> <div><br /></div><div>So all you inconsiderate cinema users, you can all go and fuck off.</div></div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/trip-to-the-cinema">Daniel's posterous</a> </p> Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-36095610223473679422009-07-11T11:54:00.001+00:002009-07-11T11:54:35.000+00:00London to Paris - Day 2
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.<div><br /></div><div>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. </div> <div><br /></div><div>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?</div><div><br /></div><div>We start cycling and I immediately find a problem, my foot is starting to hurt again and we hadn'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.</div> <div><br /></div><div>The difference they made was unreal. I was able to put much more power down, more efficiently and my foot didn't hurt at all, €32 well spent in my book.</div><div><br /></div><div>The morning'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't cool down much at all, but the lack of humidity made for very pleasant cycling weather. </div> <div><br /></div><div>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. </div> <div><br /></div><div>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.</div><div><br /></div><div>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'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.</div> <div><br /></div><div>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'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.</div> <div><br /></div><div>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'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.</div> <div><br /></div><div>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.</div> <div><br /></div><div>All in All a very good day and felt like I had done quite well!</div> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/london-to-paris-day-2">Daniel's posterous</a> </p> Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-77490573220402151942009-07-06T12:23:00.001+00:002009-07-06T12:23:23.860+00:00London to Paris cycle challenge - Day 0/1
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. <br /> <br />I'm going to write about each day of the cycle and what the terrain is actually like. <br />Day 0 Getting our bikes and getting to the starting line. <br />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 (<a href="http://www.TriAndRun.com">www.TriAndRun.com</a> ) 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. <br /> <br />Day 1 London (Bexley) to Dover <br />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. <br />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. <br />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. <br /> <br />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. <br />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. <br />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. <br />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. <br />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. <br />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. <br />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. <br /> <br />Thanks today go to: <br /> <br />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. <br /> <br />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. <br /> <br />Bob for making ne laugh by arriving at Folkestone and having to get on the train to Dover after he misread the directions. <br /> <br />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. <br /> <br />And as always, my fantastic wife Laura, always pushing me on, being encouraging and always supportive and watching out for me. <br /> <br />Day 2 will follow soon as this has taken me about an hour to write on my iPhone. <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/london-to-paris-cycle-challenge-day-01">Daniel's posterous</a> </p> Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-34602947488471322542009-07-04T17:16:00.001+00:002009-07-04T17:16:30.862+00:00Image Twitter test
<img src="http://posterous.com/getfile/files.posterous.com/danmacs/7NhFNnJol1W9G5NEsNx8Clc6sYtjOh9HiHaunCeDBxoeT1GQEvoIYUPyGZY2/photo.jpg" width="320" height="480"/> <p>Sent from my iPhone</p> <p style="font-size: 10px;"> <a href="http://posterous.com">Posted via email</a> from <a href="http://danmacs.posterous.com/image-twitter-test">Daniel's posterous</a> </p> Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-78686987313585320312009-06-09T07:01:00.008+00:002009-06-09T07:49:36.262+00:00O2 iPhone 3GS - WTF**** DISCLAIMER ****<br />This post contains profanity (lots of), reminiscing, dream sequences and full frontal male nudity.<br />One of the previous items was a lie. You decide if you want to take that chance.<br /><br /><br /><br />Well O2,<br />it looks like you've done it again. You've gone back to being an incompetent lumbering giant in a marketplace that rewards agility.<br /><br />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.<br /><br />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 -> <- 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.<div>Needless to say that this won't be happening with your current policies of screwing the customer.</div><div>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. </div><div><br /></div><div>Somewhere in my mind I think the conversation between O2 and we went something along these lines <div>~~~~~~~~~~Wavy Lines for Reminiscing~~~~~~~~~~</div><div> 2 YEARS AGO: </div><div><br /></div><div>O2: Hello Customers Me: Hello O2, two shiny iPhones please. </div><div>O2: That will be £600 and £80 per month for 18 months </div><div>Me: Okay, that's great, thanks. <hands over="" plastic=""><br />Me: Yay, iPhone baby, shame it's only 2G but fuck it, I've got an iPhone<br /><br />LAST YEAR:</hands></div><div><hands over="" plastic=""><br />O2: Hello Loyal Customer<br />Me: Hello O2, another two shiny iPhones please.<br />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<br />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<br />~~~~~~~~~~End Reminiscing~~~~~~~~~~<br /><br />~~~~~~~~~~Future Dream Sequence~~~~~~~~~~<br /><br />SOMETIME IN THE NOT TOO DISTANT FUTURE<br />O2: Hello You Gullible Shithead Fucktard<br />Me: Wait, Something's not right here, this doesn't normally start like this?<br />O2: That's right, I've decided to stop taking your crap<br />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?<br />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<br />Me: Yes, and I want to continue this trend, and the trend of giving you money for this service<br />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"<br />Me: Okay, let's just gloss over this, say I want to use my laptop with me as well.<br />O2: That's another £30 a month for, realistically, a limited service.<br />Me: Wait, what? I PAY you for data already, and it's not a small amount either!<br />O2: Yeah, well, too bad. Fuck You.<br />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.<br />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.</hands></div><div><hands over="" plastic="">Me: @O2 Your silence is deafening. You were very noisy on WWDC day but strange, I can't hear anything now...<br /><br />~~~~~~~~~~End Future Dream Sequence~~~~~~~~~~<br /><br />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.<br /><br />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. <a href="http://search.twitter.com/search?q=o2fail">http://search.twitter.com/search?q=o2fail</a> 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.<br /><br />so O2, to sum up:<br /><br />Fuck You.<br />Fuck You Very Much.</hands></div></div>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-47956078737732185392009-06-08T08:52:00.002+00:002009-06-08T08:56:15.449+00:00Directory Services could not start Error 0xc000006aThis 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.<br />The exact error message you will see is <br /><br /><pre><code><br />Directory Services could not start because of the following error:<br />The specified network password is not correct. Error Status:<br />0xc000006a. Please click OK to shutdown this system and reboot<br />into Directory Services Restore Mode, check the event log for more <br />detailed information.<br /></code></pre><br /><br />Moral of this story is to ALWAYS CHECK YOUR FREAKING BACKUPS and make sure they are done regularly and inspected regularly.<br /><br />This mistake cost me 2 days of working on this. I should have checked the date modified on my system state restore.Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com2tag:blogger.com,1999:blog-18224401.post-50187921432413945782009-05-29T14:55:00.007+00:002009-05-29T15:11:38.226+00:00LDAP Authentication in DebianSteps for getting LDAP authentication working on Debian<br /><br />This post brought to you courtesy of SzlWzl<br /><br />Sources:<br />http://www.adminspotting.net/articles/windows/linux-and-active-directory.html<br />http://moduli.net/sysadmin/sarge-ldap-auth-howto.html<br /><br />Aim:<br />To get all linux users authenticating from our Active Directory implementation which is running on Windows 2003R2.<br /><br />On the Active Directory Server:<br />From Add/remove programs->Add/Remove Windows Componenets->Active Directory Services. Install Identity Management for UNIX and reboot<br /><br />Create an user which we're going to use to bind. I have called mine adlookup which sits in our Service Accounts OU.<br /><pre><code>CN=AD Lookup,OU=Service Accounts,DC=DOMAIN,DC=com</code></pre><br /><br />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.<br />In Active Directory Users/Computers either create a new group or choose an existing group for your users, right click and choose properties.<br />Add your users<br />Choose Unix Attributes and select the correct NIS domain.<br /><br />Now select a user, right click on them and select properties<br />Choose Unix Attributes<br />Select the NIS domain, Home Directory, shell and primary group name<br /><br />Linux Client:<br /><pre><code>apt-get install ldap-utils openssl libpam-ldap libnss-ldap nscd</code></pre><br />edit the /etc/ldap/ldap.conf to look like this<br />run <pre><code>ldapsearch -x -W -D "cn=AD Lookup,OU=Service Accounts,dc=DOMAIN,dc=com" -LLL "(sAMAccountName=adlookup)"</code></pre><br />then enter your password and it should return the correct details, if it does then you're brilliant :)<br /><pre><code>mv /etc/libnss-ldap.conf /etc/libnss-ldap.old<br />nano -w /etc/libnss-ldap.conf</code></pre>and make it look like this:<br /><br /><pre><code>host IPOFADSERVER #Important - it must be the IP and not the dns entry<br />ldap_version 3<br />binddn CN=AD Lookup,OU=Service Accounts,DC=DOMAIN,DC=com<br />bindpw PASSWD #nospecialcharacters<br />scope sub<br />timelimit 30<br />nss_map_objectclass posixAccount User<br />nss_map_objectclass shadowAccount User<br />nss_map_attribute uid msSFU30Name<br />nss_map_attribute uniqueMember msSFU30PosixMember<br />nss_map_attribute userPassword msSFU30Password<br />nss_map_attribute homeDirectory unixHomeDirectory<br />nss_map_objectclass posixGroup Group<br />pam_login_attribute msSFU30Name<br />pam_filter objectclass=User<br />pam_password ad<br />base OU=YOUROU,dc=DOMAIN,dc=com # make sure you limit this to only what is required as I had strange errors<br />rootbinddn CN=ADMINUSER,CN=Users,DC=DOMAIN,DC=com #What user should root join as to enable passwd change etc<br />pam_groupdn CN=WHATGROUPAREUSERSIN,CN=Users,DC=DOMAIN,DC=com #what group must users be in to enable login<br /></code></pre><br />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:<br /><pre><code>mv /etc/pam_ldap.conf /etc/pam_ldap.old && ln -s /etc/libnss-ldap.conf /etc/pam_ldap.conf<br />nano -w /etc/libnss-ldap.secret # enter in your admin password<br />ln -s /etc/libnss-ldap.secret /etc/pam_ldap.secret #same passwords<br />chmod 600 /etc/libnss-ldap.secret # make sure this is readable by only that user<br /></code></pre><br />Edit your /etc/nscd.conf file and change the following parameters:<br />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.<br /><pre><code><br /> max-db-size passwd 524288000<br /> max-db-size group 524288000<br /> max-db-size services 524288000<br /></code></pre><br />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.<br /><pre><code><br />#passwd: compat<br />#group: compat<br />#shadow: compat<br />passwd: compat ldap<br />group: compat ldap<br />shadow: compat<br /></code></pre><br />You must now make nsswitch readable by all so:<br /><pre><code>chmod 644 /etc/nsswitch.conf</code></pre><br /><br />Now you can test this is working by doing:<br /><pre><code>getent passwd USER.NAME # this must be a username you have enabled up there ^</code></pre><br />/etc/pam.d Common Files<br /><br />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.<br /><br />In /etc/pam.d/common-password, comment out and replace:<br /><pre><code><br />password required pam_unix.so nullok obscure min=4 max=8 md5<br /></code></pre><br />or:<br /><pre><code><br />password required pam_cracklib.so retry=3 minlen=6 difok=3<br />password required pam_unix.so use_authtok nullok md5<br /></code></pre><br />with:<br /><pre><code><br /># try password files first, then ldap. enforce use of very strong passwords.<br />password required pam_passwdqc.so min=disabled,16,12,8,6 max=256<br />password sufficient pam_unix.so use_authtok md5<br />password sufficient pam_ldap.so use_first_pass use_authtok md5<br />password required pam_deny.so<br /></code></pre><br />Read the pam_passwdqc man page for more about parameters you can give to it. In /etc/pam.d/common-auth comment:<br /><pre><code>auth required pam_unix.so nullok_secure</code></pre><br />replace with:<br /><pre><code><br /># try password file first, then ldap<br />auth sufficient pam_unix.so<br />auth sufficient pam_ldap.so use_first_pass<br />auth required pam_deny.so<br /></code></pre><br />In /etc/pam.d/common-account comment:<br /><pre><code>account required pam_unix.so</code></pre><br />replace with:<br /><pre><code># try password file first, then ldap<br />account sufficient pam_unix.so<br />account sufficient pam_ldap.so<br />account required pam_deny.so<br /></code></pre><br />And this line to /etc/pam.d/common-session:<br /><pre><code><br />session required pam_mkhomedir.so skel=/etc/skel/ umask=0022<br /></code></pre><br />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 :)<br /><br />Troubleshooting:<br />Password you bind with must not have special characters<br />In nscd.conf you must have a decent sized cache file<br />Your unix attributes must be correct<br />check that your getent passwd is working and that your ldapsearch is workingDanielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com5tag:blogger.com,1999:blog-18224401.post-47840481654971931162009-05-11T15:13:00.002+00:002009-05-11T15:15:07.158+00:00Database Mirroring for Non Domain MS SQL ServersConfiguration of Database Mirroring for Non-Domain based SQL Servers<br /><br /><span style="font-weight: bold;">Assumptions</span><br />2 SQL Servers running SQL 2005 SP1 (or greater)<br />Network connectivity between them<br />System privileges to create user accounts and change service log on credentials<br />Databases to be mirrored set to FULL recovery model<br /><br />Initial decision is which server is going to be your primary<br /><br />Once this is decided, create a new account with a strong password, that you will run SQL Server and the SQL Server Agent with<br />Add this account to the group SQLServer2005MSSQLUser$SERVER-NAME$SQLINSTANCE<br /><br />Set the services "SQL Server ($SERVERINSTANCE)" and "SQL Server Agent ($SERVERINSTANCE)" to run under this account<br /><br />This should be done on BOTH SQL Server Machines<br /><br />On BOTH machines, run the following T-SQL queries to build the Mirroring Endpoints<br /><pre><code>CREATE ENDPOINT mirror<br />STATE = STARTED<br />AS TCP<br />(LISTENER_PORT = 5022)<br />FOR DATABASE_MIRRORING<br />(AUTHENTICATION = WINDOWS, ENCRYPTION = SUPPORTED,ROLE = ALL)</code></pre><br />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.<br /><br />Back on the PRIMARY server, right click on the database and select Tasks > Mirror<br /><br />Run through the "Configure Security..." wizard<br />Do not use a witness server<br />You may need to log on to the SECONDARY SQL Server using appropriate credentials. It will automatically detect the endpoint created earlier.<br />When prompted for a user for the principal and Mirror, DO NOT ENTER ANY DETAILS<br />The Mirroring Configuration Wizard will complete with 0 errors or Warnings.<br />Select Do Not Start Mirroring<br /><br />Still on the primary server, select the Principal server address and change it so it is a FQDN (including a domain)<br />for example server1.sqltesting.com:5022<br />For the most likely to succeed option inspect the Mirror server address.<br /><br />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...<br />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.<br /><br />On Management Studio on the PRIMARY, right click on the database and select tasks> Backup<br />In the backup type, select Transaction Log and back it up to an appropriate location.<br /><br />On the SECONDARY server,right click on the database to be mirrored and select Tasks > Restore Transaction Log<br />Select the path to the transaction log backup from the PRIMARY server.<br />Restore this ensuring to select the WITH NORECOVERY option on the options screen.<br /><br />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<br /><br />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.<br /><br />You can now close this window and have mirrored databases.Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com7tag:blogger.com,1999:blog-18224401.post-18006562276422861532009-05-11T13:27:00.004+00:002009-05-11T14:17:35.771+00:00Anonymous Internet Browsing(Or How BT Mobile Broadband can make you feel like a criminal)<br /><br />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.<br /><br />**DISCLAIMER**<br /><br />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.<br /><br />A SysAdmin will probably beat on you with a spanner for just discussing this, Yes I am a SysAdmin and Yes I would.<br /><br />So enough of that nonsense and thinly veiled threats, let's get down to getting you on the internet.<br /><br />Go and download <a href="http://prdownloads.sourceforge.net/portableapps/Firefox_Portable_3.0.10_en-us.paf.exe">FirefoxPortable</a> from portableapps.com<br />Install this to your USB Thumbdrive or to a location on your hard drive<br /><br />Download <a href="http://www.torproject.org/dist/vidalia-bundles/vidalia-bundle-0.2.0.34-0.1.10.exe">TOR</a> from www.torproject.org<br /><br />when installing TOR/Vidalia, Select a "Base" install and expand out the Torbutton option, deselect "Add to Firefox"<br />Change the destination folder to be a folder on your USB Drive, I called mine Vidalia.<br />Don't run the Installed components just yet.<br /><br />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<br /><br />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.<br /><br />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.Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-53885809033541302552009-04-30T06:59:00.002+00:002009-04-30T07:06:49.316+00:00Kubuntu 9.04 on Vostro 220s with dual monitorsInstallation 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.<br /><br />This is what caused my problems from earlier when I tried to move to 9.04 beta release.<br /><br />How you get it running on this system is as follows.<br /><br />Open up your case and pull the VGA output off the graphics card, this tells the card that it only has one output.<br /><br />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.<br /><br />Install [K]ubuntu 9.04 as normal in whatever layout you want.<br /><br />After installation, get your system updates and enable the restricted nVidia Drivers (V. 180) <br /><br />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)<br /><br />Power off after testing and plug your VGA output back in on the card, attach your second monitor<br /><br />Open up your nVidia Server Settings application and enable the second monitor. DO NOT CLOSE THIS APPLICATION YET<br /><br />Open up a terminal window (ALT+F2 "konsole") and enter <pre><code>sudo chmod a+w /etc/X11</code></pre><br />Back in your nVidia Server Settings app, hit "save to X configuration" and you are now done. Dual screens persistent across reboots.<br /><br />TA bloody DA.Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-71489059856397833972009-04-28T08:16:00.003+00:002009-04-28T08:18:46.679+00:00Burning ISOs from Command Line Linuxisowrite.sh<br /><pre><code>#!/bin/sh<br />sudo cdrecord -v dev=1,0,0 -data $1<br />sudo eject</code></pre><br />install cdrecord (apt-get install cdrecord) then create a bash file somewhere in your $PATH (/usr/bin) then run:<br /><pre><code>isowrite.sh /Path/To/ISO.iso</code></pre>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1tag:blogger.com,1999:blog-18224401.post-23223049140879564752009-04-28T08:08:00.004+00:002009-04-28T09:00:16.463+00:00Removing Sticky StuffPeeled 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.<br /><br />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)<br /><br />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.Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com0tag:blogger.com,1999:blog-18224401.post-74870969972603149602009-04-27T16:27:00.004+00:002009-04-28T09:00:44.060+00:00vLite - Unattended Installations for Windows VIsta<span style="font-family:arial;">How to create your very own bootable ISO with all the drivers you could need on it.<br /><br />Go to <a href="http://forum.driverpacks.net/">www.driverpacks.net</a> and download all the driver packs for your architecture (x86/x64) Extract the .7z files to a local directory using 7-zip (<a href="http://www.7-zip.org">www.7-zip.org</a>) or winRAR (<a href="http://www.rarlabs.com">www.rarlabs.com)</a><br /><br />Download vLite and the Windows Automated Installation Kit (W.A.I.K.), these are both free and should be the first hits in google<br /><br />Install the WAIK and then install vLite - don't run it just yet.<br /><br />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"<br /><br />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.<br /><br />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.<br /><br />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.<br /><br />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)<br /><br />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.<br /><span style="font-weight: bold;"><br />Integration</span> -<span style="font-style: italic;"> HotFixes, Drivers and Additional Language Packs</span><br />Using this will let you integrate HotFixes from Microsoft, Drivers from 3rd Parties (or MS) Language packs (Haven't used this option yet)<br /><br /><span style="font-weight: bold;">Components </span>- <span style="font-style: italic;">Component Removal<br /></span>This lets you remove components that you are not intending to use - EVER.<br />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.<br /><br /><span style="font-weight: bold;">Tweaks</span> - <span style="font-style: italic;">Optional Tweaks<br /></span>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<br /><br /><span style="font-weight: bold;">Unattended</span> - <span style="font-style: italic;">Install without your intervention</span><br />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.<br /><br />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.<br /><br />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)<br /><br />THIS STEP DOES NOT CREATE THE ISO. Do not press exit if you want to create a bootable ISO image.<br /><br />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.<br />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.<br /><br />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.<br /><br />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.<br /><br /><br /><span style="font-style: italic;"></span><span style="font-style: italic;"></span></span>Danielhttp://www.blogger.com/profile/01139429275559476725noreply@blogger.com1