Skip to main content

Posts

Showing posts with the label ubuntu

firefox 3.0 full screen mode

In my ubuntu 8.10 system, I don't like the new feature of firefox 3.0 that always starts in a full screen mode. To disable the feature, go to the user's profile folder which is located in ~/.mozilla/firefox/ folder, and find the file "localstore.rdf". Rename the file to something else, such as "localstore_rdf_bak", and it should fix the problem.

Installing latex-beamer on local directory

First, let the latex aware of the new local directory: Check out the current configuration file by:kpsewhich texmf.cnf Copy the texmf.cnf into /home/userName/texmf Modify the texmf.cnf by add the new directory into the variable TEXMF into texmf.cnf set up the environment variable TEXMFCNF=/home/userName/texmf either in bashrc or cshrc Notice that kpsewhich texmf.cnf will return the new local directory after that By doing so, from now on, latex is going to check the local directory for any style file. Now, assume the local installation directory is going to be /home/userName/texmf/ Download latex-beamer-versionNumber.tar.gz Create directories /home/userName/texmf/tex/latex/ ln -s /path/to/latex-beamer-versionNumber.tar.gz /home/userName/texmf/tex/latex/ Extract the latex beamer over ther, i.e. tar -xzvf latex-beamer-versionNumber.tar.gz sudo update-texmf sudo texhash

compiling HTK 3.4 under Ubuntu 64 bit machine

Make sure you have install Install sudo apt-get install libc6-dev-i386 download getlibs from http://ubuntuforums.org/showthread.php?t=474790 sudo dpkg -i --force-all package_name.deb install 32-bit version of x11 using the command sudo getlibs -p libx11-dev Configure ./configure CC=gcc-3.4 --prefix=installation/location --disable-hlmtools

ls in ubuntu emacs

Emacs shell mode can be executed using (M-x shell). When doing a listing using 'ls', the control characters mixed in with the listing. The solution is to unalias ls bash> alias ls alias ls='ls --color=auto' bash> unalias ls bash> ls

Display and Print Source Codes

One can use either "a2ps" or "trueprint" to print source codes. Today, I am going to experiment with "trueprint". A decent source code printing program should have the following requirements: Indentation is done correctly. Smart Spacing to avoid leaving out one-two lines of codes in previous page. Be able to convert to pdf or ps Be able to print two pages on one side The following are several examples of using the "trueprint" function: bash >> trueprint --portrait --language=cxx --intelligent-line-wrap --four-up --page-break-after-function --no-cover-sheet --output=EMMUtil_cpp.ps EMMUtil.cpp bash >> ps2pdf EMMUtil_cpp.ps EMMUtil_cpp.pdf bash >> rm EMMUtil_cpp.ps Please read the man page for further explanations. good day !!!

Installing and using Emacs, AUCTeX, RefTeX, preview-latex

Typing Latex in Emacs is easier with the help of AUCTeX, RefTeX and preview-latex Installation of AUCTex, RefTex and preview-latex Using Most commonly used command: C-c ( ; it is used to label an object. C-c ) ; it is used to reference an object. C-c [ RET keyword; it is used to find the reference \cite C-c = to explore table of content C-c C-p C-d; it is used to turn on preview-latex C-c C-p C-c C-d; it is used to turn off preview-latex

Installing Ubuntu 8.04 (Hardy Heron)

I have done clean install on Ubuntu 8.04. The bug I have encountered so far are as follows: Rythmbox crashes when musics are played, the solution found is to disable all of the plug-in. Firefox-3 is not stable yet, so uninstall it and move ~/.mozilla into ~/_mozilla as a backup. Personalized bookmark is located in ~/.mozilla/firefox/*.default/bookmarks.html. Then install firefox-2. Good luck !!!