Compiling and Using CMU Sphinx in GNU Debian Linux

CMU Sphinx, also called Sphinx in short, is the general term to describe a group of speech recognition systems developed at Carnegie Mellon University. These include a series of speech recognizers (Sphinx 2 – 4) and an acoustic model trainer (SphinxTrain). Here are brief steps for compilation and usage of CMU Sphinx in Debian.

  1. Download sphinxbase and pocketsphinx from github:
  2. Install prerequisite packages  as:
  3.   Add write access to /usr/local for current user as:
  4. Export following paths:
  5. Change directory to sphinx base and compile it:
  6. In case of any update:
  7. Then change directory to pocketsphinx and compile it:
  8. In case of any update:
  9. To test run below command and wait for ready. Say a word in microphone and it will guess and type that word:

Debian4Engr Series 06: Installation of QGIS

Following is guide for installation of QGIS 1.8.0 in GNU Debian-cut and wheezy:

  1. Update sources.list:
  2. Update Packages for Wheezy for i386 and amd64 are available at:

  3. Keyring:
  4. To add the the qgis.org repository public key to your apt keyring, type:

  5. Installation:
  6. If you also want python plugins make sure to install the optional python package:

    If you want the GRASS plugin make sure to install the optional package:

  7. Note:
  8. As to date i.e., 30/09/12, qgis-plugin-grass was not installable because it required a package grass641 which is not available in any repo (stable, testing, unstable, experimental) of debian. I have reported the bug to QGIS issue tracking. For now, I upgraded to nightly build of qgis by changing sources.list as:

    Then followed the steps of installation heading as described above and successfully install all three packages, i.e, qgis, python-qgis and qgis-plugin-grass. QGIS 1.90 – Master was installed successfully.

  9. Reference:
  1. QGIS Official Installation Guide

Debian4Engr Series: 05 Document writing using LaTeX

LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. One of great benefit of LaTeX is that it can be converted easily to postscript, pdf or html. There is excellent collection documentation and books on LaTeX website which can be helpful to get started with LaTeX.

Following packages are required to work with LaTeX in Debian:

  1. texlive – the base TEX/LATEX setup.
  2. emacs (with auctex) – a Linux editor that integrates tightly with LATEX through the add-on AucTeX package.
  3. ghostscript – a PostScript preview program.
  4. xpdf and acrobat – a PDF preview program.
  5. imagemagick – a free program for converting bitmap images.
  6. gimp – a free photoshop look-a-like.
  7. inkscape – a free illustrator/corel draw look-a-like.

Following is a simple getting started tex file that should be save with name of hello.tex using emacs or gedit.

Above file can be compile either directly from emacs or from terminal by following command:

The result will be a pdf file with following writing:

Creating CV,  Technical Reports and Presentation:

You can write your entire technical report, thesis or CV in LaTeX. You can also use Beamer class  (latet-beamer) to create Powerpoint like presentation in LaTeX.

 

Converting odt to LaTeX:

Libre documents can be converted to LaTeX using w2l command from terminal. This feature will requires installation of libreoffice-writer2latex and writer2latex.

Then executing w2l will convert odt to LaTeX file.

Converting LaTeX to odt:

tex4ht package is required for this conversion:

To convert document, use oolatex command:

Another package for LaTeX to odt is pandoc. To install use:

To convert, LaTeX to odt, use:

pandoc can be used to convert tex to other formats.

Both conversion are not giving ditto copy of original tex file. But they are helpful to get required file which need further editing to make it same as original tex file.

Reference:

  1. LaTeX Project
  2. Sample Thesis and  CV in LaTeX on tedpavlic.com
  3. Beamer Class
  4. odt to LaTeX
  5. tex4ht
  6. pandoc

 

Debian4Engr Series: 04 Recommended Packages, Tips & Useful links

Recommended Packages:

  1. icedove, for email client, to install from root terminal:
  2. iceweasel, for browser (its same firefox but with removed copyright content i.e., mozilla logo and its brand name firefox), to install from root terminal:
  3. libreoffice, gnu/gpl office software as openoffice is now voilating opensource licenses, to install:
  4. unrar, program for extracting rar archive files, to install:
  5. opensource matlab, scilab, to install:
  6. eclipse ide with jdk, to install:

    and to install cdt (c++ development tools for eclipse):

    . To install g++ and its debugger:
  7. ffmpeg, for audio/video codec converter, to install:
  8. kdenlive, for video/audio editing, to install:
  9. qcad, for 2d engineering cad/cam. to install:

 

Recommended Tasks:

 

  1. Never experiment with production system.
  2. Never install software outside from repo or from source code.
  3. Always backup on regular basis and before experimenting with new package.
  4. Some guide, tips and solution given on different sites are outdated and doesn’t work with your current distro. Check date of upload of these guides.

 

Useful links:

http://forums.debian.net/
http://debian-administration.org/
http://aboutdebian.com/
http://raphaelhertzog.com/
https://linuxfoundation.org/
https://linux.com/
http://kernel.org/
http://linux-laptop.net/
http://www.cyberciti.biz/

Debian4Engr Series: 03 Recommended sources.list & apt preferences

My Debian sources.list is:

and my apt preferences file is:

I have kept lower priorities in preference for testing and unstable because they are not recommended for stable production system and may crash your system.

After setting preferences, you need to put ‘-t {repo type}’ for installation e.g.,

 
 

Reference: Apt-Pinning for Beginners

Debian4Engr Series: 02 Recommended Linux Partition

During installation of Debian Linux, you are required to enter partition scheme. The easiest way is to use entire disk and recommended partition or you can decide yourself the partition. One of helpful detail of partition is given below:

swap = 2GB
file type for rest of partition = ext4
/ = 6GB
/boot =200MB
/opt = 10GB
/srv = 3GB
/tmp = 6GB
/usr = 10GB
/usr/local = 10GB
/var = 5GB
and finally for /home = rest of space left (but atleast 10GB).
This partition is on Logical Volume Manager – LVM. You can edit each partition later using GParted Live CD.

Note: This recommended partition is for end user’s laptop and desktop. For servers, /srv partition should be big enough for running services and /var partition must also be adjusted for maintaining log files.

For More info:

You can find more information about swap size from: NixCraft or Linux.com. The details on each partition is given in NixCraft, LinuxPlanet, Debian.org and on LinuxQuestions.

For partitioning multiple disks, guide can be found on tldp.

To check existing partition, use fdisk, palimpsest and baobab – Gnome Disk Usage Analyzer.

Debian4Engr Series: 01 Before Installation

Debian is a free operating system (OS) for your computer. Debian GNU/Linux provides more than a pure OS: it comes with over 29000 packages, precompiled software bundled up in a nice format for easy installation on your machine. Read more…

01 Before Installation

  1. Debian Linux is installed on most of the desktops without any issues. If you want to install Debian Linux on laptop then check hardware support from http://linux-laptop.net/ or http://bing.com/
  2. If your laptop not found in the list then still you can try it.
  3. Run live cd mode to check keyboard layout, hardware compatibility, installed software and desktop environment.
  4. To get used to with environment of Linux and its desktop like gnome or kde, install it in virtualbox.
  5. Debian Linux is recommended for advance Linux users. It is recommended to try easy distro like Ubuntu before and have some know how on basic Linux commands and tasks.