Staff Blogs

Expand root partition in a KVM LVM based disk

I needed to expand the root partition in a KVM virtual on a debian host server that has KVM and Libvirt install. The virtual disk that this KVM is using has 2 partitions:

 
   Device Boot      Start         End      Blocks   Id  System
/dev/vda1              63     1060289      530113+  82  Linux swap / Solaris
/dev/vda2         1060290   209715199   104327455   83  Linux
 

That is the root partition (vda2) is after the swap partition. 

Note: ... Read More

Remove hundreds of block users from drupal site using drush

There was a drupal site that I had to deal with recently. It had about 400 block accounts (the site had allowed user to register with administrator approval) - all of whom were junk accounts that needed removal.

 

There are modules that can be installed that will do this - but I did not want to install any modules on this production site. So I wanted to do this using a command line - linux based server with bash - using drush

 

The one line bash command is:

... Read More

Civicrm 4.6.2 Mailing Labels Chinese

Update: Various updates to Civicrm means that 4.6.2 can now be changed to handle Mailing labels with Chinese characters without the biggie - everything is lost when you update civicrm. The following code has been updated to reflect this and so only works on 4.6+ versions. The solution comes from various web locations with various problems that needed to be fixed.

 

I had to get Chinese (Simplified UTF-8) working with mailing labels in Civicrm (4.6.2) - Chinese worked everywhere... Read More

CrashPlan Pro Desktop crash on my Kubuntu 14.04

I had just install CrashPlan Pro on my Kubuntu 14.04 desktop. The installation was not that difficult except that you need to remember to change /usr/local/bin for the link directory to /usr/bin.

But I had a problem after the installation - the Desktop client would crash when I run it. The problem has to do with libwebkitgtk - which I had installed for some programs I use. It is a known problem with a solution available.  

  1. Edit the run.... Read More