2011/11/12
2011/10/30
Nesting X
The Xephyr kdrive X server for running a more development oriented X11 window manager (xterm's) inside another environment (e.g. kde). For gentoo setting the kdrive use flag will cause Xephyr to be built.
}
(sleep 7; delayed ) &
# -s : only manage the specified display (DISPLAY)
exec tvtwm -s
#!/bin/bash
# kde system-settings->keyboard settings->advanced->Alt/Win key behaviour->
# -> Meta is mapped to Left Win
nest_display=${1:-":7"}
geometry=${2:-"1915x1150"}
nohup Xephyr -ac -screen $geometry -nolisten inet6 $nest_display &
sleep 2
export DISPLAY=$nest_display
delayed()
{
xrdb ~/.Xdefaults
setxkbmap ie
xmodmap ~/.xmodmap# kde system-settings->keyboard settings->advanced->Alt/Win key behaviour->
# -> Meta is mapped to Left Win
nest_display=${1:-":7"}
geometry=${2:-"1915x1150"}
nohup Xephyr -ac -screen $geometry -nolisten inet6 $nest_display &
sleep 2
export DISPLAY=$nest_display
delayed()
{
xrdb ~/.Xdefaults
setxkbmap ie
}
(sleep 7; delayed ) &
# -s : only manage the specified display (DISPLAY)
exec tvtwm -s
2010/04/27
vmware through a keyhole
Finding all your vm's mice borked? (restricted to the top right hand area of the screen - broken everywhere else)
Try putting this into your environment:
VMWARE_USE_SHIPPED_GTK=yes
And ignore startup theme errors.
Thanks to forums.gentoo.org
Try putting this into your environment:
VMWARE_USE_SHIPPED_GTK=yes
And ignore startup theme errors.
Thanks to forums.gentoo.org
2009/06/15
One mbox to hold 'em all
Roll your own IMAP mailbox into gmail:
- git clone git://github.com/rgrove/larch.git
- git clone git://gitorious.org/trollop/mainline.git
- emerge -av highline
- Make a list of folders on the from server - I used the contents of my thunderbird directory. E.g. something like:
find . -name '*.msf' | sed -e 's/.msf//' -e's/.sbd//g' -e 's/-1//' -e 's/.\///'|sort|uniq
- xemacs above to create a file, with one line for each folder with a simple format: from_format to_label
- Feed into a script something like:
while read from to ; do
ruby -Imainline/lib:larch/lib \
larch/bin/larch \
--from imap://imap.example.foo --from-user XYZ --from-pass OPW \
--to imaps://imap.gmail.com --to-user ABC --to-pass DEF \
--from-folder $from --to-folder $to
done
2009/04/28
push the button Max, err Gunther
Why did I want this in the first case? - but anyway, it seems to work by:
1. Following the tip
2. Download tweetdeck or just:
1. Following the tip
2. Download tweetdeck or just:
wget http://www.tweetdeck.com/beta/TweetDeck_0_25.air3. Running the app with (note slight typo fix for app directory to tip in #1):
For 26.4 (8 July 2009) this changed to:
http://downloads.tweetdeck.com/TweetDeck_0_26.air
/opt/AIR-SDK/bin/adl -nodebug /opt/AIR-apps/TweetDeck_0_25/META-INF/AIR/application.xml /opt/AIR-apps/TweetDeck_0_25It complains about:
I/O warning : failed to load external entity "/etc/opt/Adobe/certificates/crypt//config.xml"But otherwise appears to run, just with lots of warnings like:
Unable to parse Document: /etc/opt/Adobe/certificates/crypt//config.xml.
warning: unable to bind to property 'tTextHTML' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'tSource' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'tUserID' on class 'Object' (class is not an IEventDispatcher)
2009/02/12
Wait Up
If you find service startup (e.g. samba) failing because an interface started in the background isn't up in time, then waitup may be an answer:
#!/bin/bash
IFACE=$1
count=0
echo -n "Wait for ${IFACE}"
while ! /sbin/ifconfig ${IFACE} 2>/dev/null | grep -q "UP" ; do
echo -n "."
sleep 1
count=`expr $count + 1`
if [ $count -gt 10 ] ; then
echo "not found in 15sec - bailing"
exit 1
fi
done
echo ". ($count)"
exit 0
2008/12/14
Trust in Alsa
The Trust SC-5500p usb sound box isn't picked up by ALSA directly (audacious seems to work?) - the result is bad distorted/garbled sound. ALSA configuration is more complicated than most need.
Adding an asoundrc with channels 6 seems to get sound out at least (no dmix/mixing yet):
Adding an asoundrc with channels 6 seems to get sound out at least (no dmix/mixing yet):
pcm.!default complex_convert
pcm_slave.sl3 {
pcm "hw:0,0"
channels 6
}
pcm.complex_convert {
type plug
slave sl3
}
Subscribe to:
Posts (Atom)