remote power switch
I just got a Web Power Switch, and hooked it up to the lab machines in the basement. I can now reset them with a web page… which is going to get scripted really soon.
klips-less openswan git tree
Recently Martin merged openswan/pfkeyv2.h with linux/pfkeyv2.h. Sparks flew. Michael Richardson and I have tried this before and decided to postpone it. I merged it into my tree, so it seems that we have to do the hard thing and divorce klips from openswan.git. This basically requires that we create an openswan tree that builds against pfkey definitions in another tree. Michael suggested that Martin and I start with the #unstable branch of openswan.git. What I see happening eventually is this include/linux/pfkeyv2.h defining all the pfkey RFC bits, and include/klips/pfkeyv2.h including that and adding it’s extensions. For now we will be happy if we can get pluto talking to the new franken-klips.
git caching for v1.5.x
I wrote about [git caching]{git-caching} several months back. The term, git caching, was something I had given a local repository that can be used as a reference for multiple projects. New features in the recently released git 1.5.x requires that I blog again about this great tool. Recap: I am working on a linux patch – [klips]{tags/openswan} to be specific. I have more repositories then I know what to do with. Git has this cool feature where it can point to another directory to find it’s object files, this is called alternate or reference repository.
klips loses zlib
Last time I [wrote about openswan]{leaner-meaner-openswan} I commented how Martin and I chopped off 18 thousand lines from KLIPS. Most recently I finished rewriting IPCOMP handling to use CryptoAPI’s api to zlib, and Martin was able to remove the zlib that was duplicated in KLIPS. Here are the updated stats: $ git diff origin/public HEAD -- include/openswan net/ipsec/ | diffstat | tail -n1 135 files changed, 14549 insertions(+), 39839 deletions(-) That, along with other cleanup, bumped us up to 25k lines less then the #public branch of openswan.
vim and linux CodingStyle
It would seem that either no one that codes for the Linux kernel does so under vim, or if they do they don’t have the time to share their vim configuration that doesn’t conflict with the kernel’s CodingStyle. Below I will discuss some changes I had to make to my .vimrc and .vim/c.vim to work with C efficiently.
my kqemu install
I found out earlier today that kqemu is now GPLed. I think this has the potential of helping out the KVM team by (hopefully) taking some of the tricks that helps kqemu get almost as good performance (on some benchmarks) as KVM w/ the hardware vitualization extensions. Here I am running Ubuntu (aside: next time I pave over I am going back to Debian), and I want to have kqemu running WinXP and Suse 10. But really… I just wanted to try kqemu on my poor desktop that lacks the virtualization extensions.
leaner meaner openswan
I started working for Xelerance in April of 2006, and the contract ended in December. Since then I’ve been working on a KLIPS-ng, of sorts. The idea was to remove all the crypto code from KLIPS and convert it to use CryptoAPI already in the Linux kernel. Last objective of my work was to add OCF support to KLIPS, so that we could take advantage of the asynchronous crypto facilities provided there, as well as several OCF hardware drivers. The BSD kernels have been using OCF, Open Cryptographic Framework, for some time and more recently it was ported to Linux.
wmii+ruby xlock action
I use xscreensaver and like to lock my display when I leave my computer. Here is a snippet from my wmiirc-config.rb file that adds an xlock action to the Alt-a action menu. plugin_config["standard:actions"]["internal"].update({ 'xlock' => lambda do |wmii, *args| system("xscreensaver-command --lock") end }) I start my xscreensaver in the .xsession file: /usr/bin/xscreensaver -nosplash & … before launching wmii.
cloning xterms in wmii+ruby
I have recently added a few things to by wmii+ruby configuration that I wanted to share. These are: start a program in a given view from bash prompt (authored by Dave O’Neill) start a program in a given view using Alt-Shift-p (authored by Jean Richard) start an xterm in a given view using Alt-Shift-Return cache directory changes in a view, start an xterm in the view’s last directory using Alt-Apostrophe
wmii+ruby talk for OCLUG
I am giving a quick overview of wmii+ruby later today. In case anyone is interested here are the relevant links: my presentation pdf, magic point my wmiirc config Links from presentation: wmii official site wmii+ruby official site [my blog entries on wmii]{tag/wmii}