2008年10月11日星期六

Better Looking Emacs

To change Emacs color theme, first install emacs-goodies-el by typing
apt-get install emacs-goodies-el

To choose and try, run emacs and type
M-x color-theme-select

It will open a list of color theme.

To change the fonts, you have to install the emacs-snapshot, and use it as the default emacs afterwards.

Then:

echo "Emacs.font: Monospace-11" > .Xresources
xrdb -merge ~/.Xresources

Or:
emacs-snapshot --font "Comic Sans MS-10" SOMETHING
other very nice fonts:
--font "Cortoba-12"
--font "Purisa-10"

2008年10月4日星期六

Using the malab remotely

It is so disappointing when I found it is so slow to use the ssh -X to run Matlab in my office from my apt. Turns out it is the problem of jre...

Thus, I tried to do it without most of the GUI:
ssh -X
matlab -nodesktop -nosplash

then, it became a command line version of matlab. When I do things like edit x.m, the GUI editor still shows up! And pretty fast.

whos will give all the current variables in the worksapce. So the debugging will be fine.

helpwin give me the GUI help, good.

2008年10月3日星期五

Matlab Linux can not show command window

After installing Matlab r2007a on my TA computer, one weird problem occurred. It seems that the command window can not be displayed, only a blank window. Anything else seems to be fine, coz when I click start, I can run simulink and so on.

In the command line, the error is:

Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb558d767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb558d8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb591e1bd]
#3 /usr/local/mathworks/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so [0xaef5122e]
......

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre

then everything goes well again...

Just remember to modify the version of java when updated...

2008年10月1日星期三

How to get libXm.so.3

apt-get install libmotif3