Ubuntu package commands

Because Ubuntu has a mix of utilities to manage packages I constantly seem to be forgetting the options I need when I go to do basic package management. Mostly for my sake are the ones I use most regularly:

List installed packages:

List names of available packages (including those not installed):

Tell what . . . → Read More: Ubuntu package commands

Dell PERC 5i/R or H200 VMware Performance Fix

I had an old Dell PERC 5i/R RAID card laying around and wanted to use it for a home lab ESXi box (note: also works on Dell PERC H200). The card isn’t amazingly high performance, but it it’s good enough for simple RAID. Well, that is, it’s good enough performance if you change the settings. . . . → Read More: Dell PERC 5i/R or H200 VMware Performance Fix

Fix VMware Web Client Integration Plugin for Chrome on Mac OS X El Capitan (10.11)

The latest vCenter Server 6.0 VMware Web Client Integration Plugin does not work on OS X El Capitan. The installer finishes, but silently fails due to missing libraries, libraries that probably existed in earlier OS X versions.

Because the libraries don’t exist, necessary certificates don’t get generated, and even re-running the installer from the application . . . → Read More: Fix VMware Web Client Integration Plugin for Chrome on Mac OS X El Capitan (10.11)

Get RPM install date

Sometimes you don’t know when an RPM was installed – maybe it was updated, maybe it came with the system. In any case, it can be handy when debugging or even for auditing purposes. This gives an example of getting the install time for the “filesystem” package:

somehost% rpm -q filesystem –queryformat ‘%{name} . . . → Read More: Get RPM install date

Dell Service Tag the easy way under Linux

Sometimes you need the service tag or model off a Dell server that isn’t in your possession. You can either find some feet on the street to do it or as it turns out, with Linux, you can use “dmidecode”:

Thanks to Brandon Checketts’ website for this tidbit.

Get rid of annoying “People Pane” in Outlook

I wouldn’t mind the “People Pane”, except that in our organization is shows nothing useful. Moreover for a reason I cannot fathom, it always gets opened up, taking enormous reading real estate. So from this (Outlook 2010 at least):

Click the “View” tab:

Select “People Pane” and set it to “Off”:

. . . → Read More: Get rid of annoying “People Pane” in Outlook

Using LDAP Paged Controls with Python

Most LDAP servers can be set to return an unlimited number of entries on an LDAP search, however depending on the size of the LDAP database/directory this can possibly exceed your memory. Moreover if you want to write portable code, you probably should not depend on the LDAP server being able to return unlimited entries. . . . → Read More: Using LDAP Paged Controls with Python

How to dump the Firefox history (Linux)

Not pretty, but gets you there:

Find and go to your Firefox profile (usually you can locate by going to “~/.mozilla/firefox/*.default”). Run “sqlite3 places.sqlite .dump | grep moz_places”

If Firefox is running you may have to copy the “places.sqlite” to a new file then run the “sqlite3” against it. You can’t dump it while Firefox . . . → Read More: How to dump the Firefox history (Linux)

Testing “sendmail” with immediate delivery

In the old days when using “sendmail” if you wanted to watch the SMTP conversation between the local host and the next mail relay all you’d have to do is either run “sendmail -v” or “mail -v” (or “mailx -v” depending on the OS). It would then output the entire SMTP conversation with the remote . . . → Read More: Testing “sendmail” with immediate delivery

Make Excel text fit row height

As part of my job I for better or worse have to deal with Excel on a regular basis. One of the issues I have is the sizing of rows (the cell height) not properly expanding, or conversely shrinking, when I add or remove data in the cell.

It turns out there is a very . . . → Read More: Make Excel text fit row height