Archive

For May, 2014

Parametrized Measuring Scoop

No Comments

An “Parametrized Measuring Scoop” is now available. More details at Parametrized Measuring Scoop.

PN532 Breakout Board Mounting Plate

No Comments

An “PN532 Breakout Board Mounting Plate” is now available. More details at PN532 Breakout Board Mounting Plate.

How to rename a user in Linux

No Comments

Simply issue this command:

usermod -m -d /home/new-account-name -l new-account-name old-account-name

It creates the home directory if it does not exists. It also copy the stuff of the old user into the new user account.

Enclosure For The Sparkfun RFID USB Reader

No Comments

An “Enclosure for the Sparkfun RFID USB Reader” is now available. More details at Enclosure for the Sparkfun RFID USB Reader.

preinst: line 118: a2query: command not found

No Comments

If you are getting the following errors while trying to install Apache on Trusty (Ubuntu 14.04), execute the commands below and try to re-install it.


Preparing to unpack .../apache2_2.4.7-1ubuntu4_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: line 118: a2query: command not found
dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The commands to resolve this issue are:

dpkg --fsys-tarfile /var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb | tar xOf - ./usr/sbin/a2query > /usr/sbin/a2query

chmod 755 /usr/sbin/a2query

Replace /var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb with the name of the file given in the error messages. Note that the first command is splitted on two lines in the above. So, copy both lines at once before pasting it in a terminal window.

Blue Taste Theme created by Jabox