Monday, July 24, 2006
My profile on LinkedIn
Friday, July 21, 2006
Playing with screen
To create a new session:
$ screen
To retrieve a session (when there is only one running):
$ screen -r -d
To retrieve the list of existing sessions:
$ screen -ls
To retrieve a session (when many are running):
$ screen -r -d <name of the session>
To clear dead sessions:
$ screen -wipe
To detach a session:
<CTRL-A> D
technorati tags:screen, freebsd, linux, sysutils, sessions, man
Updating a FreeBSD 6.1 machine
<add a KERNCONF=YOUR_KERNEL_HERE entry in your /etc/make.conf file>
# make buildworld
# make kernel
# shutdown -r now
<reboot in single user mode>
# mergemaster -p
#make installworld
# make delete-old
# mergemaster
# shutdown -r now
Wednesday, July 19, 2006
Flash support in Firefox under FreeBSD
To have flash supported in Firefox under FreeBSD, the following tasks have to be done:
- install www/linuxpluginwrapper (portinstall linuxpluginwrapper)
- install www/linux-flashplugin7 (portinstall linux-flashplugin7)
- apply the rtld patch:
- download the patch from http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff
- copy the patch to the /usr/src directory
- apply the patch: # patch < rtld_dlsym_hack.diff
- rebuild rtld-elf
- cd /usr/src/libexec/rtld-elf
- make clean cleandir
- make clean cleandir (yes, twice!)
- make obj
- make depend
- make
- make install
technorati tags:freebsd, articles, firefox, flash, rtld, elf
Mapping unsupported keys with xmodmap
Here is the plan:
- bind the currently unassigned keycodes to unused keysyms (e.g. F13, F14, ...)
- use xbindkeys or khotkeys (KDE) to execute commands (scripts, DCOP, ...) when those keys are pressed
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
Use your favorite text editor (vim, emacs, kate, nano, whatever) and put the corresponding lines in a file named .Xmodmap (note the dot and the capital X) under your home directory, like this:
keycode 160 = F13
keycode 174 = F14
keycode 176 = F15
...
For more info, have a look at /dev/loki: Mapping unsupported keys with xmodmap
