Mostly Dead Dell 1535 Laptop 5

Posted by JD 02/09/2010 at 10:59

Last evening, I noticed that my Dell 1535 Laptop wasn’t responsive. It was recording a TV show with the Hauppauge 950Q USB QAM tuner at the time, among other things that it always does.

Below I’ll discuss symptoms, trouble shooting methods and my resolution

Nice CPU Comparison Website

Posted by JD 02/07/2010 at 08:16

About once a year I need to compare laptop and desktop CPU performance. I find myself searching the normal PC hardware websites like

Cleanup After Linux Kernel Updates 1

Posted by JD 01/30/2010 at 08:49

Update May 2021

dpkg -l 'linux*' | awk '/^rc/{print $2}' | xargs sudo apt purge -y

Original Article

If you run Ubuntu Server LTS releases like I do, you are probably wasting disk space and, because of that, backup storage because old files tied to old kernels aren’t cleaned up automatically.

After locating and cleaning up the old kernel files, I regained over 1GB of space. I was getting low on storage on / otherwise I wouldn’t have bothered.

First Method – Package Manager

When you use a package manager for installations, you want to use it for removals too.
First, I want a list of installed kernel specific packages

sudo dpkg-query -l | egrep -i ‘2.6.17|2.6.2[0-3]’

Ouch. That’s a big list with many old, unused packages still installed. If you have Synaptic installed, using the search in that tool will let you easily multi-select packages for removal. Without X/Windows, you’ll be at the command line with me. Time to start removing them with cmds like this.

sudo apt-get remove linux-source-2.6.17 vmware-player-kernel-modules-2.6.17-10 xen-image-xen0-2.6.17-6-generic-xen0 linux-image-2.6.20-17-generic linux-restricted-modules-2.6.20-17-generic

Package managers remove libraries and programs, but avoid removing configuration files, since the next version of a tool probably needs them. If you are truly removing an application, you’ll probably want to purge the install to remove the conf files too.

Second Method – Find and Locate

I use locate and updatedb. I can’t imagine running servers without these tools. To start, I wanted a list of locations to look through and determine how much waste I had. On the server, we are using kernel 2.6.24-26-generic today. To find almost all the files, use

locate  2.6.24 | egrep -vi /backup > /tmp/old-kernel-files

These commands return a list of files, remove backups from that list and put the list into a /tmp file for reference.

On my Ubuntu system, files were located in:

/boot
/lib/modules
/lib/firmware
/linux-restricted-modules/
/usr/src

I had about 10 old kernels lying around beginning with 2.6.17. Because I wanted to be very careful with removing these files, I manually typed the cleanup commands in each directory. A few examples:

sudo rm -rf 2.6.17-*
sudo rm -rf 2.6.24-2[3-4]*
sudo rm -rf linux-headers-2.6.17-1*
sudo rm linux
sudo rm -rf linux-source-2.6.17 orig-linux-headers-2.6.17-10*

Definitely be careful. It is easy to remove the wrong files by accident with a bad pattern.

Good luck getting that space back!

Top Old School UNIX Tools I Can't Live Without

Posted by JD 01/27/2010 at 09:58

  1. tcsh – the one true shell (bash is workable)
  2. ssh
  3. perl
  4. locate
  5. vim
  6. cron / at
  7. aliases – mainly to correct common misspellings
  8. egrep
  9. pushd/popd
  10. find
  11. man

Linux Media Server with miniDLNA 3

Posted by JD 01/22/2010 at 11:23

I received a WD TV Live, TVL, for Christmas to replace my aging MediaGate MG35 network media player. The MG35 is still working and has a nice GUI, but doesn’t support many of the newer media file formats like x264, mkv or high definition content. Also, the MG35 requires anonymous access via samba to the media. I’ve locked it down by IP, but would rather have userid/password controls.

Install miniDLNA instructions below.

Computer As an Alarm or Timer - XFCE4

Posted by JD 01/18/2010 at 09:39

What

You’d like to use your Linux computer as an alarm clock, egg timer, or just to remind you of things beyond what a calendar program or cron or at support.

How

The best solution depends on your selected OS and window manager. I am currently using xfce4 as my window manager. That means I’ll look for a solution that docks with the xfce WM. xfce4 timer is the name of the program. I suspect GNome and KDE and LDXE have their own alarm/timer programs.

Solved: Clock Time Loss Under Windows7 and Vista 2

Posted by JD 01/16/2010 at 09:41

How to solve this

There are many ways to solve this issue. This is just the one I used based on my experience and expertise. I didn’t use this complex solution initially, it was only after all other solutions attempted failed, badly. My Windows Vista and Win7 computers were losing 2 minutes a day. After the first attempt to correct it with daily time sync, is was still losing about a minute, which was impacting some scheduled events. 1 minute off matters when someone else sets the start and end schedule.

Outlook - Why Microsoft Still Has Corporate Email

Posted by JD 01/07/2010 at 10:03

If it weren’t for Outlook’s inability to support other messaging and calendaring systems with FOSS, MS-Exchange wouldn’t be nearly as popular. Enterprise Calendaring, where each user can see availability for other users, is the holy grail.

July 2011 Update – Things have changed. We don’t need to pay Microsoft (or anyone else) anymore. Read more at the bottom of this article.

MS-Exchange – Calendaring

End users don’t like change. I know this first hand. In my company, I refused to install an MS-Exchange server or MS-SBS. That was unpopular with the users, since MS-Outlook and MS-Exchange just work together. They work together very well, actually, and we all know it. Until you have 50+ users and the license costs explode that is, then it is a huge profit center for Microsoft. That’s the main reason I refused to get hooked on MS-Exchange, future license and migration costs.

