Thursday, May 31, 2007

Fix Maya ugly cross cursor

Add this into "~/maya/7.0/Maya.env"

MAYA_MMSET_DEFAULT_XCURSOR=1;

How to know Linux Distro version?

Ubuntu
#cat /etc/lsb-release

SuSE
#cat /etc/SuSE-release

Wednesday, May 30, 2007

Simple diff and patch

To generate a patch
#diff -u [original dir] [modified dir] > patchfile

To use a patch
#cd [original dir]
#patch -p[num] < patchfile

[num] is level of directories to ignore

ex.
if num = 1 then
a/foo/bar.c become foo/bar.c

No Syntax Colors in Vim

#vi ~/.vimrc
Add "syntax on" in it.
Done!

Tuesday, May 29, 2007

Switch Input Method in Ubuntu

#im-switch [im_name]
#man 7 undocumented

Wednesday, May 23, 2007

Linux Printing Command

linux command

#lpr //print file
#lpq //query

Tuesday, May 08, 2007

Install RPM Package under Ubuntu

using Alien Package Converter

#sudo apt-get install alien
#sudo alien -k name-of-rpm-file.rpm

the parameter "-k" in the command line means "keep version"
sometimes you may also want to use "-scripts" to maintain the related installation scripts