Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Tuesday, May 11, 2010

Ubuntu Installed on New Server

When we last left our hero, I was struggling to get Ubuntu 10.04 (Lucid Lynx) up and running on a new server box with software RAID 1. Since that time, I have scoured the Ubuntu forums and searched the bug report databases, and found that I was not alone in my frustration. While misery does love company, this did nothing to help me resolve the situation at hand.

In the meantime, the flaky VMware server box continued to act flaky. I had had enough, and decided to try installing the previous release of Ubuntu, 9.10 (Karmic Koala). Unlike my previous attempts with 10.04, 9.10 installed perfectly the first time and I was in business! To quote John McClane in Die Hard, "Yippee-ki-yay, motherfucker."

The next step I took in my journey to server nirvana was to read up on Ubuntu's Uncomplicated Firewall, ufw for short. As the name implies, it is trivial to set up and use if you have a modicum of networking knowledge (quick test: on which port does an HTTP server usually listen?). Using ufw, I locked down the server nice and tight, allowing connections from our local network and my home IP address (for remote administration).

Next came the virtualization software installation. I have become convinced that VMware Server is not the virtualization software for me. The web based administration software was nice, when it worked. However, I found that when I most needed it to work, it oftentimes did not. In that, it is remarkably like an automobile not starting up in a bad horror movie.

I've worked with VirtualBox as a desktop virtualization solution, and knew that it could also operate in a "headless" (think no GUI) mode. So, I took the plunge and install VirtualBox 3.1 on the new server. If you want to look into installing VirtualBox for a similar purpose, I can't recommend this site enough - it helped me out enormously and walked me through the process in an almost pain-free manner.

Thankfully, VirtualBox can use VMware server's virtual disk drive files (vmdk), so I moved our web server virtual machine over from the old VMware install to the new VirtualBox ... ummm... box. My heart stopped a bit when I first tried to start up the new virtual machine, as it would not boot. However, after checking the "Enable IO APIC support" in the virtual machine settings, I was off and running.

I am going to hold off on moving any other virtual machines from the old to the new until I am confident in the new system. Or the other one blows up - whichever comes first.

Thursday, April 29, 2010

Trying Out Ubuntu 10.04 RC1 - Fail!

The main server at my place of employment which houses three virtual machines (two linux, one XP) has been acting very flaky over the last month or so. The server tends to crash and restart itself, with the virtual machines sometime coming back up, and other times not.

The reason why the virtual machines do not come back up sometimes is due to the presence of VMware's .lck directories, which do not always get cleaned up appropriately. So, I have to go in there and remove the offending files, and then start the virtual machines back up via the VMware web console.

I have tried just about everything I can think of to find the cause of the server reboots. Temperatures of the four CPU cores is good (checked via the sensors command), as are the hard drives (checked with hddtemp). I've tested the memory, and all looks good there. So, I am at my wit's end.

The server is running Ubuntu 8.04 LTS, and a new release of LTS is due out tomorrow. I thought that I'd try installing the release candidate on a new server box I put together recently, and see how it faired. Unfortunately, after making my way through 98% of the installation, the installer failed when trying to install the grub2 boot loader.

Gah. There is an option for the legacy grub boot loader, so I tried that. No joy. I am not trying to installed the server OS on exotic hardware here. It is a RAID 1 setup, but I was able to install the same setup in 8.04. I have heard that there is a bug in grub2 relating to multi-boot systems, but that doesn't apply to my setup.

Frak. Frakfrakfrakfrak!

Monday, February 23, 2009

What's Been Happening in My World

It has been well over a month since I last wrote anything here, and as you may guess, I have been very busy. I'll try to catch up a bit with this post.

Ankle Injury Update

My ankle has healed up fairly well, and is probably back up to 80% of it's original strength after 6 weeks. I've played a bit of soccer over the last two Sunday afternoons, and it just isn't quite right yet. I have also had a large blister form both days on my right instep. I'm not sure if I am doing something awkward to compensate for the weakened ankle, or if it is th new shoes. Next week, I'll be playing back in my old pair of Copa Mundials and see if the situation improves a bit.

Our first soccer game of the new season is on Friday, March 6th. I'd like to be somewhere in the vicinity of "being in good shape" by then.

Little League Baseball

A new baseball season is underway, and I am back at the helm managing my son's AAA baseball team, the Angels. The rain has interfered with practices a bit, so we've done the best we can. Opening day in on Saturday, March 7th, so we have 2 more weeks of practices to get some of the rust off of the ole baseball gears. I'm hoping for a good season - it always seems to come down to the pitching!

New Technology

