Project 50/50: Conclusion

In the previous installments of Project 50/50 we selected a laptop, made some changes, installed Linux, and got the battery upgraded. In this round, we’re going to look back at over a month of use and getting intimately familiar with the Compaq Presario v5000, Crunchbang Linux, and the battery.

We also promised to explore a WiFi upgrade. It turned out to be unneeded. The internal WiFi adapter works just fine. I did borrow the Rosewill RNX-N180UBE from my desktop PC to give it a try. Because of the better antenna, it does give a stronger signal. When I travel, I’ll be taking it with me for sure. But for around the house, or where signal is decent, it simply isn’t needed.

The laptop has been in use for almost 2 months during this project and I’ve had a chance to really get to know the computer better. I must admit that my expectations were way off. I was expecting something that would be “good enough” and that would get me by in case my desktop computer could not be used for work (due to a power/internet outage). Instead, I got a computer that has become my go-to computer for just every day browsing, blogging, facebooking, and the like. In fact, the majority of this entire series was written on the laptop!

I was also expecting to hate the touch pad, but its actually quite good. The only thing I really don’t like is the lack of screen real estate. My desktop PC has three screens, and I make good use of them when at work. Crunchbang Linux has the ability to use multiple desktops, but its just not the same as being able to see three screens at once, especially for chats. A Linux compatible USB screen may be in my future for work.

The only real annoyance I’ve had with the laptop is that sometimes the keyboard sticks and I’ll get a couple of dozen of one letter suddenly while typing. It doesn’t happen too much, and if it gets worse I’ll just replace the keyboard.

Hardware wise, the Celeron 1.46 CPU has proved sufficient, although I’ll admit that it doesn’t take much to max it out at 100% usage. That usually induces a slight delay, but it’s manageable. It’s rarely bothersome. RAM usage has been surprising low. Even with a dozen tabs open in Chrome, its usually less than 1GB used and the slowdowns are due more to CPU bottlenecks than anything else.

Everything's Shiny, Cap'n!

Project 50/50’s desktop with a graphic from deviantart.com as the background.

So, to recap: I spent $55 on the laptop shipped to my home, put in a 320GB SATA hard drive that I already had, and spent $43 shipped for a 8800mah battery that gives me almost 5 hours of battery life. It handles the majority of tasks without any problem, and is comfortable to use. My wife even likes to use the laptop! I am extremely satisfied with the laptop and expect to use it for the foreseeable future.

If you have any comments or questions, feel free to leave a comment below.

Project 50/50 Part 4: 8800mah Battery Upgrade

In Project 50/50 Part 3, we installed Crunchbang Linux and got it configured. I used the laptop for a couple of weeks, looking to see what the laptop needed next.  The original Compaq battery that came with the laptop was very old. It worked though, and would keep the laptop running for about 20 minutes. Replacing it seemed like a good choice.

Ever since I worked on a clients 17″ laptop with a 8800mah battery, I have wanted such a beast. My client had spent a lot of money on her battery at Batteries Plus, but the laptop lasted for several hours on one charge. I thought I could probably spend less if I shopped around. Hello, Amazon.com!

After several searches and reading many reviews, I settled on the Techno Earth® SUPER HIGH CAPACITY 8800 mAH battery. The reviews weren’t horrible, and I felt pretty safe dealing with Amazon, despite the battery being purchased from an Amazon seller. For $35.51, it seemed like a great deal. So, I ordered it.

About a week later, a packaged arrived at my door. The battery! I went to install the battery in the laptop and it fit, but the locking mechanism was too tight. It wouldn’t snap shut- I had to manually slide it. That’s okay, no big deal. I went to turn the laptop on (batteries usually come with a charge on them). Nothing. So, I powered up the laptop with AC power. It started, and in a short time it showed that the battery was charging.

8800mah 12 cell LiPo laptop batteryI let the battery charge for several hours. When I unplugged the AC power, the laptop acted as though it had no power at all. It went to sleep. I woke it back up, and it was on battery power. Unfortunately, the battery reported its charge at 0%. It did so for the next 5 hours before it ran out of energy and powered off. I contacted the company, and after jumping through a couple of minor hoops (they asked me to cycle the battery several times, which I did) they replaced the battery. They sent a new one, and didn’t even ask for the old one back!

I received the new battery. Not only did it fit better- it worked! With casual use, the battery time is around 5 hours. If I run a script to peg the CPU at 100%, it will last for almost exactly 4 hours. The battery is great, and accomplished the goal! Now I can use the laptop as a backup for my desktop, even for work.

Next up, we’re going to discuss a WiFi upgrade. See you soon!

“mod_security plugin could not connect to the database”: How to fix

The Problem: mod_security plugin could not connect to the database

Someone recently came up with the following error when trying to use the Mod Security plugin in cPanel: ‘The mod_security plugin could not connect to the database. Please verify that MySQL is running. Error: Access denied for user ‘modsec’@’localhost’ (using password: YES)’

The problem is that the database can’t be accessed. This is usually due to the database user being unable to access the database. The quick and easy fix is to get the password out of /cron.hourly/modsecparse.pl ad then use it to reset the password using mysql. You can just copy/paste the following command line script to do the job for you. Make sure you scroll to get the whole thing!

The Easy Fix

pass=`grep dbpassword /etc/cron.hourly/modsecparse.pl | sed '/dbuser/d' | cut -d"'" -f2`;\
 mysql -qbse "GRANT ALL ON modsec.* to modsec@localhost IDENTIFIED BY '$pass'";

If you run into any snags trying this, let me know in the comments below.