Posts Tagged ‘customizations’


Make Chromium always incognito

In howto on Oct 9, 2011 by theoryl Tagged: , , , ,

Under Ubuntu, to start the Chromium browser (the open-source version of Google Chrome) in incognito mode always, just edit the file /etc/chromium-browser/default and set the flag  CHROMIUM_FLAGS="--incognito"


Using mathrsfs script fonts in MediaWiki

In howto on Jan 28, 2011 by theoryl Tagged: , , , , , , , ,

This is in Ubuntu Lucid Lynx 10.04:

The RSFS fonts give you very nice script fonts:

The top row shows the fonts from the command \mathscr while the bottom from \mathcal, which \LaTeX users should be more familiar with.

In order to use the RSFS fonts in \LaTeX, you would add the preamble \usepackage{mathrsfs} in the .tex file. But what if you want to use the RSFS fonts in MediaWiki (the software that powers the Wikipedia), which by default does not include the preamble?

It turns out that you have to compile texvc (the \LaTeX interpreter incorporated into MediaWiki) with some slight modifications to (located in the source directory mediawiki/math). Basically, you want to add the preamble into that file. Below is what I did:

  • First, make sure you have installed mathrsfs.sty in the \LaTeX environment. If not, you can download it from In Ubuntu 10.04, it should be located at /usr/share/texmf-texlive/tex/latex/jknapltx/mathrsfs.sty.
  • Get the MediaWiki source from repo: sudo apt-get source mediawiki. Install all the dependencies as well.
  • Get its compiler: sudo apt-get install ocaml-nox gcc.
  • Now cd to the math directory: cd /var/lib/mediawiki/mediawiki-1.15.1/math
  • Edit the file Find the line beginning with: (if !modules_ams then "\\usepackage{amsmath}\n
  • Now, add: "\\usepackage(mathrsfs)\n" among the preambles.
  • Add another line close to the end of the file: | "\\mathscr" -> (tex_use_ams (); FUN_AR1 "\\mathscr ").
  • Compile: sudo make
  • After it is compiled successfully, copy the executable: sudo cp texvc /usr/bin

Make sure TeX is enabled in MediaWiki config file LocalSettings.php. If not, append the line to the file: $wgUseTeX = true ;.

That’s it. You should be able to use the command \mathscr in your MediaWiki!



Getting more out of Ubuntu box

In howto on Jun 4, 2008 by theoryl Tagged: , ,

So, Ubuntu works out-of-box for you? Great! But, the fact that you dumped Windoze and come into GNU/Linux world surely tells that you always want something more. Due to licensing issues, a lot of useful softwares are not bundled together with Ubuntu, but are available in the `multiverse’ repository. As a personal user, most of the license terms do not concern you, so go ahead and enable `multiverse’. If you do not know how to do it, go to Community Doc for a graphical guide. After that, you are open to various tools that Ubuntu has to offer:

  1. If you dual-boot, you sometimes want to access Windows NTFS partitions from Ubuntu. Certainly you want to avoid rebooting into Windows then rebooting into Ubuntu again. In fact, it is very easy, do:
    sudo apt-get install ntfs-config
    Reboot if you need to. Go to `Computer’ and you’ll see Windows partitions are listed there. Isn’t it amusing how simple this can be? (note that FAT32 partitions can readily be accessed without this step).
  2. I’ve covered how to install Adobe Reader and Flash viewer previously.
  3. To customize the looks of Ubuntu, you can install themes into $HOME/.themes, and icon packs into $HOME/.icons. Or you can go to Preferences->Appearances to install themes and icon packs. offers you plenty of choices.
  4. Read More »