After running into some issues with the Cisco VPN client on later amd64
kernels, I spent some time working on getting the latest
vpnc to work.
Here is a template file of what I used (our connection details have been replaced with generic variables). You need to make sure the root certificate you use is in X.509 format. I also had to fake the version string to what the Cisco VPN client sends (or close to it) for our concentrator to accept it :)
Also, I had to recompile vpnc under Debian with OpenSSL support, since OpenSSL is BSD+Advertising and vpnc is GPL. You can find the amd64 deb I built here or the i386 deb here.
I setup things at work to auto-pause amarok when I lock the screen
using kdesktop_lock. There were some example scripts that worked
by checking the screen blank status using dcop in a never-ending
while loop and sleeping, but I didn't want that many dcop calls constantly
being spawned. These steps need to be done as root, unless you have
some custom setup.
First, create the following shell script as /usr/bin/kdesktop_lock.sh:
#!/bin/sh
amarok_status=`dcop amarok player status`
amarok_is_playing=`dcop amarok player isPlaying`
if [ "x$amarok_is_playing" = "xtrue" -a $amarok_status -ne 1 ]; then
dcop amarok player pause
fi
/usr/bin/kdesktop_lock.real $*
if [ "x$amarok_is_playing" = "xtrue" ]; then
dcop amarok player play
fi
This dpkg-divert stuff is just so debian package upgrades won't
clobber the setup.
/usr/sbin/dpkg-divert --divert /usr/bin/kdesktop_lock.real --rename /usr/bin/kdesktop_lock
Then setup a symlink from kdesktop_lock.sh to kdesktop_lock, and fix modes
on the shell script:
ln -s /usr/bin/kdesktop_lock.sh /usr/bin/kdesktop_lock
chmod a+x /usr/bin/kdesktop_lock.sh
Now when you lock your screen an amarok is playing, it should pause your music.
When you unlock the screen, it will automatically resume.
I've finally got XFree86 setup to utilize almost all the various buttons on my p
eripherals. I have a Logitech LX500 Cordless desktop (but am only using the key
board portion) and a Microsoft Intellimouse Explorer 2.0, also cordless.
I'm running Debian unstable and XFree86 4.3.0.dsfg.1 and KDE 3.3.2.
I have the keyboard layout set to 'Logitech Cordless Desktop Pro'.
XF86Config-4
Note the evdev stuff. You need a kernel with the evdev module compiled (I'm run
ning 2.6.11.6). Your "Dev Phys" line will probably be different.
imwheelrc
Used to make the side tilt wheel and thumb buttons work. Put as ~/.imwheelrc.
Called
from the mouse script (see below).
keyboard script
Runs xmodmap to map various keys on the LX500 keyboard
to something X can use. The volume keys were recognized out of the box, but wer
e tied to kmix and I couldn't get it to use something so I remapped them to some
thing else. I put this script in ~/.kde/Autostart.
mouse script
Starts imwheel. I put this script in ~/.kde/Autostart
khotkeysrc
I use KHotkeys to map buttons to execute commands. Taken
from ~/.kde/share/config/.
Google search script
Mapping this to the "find" button on my keyboard, calls kdialog
and then passes the args to a google search opened up in a new firefox tab.
aumix mute toggle script
Found this on google to toggle mute on/off using aumix.
Thank you
google and the
hostap mailing list!
It brought me from this (card totally fried due to a screwup by me
while flashing the firmware):
Dec 2 22:23:58 syslog@ridley/ridley kernel: hostap_cs: Registered netdevice wlan0
Dec 2 22:23:58 syslog@ridley/ridley kernel: wlan0: trying to read PDA from 0x007f0000: OK
Dec 2 22:23:58 syslog@ridley/ridley kernel: wlan0: NIC: id=0x800c v1.0.0
Dec 2 22:23:58 syslog@ridley/ridley kernel: wlan0: PRI: id=0x15 v1.1.1
Dec 2 22:23:58 syslog@ridley/ridley kernel: wlan0: Failed to read STA f/w version - only Primary f/w present
to this (we have signs of life):
Downloading to volatile memory (RAM).
OK.
Components after download:
NICID: 0x800c v1.0.0
PRIID: 0x0015 v1.1.4
STAID: 0x001f v1.7.4
and finally this (the card is permanently fixed in flash):
Downloading to non-volatile memory (flash).
Note! This can take about 30 seconds. Do _not_ remove card during download.
wifi0: NIC: id=0x800c v1.0.0
wifi0: PRI: id=0x15 v1.1.1
wifi0: STA: id=0x1f v1.7.4
wifi0: Card initialized successfully after flash download
OK.
Components after download:
NICID: 0x800c v1.0.0
PRIID: 0x0015 v1.1.1
STAID: 0x001f v1.7.4
Now my formerly fried wireless card is back to life, with the firmware
I originally wanted on it (supports ESSID hiding).