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.
- 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:
- $ apt-get install cupsys cupsys-client cupsys-bsd
This command will install all the packages you need to make
your printing system works
- Edit
/etc/cups/printers.conf
man printers.conf is available for help.
- 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
- W: GPG error: _URL_ _RELEASE_
Release: The following signatures couldn't be verified because
the public key is not available: XXXXXXXX
run:
- $ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys XXXXXXXX
- $ gpg --armor --export XXXXXXXX | sudo apt-key add -
Mounting ISO Images
- 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.
- unicode = 1
- subcp = cp949 (for Korean)
subcp = cp932 (for Japanese)
subcp = cp936 (for Simplified Chinese)
subcp = cp950 (for Traditional Chinese)
- fontconfig = 1
- 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:
- mousewheel.horizscroll.withnokey.action = 0
- mousewheel.horizscroll.withnokey.sysnumlines = true
and the following two fields to open links in new tabs instead
of new windows:
- browser.link.open_newwindow 3
- browser.link.open_newwindow.restriction 0
Vim configuration
This is
.vimrc file that I use.
Encoding videos for Blackberry Curve 8310 with mencoder
- 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>
- 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>