I picked up a new Toshiba laptop on Saturday from Fry's. At $399, it was too good of a deal to pass up, and our old Dell 700m has been showing signs of aging for quite some time. The new laptop sports an Intel Core Two Duo T3400 CPU (2.16 GHz, 667 MHz FSB), 2 gigabytes of RAM, a decently size 160GB hard drive, and a nice 15.4" wide screen display (1280 x 800).

I've gone through and stripped out most of the crap that came bundled with the notebook (Norton begone!), and installed Firefox, OpenOffice, Notepad++, etc. Windows Vista Home Premium seems to work well on the PC (response is snappy, display is crisp), and it is my first experience with the OS. I actually installed the Windows 7 beta in a Virtualbox VM before ever seeing Windows Vista, and I can't say I see much of an improvement or difference between the two versions.

Windows Vista *is* a bit chatty with the UAC stuff, though, isn't it? Dialog boxes come flying at you during installation of new apps, but I don't mind it too much. I do believe that Windows 7 has improved in that regard. However, I don't see much that would compel anyone to upgrade from Vista to 7.

Tuesday, February 13, 2007

DSPAM Installed


At work, we have a Debian Linux box that serves as our mail and web server. Recently, I upgraded that box from Debian Woody to Sarge. After that upgrade was complete, I decided to try and improve upon the spam filtering implementation.

The mail server runs qmail as the SMTP server, and I have the mail delivered to local users via procmail. Using procmail allows me to do all kinds of neat filtering on the server side. As an example, I automatically place mailing list traffic into separate IMAP folders. Similarly, mail from customer domains is automatically placed in their own company specific IMAP folders, thereby organizing my incoming emails automatically.

One of the filters that I had incoming mail going through was SpamAssassin. When I first installed SpamAssassin 2+ years ago, it did a very good job of detecting and flagging spam. However, the spammers have gotten rather sophisticated over the last two years, and many of them now actually test their spam against SpamAssassin to try and thwart it. While SpamAssassin was still able to detect and flag an ample amount of spam, more and more seemed to slip through as the months went by.

I decided to try out DSPAM after hearing good reports on its performance from a friend, and reading about it on its website. It wasn't available in the Debian repository, so I downloaded the source tarball and then built and installed it.

DSPAM works best if you have a corpus of spam and non-spam (or ham) to train it. If you do not have a good selection (in the thousands), then I would recommend not using it until you do. Once you train DSPAM with emails that are good and bad, then you can put it to work effectively.

DSPAM is not a fire and forget type of spam fighting solution. It requires a certain amount of vigilance on the part of the user to correct falsely flagged spam or ham. I set up three folders in each user's IMAP folder hierarchy for this purpose:

  1. Spam/ - This is the folder where DSPAM sends all emails it detects as spam.
  2. Spam/Missed/ - This folder is where users place emails which DSPAM did not detect as spam, but should have.
  3. Spam/NotSpam/ - This folder is where emails are placed which were detected as spam, but are not.
Every night, cron executes a bash script I wrote which crawls through the Missed/ and NotSpam/ directories, correcting DSPAM's mistakes.

So, how is it working? After about 3 weeks of use, my accuracy rate is up to over 95%, and that is with out as much initial training as I recommended. I expect that over the course of the next month or two that I will be able to get that accuracy up to the triple 9's range - 99.9%.

Over all, I am extremely happy with DSPAM's performance. It is a bit trickier to install and get going, but once it is humming along nicely, it purrs.

Friday, October 20, 2006

Home Improvements

Right around New Years Day, I replaced the old oak entertainment center that my wife and I have owned since we were married. It was about 7 or 8 feet wide, and about 7 feet tall. It had enough room for a 27" television, shelves for our audio/video equipment, and limited storage for the kids' books and/or toys.

In our family room, we have a recessed area for an entertainment center. Unfortunately, it was much, much bigger than the oak unit and so things didn't quite look so great. Add 9 years of abuse by the kids, and we decided it was time to finally bite the bullet and upgrade.

After doing some research on custom built wood entertainment centers, I quickly realized that the custom option was way the hell to much money, unless I used crazy glue and tongue depressors as the main construction elements. My second choice was to head down to Ikea and see what they had to offer.

We found a nice set which could be customized to our nook, and almost completely fill the space. It would have more storage space than the current unit, and I would make room for a nice, big screen TV as well. We hunted for the necessary pieces, made a trip up to the OC (as that was the only location which had all of the pieces we needed in stock), and came back home. Over the course of the day, we put the whole she-bang together.

Fast forward 10 months to the present - our old TV upstairs is on the fritz, and we decide to make the move. Last Saturday we went out and picked up a 46" LCD TV, and it is very nice. Here is the end result, sans HD-DVR which arrived today from the good people at Cox Communications.


My wife and I figure that this will be our birthday, anniversary, and Christmas presents - for the next 8-10 years or so...