Monthly Archives: September 2006

ipw2200 wireless on linux

Useful link http://www.de-brauwer.be/wiki/wikka.php?wakka=LinuxTecraS2

Most importantly – how to deal with wireless hardware switch

$ cat /sys/bus/pci/drivers/ipw2200/0000:06:02.0/rf_kill


This code has the following meaning:

  0 = RF kill not enabled (radio on)
  1 = SW based RF kill active (radio off)
  2 = HW based RF kill active (radio off)
  3 = Both HW and SW RF kill active (radio off)

To fix

  • sudo rmmod ipw2200
  • press hardware radio switch
  • sudo insmod /lib/modules/…/ipw2200.ko
  • cat /sys/…/rf_kill – should have a value of 0

sed notes 2

procmail notes

Good procmail sites

Procmail commands can consist of…

  • a statement
 FOO=`formail ... | sed ...`
  • a recipe

A recipe consists of three parts…

  • a colon line
  • zero or more condition lines
  • an action section
 :0
 email_folder/
 :0
 * From: ...
 email_folder/

An action is one of…

  • a folder
 email_folder
 email_folder/
  • a forward
 !foo@bar
  • a pipe (with :0 fwh or :0 fwb colon flags)
 | formail -I ...
  • a curly brace
 {

Curly Braces

A curly brace starts a nesting block ie a recipe can be:

  • a colon line, zero or more conditions, and curly brackets
 :0
 {
     ...
 }
 :0
 * From: ...
 {
     ...
 }

Inside curly brackets there must be one or more recipes.

How to do if-else

Do if-else using the E colon line flag

 :0
 {
     :0
     * ^From: ...
     # deliver to default destination (inbox)
     ${DEFAULT}
 }
 :0E
 {
     # else
     ...
 }

session management Ubuntu Dapper

  • use gnome-session-save
  • devilspie
eg for firefox the config looks like this:
~/.devilspie/firefox.ds

(if
 (matches (window_name) "Firefox")
 (begin
       (set_workspace 2)
   (maximize)
 )
)

I then only need add devilspie as a start up program using the sessions
dialog.
Thanks hal at gmail, SLUG list

---

Despite that, if you want to try the upstream style logout stuff, you can do
so by changing an Ubuntu-local gconf key:

  /apps/panel/global/upstream_session = true
Thanks to Jeff Waugh, SLUG list