Removing Desktop bookmark from the GTK file chooser

As I am using xmonad, I do not really need the Desktop bookmark in the GTK file chooser.
  1. gconftool-2 --type boolean --set /apps/nautilus/preferences/desktop_is_home_dir true
removes the bookmark and prevents the creation of Desktop folder in home directory.

Printing From Self-Administered CSE Machines

If you are using debian or ubuntu:
  1. $ apt-get install cupsys cupsys-client cupsys-bsd
    This command will install all the packages you need to make your printing system works
  2. Edit /etc/cups/printers.conf
    man printers.conf is available for help.
  3. lpq and lprm do not work because the printers are remote. But there is a work around. Write scripts that send lpq and lprm commands to one of CSE machines. Here are examples: lpq and lprm.

apt-get Authentication

If you get
  1. W: GPG error: _URL_ _RELEASE_ Release: The following signatures couldn't be verified because the public key is not available: XXXXXXXX
run:
  1. $ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys XXXXXXXX
  2. $ gpg --armor --export XXXXXXXX | sudo apt-key add -

Mounting ISO Images

  1. mount -o loop -t iso9660 cdimage.iso mounting_point

Mplayer Config

In order to make Mplayer work with Korean (possibly Japanese and Chinese) subtitles, four options must be set in $HOME/.mplayer/config.
  1. unicode = 1
  2. subcp = cp949 (for Korean)
    subcp = cp932 (for Japanese)
    subcp = cp936 (for Simplified Chinese)
    subcp = cp950 (for Traditional Chinese)
  3. fontconfig = 1
  4. font = 'Baekmuk Gulim (for Korean)
Here is a config file that is tailored for Korean subtitles.

Iceweasel (Firefox) Customisation

At about:config, change the following two fields to enable the horizontal scroll with synaptic Touchpad:
  1. mousewheel.horizscroll.withnokey.action = 0
  2. mousewheel.horizscroll.withnokey.sysnumlines = true
and the following two fields to open links in new tabs instead of new windows:
  1. browser.link.open_newwindow 3
  2. browser.link.open_newwindow.restriction 0

Vim configuration

This is .vimrc file that I use.

Encoding videos for Blackberry Curve 8310 with mencoder

  1. mencoder \
    -vf scale=320:-10,expand=320:240 -fps 24.0 \
    -ovc xvid \
    -xvidencopts chroma_opt:vhq=4:bvhq=1:quant_type=mpeg:bitrate=384:pass=1:turbo \
    -oac mp3lame \
    -lameopts cbr:br=128 \
    -srate 44100 \
    -o /dev/null <infile>
  2. mencoder \
    -vf scale=320:-10,expand=320:240 -fps 24.0 \
    -ovc xvid \
    -xvidencopts chroma_opt:vhq=4:bvhq=1:quant_type=mpeg:bitrate=384:pass=2 \
    -oac mp3lame \
    -lameopts cbr:br=128 \
    -srate 44100 \
    -o <outfile.avi> <infile>

>next

plants