Tag Archives: Linux

backuppc: Use of qw(…) as parentheses is deprecated

Posted on .

If you upgrade Perl to 5.13.5 or beyond, backuppc will begin to spew this warning at every oppurtunity. Debian/wheezy currently has these warnings on startup and in backuppc logs.

Debian bug #650522 suggests surrounding each use of qw(…) with rounded parenthesis: (qw(…)). There are a lot these used throughout backuppc, so I took a slightly less ingenious but just as effective route.

By adding: “no warnings 'deprecated';” to the beginning of each file that uses qw(…), the warnings are suppressed. This change can be scripted by using the following one-liner:

The location /usr/share/backuppc/lib/BackupPC/ is used on Debian/wheezy and may need adjusting for other distros.

Add Google UK search to Firefox

Posted on .

I upgraded to Firefox 4 and found the default google search was sending me to google.com. This meant US shopping results in dollars, amongst other things.

In your Firefox directory,

Windows:
C:\Program Files\Firefox or C:\Program Files (x86)\Firefox

Linux:
/usr/lib/firefox-xxxx/

You will find a folder called “searchplugins“. In there is google.xml

Make a copy of this and edit the contents so that each mention of “google.com” changes to “google.co.uk”. Also change the title (ShortName) from “Google” to “Google UK”.

In linux this is easy,
sed -e 's/google.com/google.co.uk/g; s/ShortName>Google/ShortName>Google UK/' google.xml | tee google-uk.xml

In windows it maybe a little more tricky as UAC gets in the way. The easiest way to do it, is to copy google.xml to your desktop, rename it to google-uk.xml, open it in notepad, make the changes and move it back.

Alternatively you can download google-uk.xml from here and place it in the searchplugins folder and restart Firefox.

Download
  google-uk.xml (2.3 KiB, 1,129 hits)

GPLPV Drivers 0.11.0.295

Posted on .

I spent the time to build the latest (as of 12th June 2011) drivers for Xen GPLPV seeing as the ones available at http://www.meadowcourt.org/downloads/ are 8 months out of date.

I used the source code available at http://xenbits.xensource.com/ext/win-pvdrivers, specifically the version tagged 0.11.0.295.

Built using defaults with the 7600.1 Windows SDK.

Download

  gplpv_2003x32_0.11.0.295.msi (2.5 MiB, 1,704 hits)
  gplpv_2003x64_0.11.0.295.msi (3.1 MiB, 1,269 hits)
  gplpv_Vista2008x32_0.11.0.295.msi (2.5 MiB, 2,274 hits)
  gplpv_Vista2008x64_0.11.0.295.msi (3.1 MiB, 1,958 hits)
  gplpv_XP_0.11.0.295.msi (2.5 MiB, 2,178 hits)

Integrating DSPAM with Spamassassin

Posted on .

Postfix -> DSPAM -> Amavis/Spamassassin -> Postfix

Spamassassin can add scores depending on the DSPAM output by reading the headers that DSPAM adds.

These rules can be added to local.cf. They read confidence and result headers. Edit the scores to suit your setup.