Arduino 1.0.x on Fedora 17

After installing Arduino 1.0.1 (from the source on arduino.cc) I get these errors running the IDE:

Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL

Boot Fedora quickly

Following the advice here: http://www.harald-hoyer.de/personal/blog/fedora-17-boot-optimization-from-15-to-3-seconds
yum install systemd-analyze
Gave up :-(
Too complicated to change grub2 configuration

Some info about hacking the GMLAN bus

So you have the right idea, unfortunately this vehicle is a bit unique. This is because the Body Control Module is responsable for unlocking the doors AND receiving the RKE key fob commands so there is no reason for there to be a CAN BUS message to control the locks on this using the RKE messages. So don't bother with pressing the key fob and trying to find a command to replicate, this won't work.

HOWEVER, OnStar has a message it sends to control the locks. So you can simply watch for that message:
Unlock Drivers Door is: 0x1024E097 00 02 FF
Unlock All Doors is: 0x1024E097 00 03 FF

amavisd fails after update

I stopped receiving email after an upgrade. Starting the amavisd service shows the errors:

Starting Mail Virus Scanner (amavisd): fetch_modules: error loading required module Compress/Zlib.pm:
dualvar is only available with the XS version of Scalar::Util at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 8
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 8.
Compilation failed in require at /usr/sbin/amavisd line 197.
ERROR: MISSING REQUIRED BASIC MODULES:
Compress::Zlib

wview data recovery

This page shows how I edited my wview archive database to patch in data values that were NULL when my Vpro2 sensors battery went dead in the middle of the night.

Become root.
Stop wview!


root@wview:~# sudo /usr/bin/service wview stop
Shutting down wview daemons...

Make a backup of the database


root@wview:~# cd /usr/local/var/wview/archive # /var/lib/wview/archive if installed using apt
root@wview:~# sqlite3 wview-archive.sdb .dump | sqlite3 archive-backup.sdb
root@wview:~# mv archive_backup.sdb /tmp

SheevaPlug recovery, preparation and wview install

Format and setup the SD card:
dd if=Kingston-4G-NewIT-v1.0-debian-squeeze.img of=/dev/sdg bs=1024k

See if it's OK (fdisk -l /dev/sdg)

Now try to boot the plug.

ssh into it root@xxx.xxx.xxx.xxx
nosoup4u

Edit /etc/hostname to change the host name.
Edit /etc/hosts to change which host name is localhost.
Check that /etc/network/interfaces is correct (eth0 gets its address via DHCP)
Change the password by running passwd

Set the date!

$ sudo apt-get update