Posts Tagged ‘lucid lynx’


PyROOT installation on Ubuntu 10.04

In howto on Jul 13, 2012 by theoryl Tagged: , , , , , , , ,

Last time I installed ROOT, I did not have PyROOT enabled. So I have to recompile. The following assumes Python 2.6 has been installed.

Install ROOT v5.27/06b on Ubuntu 10.04:

# Download ROOT via svn checkout. For simplicity, download to the home area
svn co ~/root
cd ~/root
svn switch

# Get all the dependencies for Ubuntu
sudo apt-get install build-essential libx11-dev libxpm-dev libxft-dev libxext-dev

# Configure. Enable PyROOT along with many useful features
# (to change the installation directory, add `--prefix=/path/to/installation/directory/`)
./configure linux --enable-python --with-python-incdir=/usr/include/python2.6/ --with-python-libdir=/usr/lib/ --enable-mathcore --enable-mathmore --enable-roofit --enable-minuit2 --enable-gdml --enable-table

# Make
# (to use n number of cores, do `make -j n`)

# Install
# (to gain superuser privilege, do `sudo make install`)
make install

To run ROOT, the environment variables need to be set. For bash shell:

export ROOTSYS=$HOME/root
export PATH=$ROOTSYS/bin:$PATH

For c-shell:

setenv ROOTSYS $HOME/root
setenv PATH $ROOTSYS/bin:$PATH

Equivalently, they can be set by doing

source $HOME/root/bin/
#< for c-shell, do `source $HOME/root/bin/thisroot.csh`

To avoid setting the above variables every time, you can put the commands into ~/.bashrc (or ~/.cshrc).

Now try running ROOT:


If the ROOT splash screen shows up, quit and try running PyROOT:

python ~/root/tutorials/pyroot/

Please report any inaccuracy.



Wireless problem in Ubuntu 10.04

In howto on Apr 25, 2012 by theoryl Tagged: , , , ,

If your laptop is using an Intel wireless card when running Ubuntu 10.04, your connection might degrade over time. The bug description can be found here. It seems to affect 5100, 5300, 6100, 6300 series Intel cards. The implemented workaround is to temporarily disable the 802.11n mode. This is done by the file /etc/modprobe.d/intel-5300-iwlagn-disable11n.conf which contains a line:

options iwlagn 11n_disable50=1

It seems like after about 2 years, the permanent fix hasn’t arrived. If you are unhappy with this workaround, you can change the switch from 1 to 0. Then do:

sudo modprobe -r iwlagn
sudo modprobe iwlagn

You can check the wireless performance by comparing outputs from iwconfig before and after the change. If the Bit Rate increases, you can keep the setting; otherwise, you can change it back. Thanks to


Bazaar & Loggerhead on Ubuntu 10.04

In howto on May 22, 2010 by theoryl Tagged: , , , , , , , ,

A quick installation log of Bazaar 2.1.1 and Loggerhead 1.17 on Ubuntu Lucid Lynx 10.04. Bazaar is a tool for distributed Version Control System (VCS), which some also call it Source Code Management (SCM). Loggerhead is a web-based code browser for Bazaar repository (more info)

1. Install from Ubuntu repository:
$ sudo apt-get install bzr loggerhead

2. Setup Bazaar as you would or refer to their decent 5-minute tutorial

3. The documentation of Loggerhead does not exist online, but is found in /usr/share/doc/loggerhead. All that you need to do though is:
$ sudo cp /usr/share/doc/loggerhead/examples/serve-branches.conf.example /etc/serve-branches.conf
$ serve-branches /path/to/branch
(by default, the host is localhost, the port is 8080. If these are not your choice, simply include the arguments --host=USER_HOST --port=USER_PORT. Optionally you can set --prefix=USER_PREFIX too)

4. Now you should be able to browse your codes at http://localhost:port/ (or http://USER_HOST:USER_PORT/USER_PREFIX/ if you set these arguments earlier)

5. To hide branches from being displayed, add to ~/.bazaar/locations.conf under the branch’s section:
http_serve = False

Read More »


ROOT installation on Ubuntu 10.04

In howto on Apr 16, 2010 by theoryl Tagged: , , , , , , ,

I upgraded Ubuntu from 8.04 to 10.04, so I needed to build ROOT, which is the bread and butter of some scientists (but perhaps not a lot of love). ROOT is now available via subversion (svn), making it much easier to update/patch.

Install ROOT v5.26/00b on Ubuntu 10.04:

  1. Download ROOT via svn checkout. For simplicity, I assume it is downloaded to the home area:
    $ svn co ~/root
    $ cd ~/root
  2. Get all the dependencies:
    $ sudo apt-get install build-essential libx11-dev libxpm-dev libxft-dev libxext-dev
  3. Configure. Here I enable most of the features to save myself worry about missing libraries in the future:
    $ ./configure linux --enable-mathcore --enable-mathmore --enable-roofit --enable-minuit2 --enable-gdml --enable-table
    (to change the installation directory, add --prefix=/path/to/installation/directory/)
  4. Make
    $ make
    (use make -j n if you have a n-core machine)
  5. Install
    $ make install
    (might need sudo depending on which directory ROOT is installed into)

Read More »


Ubuntu installation via USB stick+hard disk mix

In howto on Apr 11, 2010 by theoryl Tagged: , , , , , , ,

The easiest way to install Ubuntu on a machine is of course to go grab a CD image from the Ubuntu release page and burn it. If for whatever reason, you can’t burn the CD, be it you have a machine without a CD drive or with a CDROM but not CDRW, or, like this author, you don’t have a writable disc, the alternative is to use a USB stick. There already exist a variety of tools out there to “convert” a USB stick into a boot-able media like a CD, such as usb-creator in Ubuntu and UNetbootin for both Windows & Linux. However, if your USB stick has < 700 MB of memory, or, like this author, it has some faulty memory sector**, fear not — here’s a guide for you!
(** received a bunch of SQUASHFS errors and the help page didn’t help)

This guide assumes that you want to:

  1. dual boot Windows and Ubuntu in the machine, with Windows being already installed. This is the “target” machine. The tested Ubuntu version is Lucid Lynx 10.04 beta 2, but this guide should work for all Ubuntu versions >8.04.

and you have:

  1. a USB stick with a minimum of 15 MB of memory (to be safe, get one with >25 MB);
  2. the BIOS of the target machine does support booting via a USB media. Its Windows partition should be large enough to hold the Ubuntu installation disc image (~700 MB);
  3. another machine that is already running Unix/Linux. Strictly speaking, this is only used to prepare the boot sector in the USB stick. Presumably Windows can do it too, this author just didn’t try;
  4. free time and an adventurous soul.

The articles referenced below helped this author a lot. It is therefore strongly recommended to go through these well-written articles before you attempt this guide:


Read More »