Archive for February 2012
actkbd and screen rotation in archlinux
actkbd is in AUR. I need it so the tablet keys on X220 tablet can serve more use (e.g., differentiate between long and short press, etc.)
In order for the rotation script triggered by actkbd to be able to communicate with X, we need to start actkbd with the DISPLAY=:0 environment variable. The AUR package created the /etc/rc.d/actkbd entry. Just change
[ ! -f $PIDFILE ] && /usr/sbin/actkbd -D -q -p $PIDFILE
to
[ ! -f $PIDFILE ] && DISPLAY=:0 /usr/sbin/actkbd -D -q -p $PIDFILE
dd-wrt ssh port forwarding quirky
I guess it is more of a web-gui quirky. Anyway, here is what I desire: I want to move the ssh port of the router itself to say 9999, and forward port 22 to a workstation connected to the router.
What I did, which is wrong:
1) dd-wrt -> services -> services: change port of ssh to 9999
2) dd-wrt -> NAT/QoS -> port forwarding: add port from 22 to workstation-ip:22
What I now have, which is correct thanks to this post, is:
1) dd-wrt -> services -> services: change port of ssh back to 22
2) dd-wrt -> NAT/QoS -> port forwarding: add port from 22 to workstation-ip:22
3) dd-wrt -> administration -> management: change [ssh remote port] to 9999
Wacom Bamboo Create (CTH670) on linux
Apparently the xf86-input-wacom driver is not enough: one has to manually build the kernel module (for kernel version <= 3.2)
1) get input-wacom driver here: http://sourceforge.net/projects/linuxwacom/files/xf86-input-wacom/input-wacom/
2) unpack and run ./configure. Pay attention to the installation instructions at the end of ./configure output
3) copy kernel modules to /lib/modules/ as instructed.
4) modprobe wacom and enjoy
MKL FATAL ERROR /path/to/libmkl_def.so: undefined symbol: i_free
I started fooling around with python/scipy with the intention of replacing ruby/gsl. Came across this very weird error.
Minimal script to reproduce: invoke ipython -pylab, then in it,
In [1]: from scipy import *
In [2]: a=zeros(1000); a[:100] = 1; b = fft(a)
In [3]: plot(abs(b))
and ipython spits out the titled error.
Found a solution here: before running ipython,
export LD_PRELOAD=/opt/intel/mkl/10.0.5.025/lib/32/libmkl_core.so
apparently, some symbols are defined in libmkl_core.so instead of libmkl_def.so.