Outlook – Calendaring

Outlook doesn’t support calendaring systems from competing solutions very well – or not at all. So, for any calendar server to work with Outlook, it will need to implement the MS-MAPI interface used by MS-Exchange. Lot of companies do that, but ZERO of them do it for free. It feels like a conspiracy to me.

Zimbra Message and Calendaring Server

Zimbra implements a complete functional replacement for what MS-Exchange provides on the server. Email standards are fixed and work even with Outlook, but enterprise calendaring is different. To use that with Zimbra with Outlook, there are two additional requirements.

  1. You must use the paid Network Edition of Zimbra
  2. You must pay for each Outlook client plug-in deployed

For a small business, it is easier, much easier, to just buy MS-SBS and go.

If you want to be cheap, like us, you simply tell your users to use the Web2.0 AJAX interface built into the free Zimbra for all calendaring needs. It really is a beautiful interface with everything you expect for calendaring, email, contacts, instant messaging, and more. It is less convenient than a thick client, especially when you are off line, but it does work as expected. Heck, our CEO only uses the web interface.

Zimbra provides a java thick client, which implements everything that Outlook does and everything that the ajax web interface does … except it is big and slow, like most java applications. I let my users know about it, 3 tried it and deleted it. The complaints were it was slow and big. We all know that MS-Outlook is slow and big, but somehow that is fine, because it only feels slow and big at startup. The Zimbra thick java client was slow and big all the time.

Other non-MS-Outlook Clients

So, if you mandate no Outlook, you’ll lose. You have to replace Outlook with something better, faster and with all the same functionality. Thunderbird isn’t there, but now that they are working to increase releases, perhaps it will get there. Lightning, the thunderbird calendaring plug-in, is … buggy and basically broke. It is a read-only iCalendar client, no write. I was able to get to the point where zero calendars could be viewed, but reminders still popped up constantly with no way to write any updates back to the zimbra calendar server. Boo. I must say that Thunderbird for email works beautifully with Zimbra but IMAPS and SMTPS are very well understood protocols by all email clients. Any email client will work well with Zimbra.

I’m still looking for a good calendar server and client.

There are other options that show up from time to time. I pull them down, implement a server and try them all out. Most are toys. The Zimbra web interface is the low bar for replacement. If calendaring with a client doesn’t work better than the MS-Outlook/MS-Exchange pair, forget it. If you don’t need enterprise calendaring, there are many, many tight, small, efficient solutions for an enterprise. Heck, a small Linux server running dovecot and postfix can easily support 4000 email only users. EASILY.

No cloud here.

Most of my readers will think AND YELL – gmail and google calendar. Why don’t we just use them? Our corporate data is often sensitive. Sometimes our client’s data is sensitive too, so use of google-almost-anything is against corporate policy.

Stop the Madness

So to remove Microsoft from email and calendaring, we need:

  1. Server replacement that supports everything that MS-Exchange/MS-Outlook do
  2. Outlook replacement that supports everything that MS-Exchange/MS-Outlook do
  3. Enterprise management of the server
  4. Enterprise management of the clients
  5. Vibrant client plug-in community
  6. FOSS!!!

The shortest distance to a workable replacement is probably Zimbra / Thunderbird / Lightning team that actually works for enterprise calendaring. Doing something to help this team is something we can probably do. Let’s git ’er done.

As I actively work this, I’ll post issues and solutions. All three of these parts have had major updates since I tried them too. Perhaps it everything is already solved or at least much closer?

Just reviewed Zimbra / Thunderbird / Lightning Capabilities

Seems they aren’t even trying for complete calendar integration. They just want to view a single calendar. What a waste. Without full, enterprise calendar integration, this is DOA. Worthless for replacing MS-Outlook/Exchange installations.

July 2011 Update

A recent group of upgrades here have convinced me that Zimbra + Thunderbird v5 + the Lightning extension can fully replace MS-Outlook + MS-Exchange. These upgrades were:

  • Zimbra Community Edition v7.x
  • Thunderbird v5
  • Lightning Extension for Calendaring

After performing these upgrades, email, calendaring, enterprise calendaring all work extremely well. I’d even say perfectly. I cannot think of anything that MS-Exchange/Outlook does that this setup doesn’t do better. I’m serious. Read more about Enterprise Calendaring and what that means.

This is a big deal. Of course, to stay on Outlook, a company would need to deploy the paid, Zimbra Network Edition, but for the rest of us, Zimbra+Thunderbird+Lightning are perfect.

Why Some Hardware in Your Computer Doesn't Work With Linux

Posted by JD 01/06/2010 at 13:13

I read a comment on a popular blog site today where people were complaining that Ubuntu didn’t work with their computer. They’d tried a few different versions and it still didn’t work. Of course, they blamed Ubuntu, not the hardware provider.

Some complained about sound or video or wireless cards not working. I’ve had issues with RAID cards not working beyond a basic level; JBOD only, no RAID support. In the old days, the complaints were with modems (win-modems) not working.

In their mind, Ubuntu wants them to switch from the other operating system and needs to do whatever it takes to support that. Clearly they are confused. Ubuntu has very little to do with which hardware is supported. Very little.

Typo Blog Code Updated

Posted by JD 01/05/2010 at 15:33

So, I found a few free minutes today and decided to upgrade this blog to the latest release. This was a security related update, seems Typo had a few security vulnerabilities. As usual, things mostly went fine following the instructions provided by the upgrade web page. Mostly.

Overview of the Steps