Skip to main content

Arduino 1.0.x on Fedora 17

Submitted by gill on

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

Submitted by gill on

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

Submitted by gill on

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

Interactively change the gdm login screen background

Submitted by gill on

As root:

ln -s /usr/share/applications/gnome-appearance-properties.desktop \
/usr/share/gdm/autostart/LoginWindow/

Logout.
The properties window is shown when gdm restarts.
Here's a new way to do the same thing, but easier:

xhost +local:gdm
sudo -u gdm dbus-launch gnome-appearance-properties
xhost -local:gdm

amavisd fails after update

Submitted by gill on

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

dd-wrt fix for NAT loopback

Submitted by gill on

Go to Administration > Commands
Put the following code in the Commands window:

insmod ipt_mark
insmod xt_mark
iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001
iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE

Click [Save Firewall]