Number One
Pardon me while I toot my own horn.
As of this morning, I am the number one hit on Google for the search terms “network geek”. Now, if I could just find a better way to make money off that than Google Adsense…
Well, it’s cool, anyway.
Pardon me while I toot my own horn.
As of this morning, I am the number one hit on Google for the search terms “network geek”. Now, if I could just find a better way to make money off that than Google Adsense…
Well, it’s cool, anyway.
Free government guidelines.
When it comes to computer security, the National Security Agency is the shiznit. Or, at least they were. I think they’ve sort of fallen behind a bit, as government agencies tend to do.
In any case, they have a whole website of government-level guidelines on computer security that you can download for free. So, even if they’re not the cutting edge any more, they’re still good guides and free.
I got a kind of Christmas bonus Friday.
So, Friday, after long resisting it, I finally cleaned up my office.
I had all kinds of junk there, most of which I threw out. But, there was this older iMac. It was in decent shape, outside of a temperamental wireless card. So, rather than get rid of it, I asked the boss if I could have it. Mac lover that he is, he was thrilled to give it to someone who’d appreciate it. And, I think maybe he thought he’d converted me to the Apple camp. He hadn’t, but now I have two versions of desktop Windows, Linux and OS X in my house. Not to mention Novell and Linux server systems. So, now, when someone asks me to convert files for them, format shouldn’t be an issue.
Now, that is what I call a Christmas bonus!
It’s not quite the “birthday” of the mouse, but…
Today is the 39th anniversary of the first time a mouse made its commercial debut. That’s right, the mouse, that marvel of modern technology that most of us use daily is just a little older than I am. Invented by Douglas C. Engelbart and the group of 17 researchers working with him in the Augmentation Research Center at Stanford Research Institute in Menlo Park, CA, the original mouse was little more than a square, wooden box, but the little device would change the world. Engelbart showed how the mouse could let a user jump from text on one part of the screen randomly to another section without having to scroll through the text inbetween. Doesn’t sound too revolutionary to us today, does it? But, think about how you navigated to this page to read this little blurb, then try to imagine doing it without a mouse.
So, happy demo day, little guy. Thanks for giving me a job and us a way to waste time at work.
And other things to say that will distract your opponent.
So, every once in awhile, I get involved in a deep, heated, technical discussion with another high-grade geek. Often, right in the middle of the argument, one of us will realize that we’re dead wrong and have no way to get out of the situation unscathed. Well, now, thanks to Pigdog Journal, I present you with Things To Say When You’re Loosing A Technical Argument.
Most of them are more effective than, “Look! It’s Wayne Newton!”, but that’s still my favorite.
A “new” technique that’s more than three years old.
Huh. So, there was this article on MSN recently titled Lock Bumping: A new burglary threat. Now, I remember reading about this in 2600, the Hacker’s Quarterly a really, really long time ago. And, I seem to recall it was a topic at DefCon a number of years ago, not to mention that Bruce Schneier talked about it in 2005.
But, what gets me is that the article itself mentions that the technique was mad popular by a video in Germany back in 2004.
So, how is this a “new” technique again?
Cheap is good, but free is better.
Okay, so I’m always looking for cheap or free tools that let me develop my various web sites quickly and easily. Well, I found two that sort of go together. First, there’s Firebug, which is a plugin for Firefox that lets you edit webpages. To compliment that, though, there’s YSlow for Firebug, which helps you diagnose problems with your website.
This time, we’ll restore the image we made last time
mkdir /tmp/server mount -t smbfs -o username=my_user_name //server_name/share /tmp/server
Now, this assumes that you don’t have anything installed on the new pc yet and are working with just a blank, unformatted hard drive. First, I restored the partition table and the master boot record:
# sfdisk /dev/sda < /tmp/server/images/cad1r-sfdisk-sda.dump
# dd if=/tmp/server/images/cad1-sda.mbr of=/dev/sda
And then the partitions. Since I had several files produced by split for my primary partition, I needed to take them all, in the right order of course. Now, keep in mind that when we used split in the last post, it added “aa”, “ab”, “ac”, etc. to the end of the file name.
# ls -l /tmp/server
will help you check which files you need for the next step.
Now, again, this all assumes that you had a single partition on the original machine and are restoring a single partition. First, change to the directory where the images are:
cd /tmp/server
Now, we restore the image files with the command below. You’ll have to “cat” all the files in the image directory on the server. Notice the pattern of the file names? That’s what split did for us. Now, rather than do the work manually to restore them, I used a little bit of shell code and a variable reference to save you the need to type the names of all the files. Also, the little “-” at the end of the line does matter, so don’t forget it. Oh, and this command should all be on one line.
cat cad1-sda1.img.gz_a[a-z] | gunzip -c | ntfsclone --restore-image --overwrite /dev/sda1 -
Reboot into your new Windows XP clone.
It’s just like magic, isn’t it?
Hey, I get paid to be a geek, right?
So, I’ve been having some issues with my network and several Windows XP machines. In a nutshell, these machines seem to lose connectivity after approximately nine hours and fifteen minutes from the last restart. In other words, when my crazy-dedicated engineers work past their ninth hour, their machine slows to a crawl and eventually locks tighter than a Catholic school-girl’s knees. In any case, after weeks of troubleshooting this issue, I’ve come up empty. The best that I’ve got for these guys is either a) Don’t work such long hours or b) Reboot the machine at lunch.
In a further attempt to fully understand what is happening and at what level, I’ve gotten one of these machines and I’m going to install Windows 2000 on it. If we have the same issue, I know it’s hardware. If I don’t, I’ll be certain, within a reasonable percentage of sureity, that the issue is some arcane aspect of Windows XP. Either way, I should be closer to a real answer.
But, before I wipe my current experimental machine, I decided I wanted to back it up. Naturally, I turned to my old friend, Linux. A quick Google turned up a blog entry titled “Cloning XP with Linux and ntfsclone“. So, with a few modifications for my own environment, I followed the instructions there. Incidentally, I used the latest version of Knoppix as a boot CD.
First, open up a terminal/shell session and create a mount point with the following command:
# mkdir /tmp/server
Then, because my DHCP server didn’t give the Knoppix virtual machine the right DNS information, add your server to the /etc/hosts file.
Next, mount the network share that you want to dump the images on.
# mount -t smb -o username=administrator //server1/share /tmp/server
Check how your live CD sees the partitions you want to save with the following command:
# cat /proc/partitions major minor #blocks name 8 0 78150744 sda 8 1 76211608 sda1 240 0 1939136 cloop0
I want to save that 80 GB disk sda, which has a primary partition sda1. First I saved the partition table and the Master Boot Record this way:
# sfdisk -d /dev/sda >/tmp/server/images/cad1r-sfdisk-sda.dump
# dd if=/dev/sda bs=512 count=1 of=/tmp/server/images/cad1-sda.mbr
and then the partitions:
ntfsclone -s -o - /dev/sda1 | gzip | split -b 1000m - /tmp/server/images/cad1-sda1.img.gz_
Note that this saved disk image in 1G files, in case the way I mounted the share to the network server didn’t allow for large files. Sometimes that can get tricky going from Linux to a Windows 2003 server and back, so I decided not to take any chances. It makes a mess of files, but at least it took the guess-work out for me.
Coming soon, the restore process! Keep an eye out!
When I optimize a site, I do it with Google in mind.
Over the past two years, or so, Google has slowly introduced a new site-search protocol called Sitemaps. Basically, it’s a special XML-based index that lets Google more efficiently catalog your website, which theoretically increases your PageRank. Now, there’s a public specification for the Sitemap protocols, but, well, it’s kind of a complicated thing to make by hand. Luckily, they’ve got links to tools to make Sitemap files for you: Google Code – Sitemaps Third Party Programs.
And, of course, if you use WordPress like I do, there’s the Google Sitemaps Plugin. Some people say it’s a resource hog, but I like it!
Powered by WordPress
Any links to sites selling any reviewed item, including but not limited to Amazon, may be affiliate links which will pay me some tiny bit of money if used to purchase the item, but this site does no paid reviews and all opinions are my own.