Skip to main content

Posts

Showing posts from March, 2009

mounting fat32 partition in Ubuntu 8.10

I like to use a fat32 partition as a shared partition, and want to be able to read and write in that partition. Thus, I modify my /etc/fstab to include the following command, i.e. /dev/sda2 /media/sda2 vfat defaults,utf8,umask=077,gid=1000,uid=1000 0 0 the key is to specify 1. umask=077; it means only the user has the right to read-write-execute. 2. uid=1000,gid=1000 are the user id and the group id of the owner. well, it is not perfect but it suits my need.

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

using kdevelop to setup moses machine translation decoder

To setup ~/tl/dbgC/D0901aMoses/ver11 Make sure language model SRILM is compiled in ~/tl/binC/B0901aSRILM157/ver01. Specifically we need the include and lib directories. Create a new subproject, and name it as Amoses, copy *.cpp and *.h files into the subproject, and remove LanguageModelIRSTLM.cpp. Link the include file of srilm project into this folder. Create a new subproject, and name it as AmosesCmd. Include the library from srilm, i.e. liboolm.a, libmisc.a, and libdstruct.a. Moreover, we need /usr/lib64/libz.a or -lz. In LINK LIBRARY OUTSIDE PROJECT add/edit the link to external library path and static library, e.g. -L/storage/sda9/tl09/binC/B0901aSRILM157/ver01/lib/i686-m64,-L/storage/sda9/tl09/dbgC/D0901aMoses/ver11/debug/src/Amoses/, -lmosesA, -lmisc, -loolm, -ldstruct, -lz. Set CXXFLAGS in SUBPROJECT Option using the following compiler setting: -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -DHAVE_SRILM

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