Tuesday, September 28, 2010

Settings on a New Ubuntu Box

I install the following packages:

Wicd for networking
Google Chrome browser - sync
Mendeley Desktop
autofsck (for disk check at shutdown, not startup)
Wicd Network Manager

For Development
KDevelop -- for this on Ubuntu 10.04
ant, cmake
doxygen, graphviz (needed for doxygen)

My Bashrc
alias rm='mv --target-directory ~/.Trash' # safe erase
alias gnome-terminal='xterm' # or the other way around

alias make="make -j 2"
alias vim="gvim"

Other changes:
In vimrc

Monday, September 27, 2010

Installing KDevelop4 on Ubuntu 10.04

Follow http://www.kubuntu.org/news/kdevelop-4. It worked fine for me. After this, I installed the vim plugin, ooh la la.

Sunday, September 26, 2010

Backup of Hudson Config for Building Crackpot

Some time before I set up Hudson for continuous integration of Crackpot. Here I want to back up all the configurations for ready reference (physical backup of Hudson home dir is already set).
  • Dependencies for Building
  • Config for Building Crackpot
  • Hudson Settings
  • Setting Hudson as a Service
Dependencies for Building
  • Visual Studio for devenv
  • cmake
  • cygwin to execute shell
Config for Building Crackpot

Under Build > Execute Shell, put:

  # define build and installation directories

   # we want to have a clean build
   cd "$BUILD_DIR"

   # initializing the build system
   cmake  -G "Visual Studio 9 2008" "$SOURCE_DIR"

   # fire-up the compiler
   # NOTE: put denenv in system path
   devenv.com Crackpot.sln /clean Debug /project ALL_BUILD
   devenv.com Crackpot.sln /build Debug /project ALL_BUILD
   devenv.com Crackpot.sln /build Debug /project RUN_TESTS

  # define source directories

   # we want to have a clean build
   cd "$SOURCE_DIR"


Hudson Settings

Environment Variables: 

key: PATH
value: %PATH%;C:\Program Files\CMake 2.6\bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Windows\System32;C:\Program Files\doxygen\bin

Shell executable:


Setting Hudson as a Service

There was some issue with using the Hudson built-in way to set as service. I followed this and this

Tuesday, September 14, 2010

Process Getting Killed Using Ubuntu 10.04 as VMWare Guest OS

I installed our memory-intensive software on Ubuntu running on VMWare. This process was getting killed quite quickly after start. After some internet search, I understood that this is due to the OOM-killer in the kernel. To disable to OOM-killer, I added to my /etc/sysctl.conf:

vm.oom-kill = 0 
I got this and a lot of other useful information related to oom-killer from this forum. But most of what is said there regarding oom-killer configurations does not apply to Ubuntu 10.04.

Wednesday, September 1, 2010

Using SVN Externals to work with Multiple Repositories

I am writing a library called HSL. This library will be a third-party library in Crackpot and used for encoding heuristics. In order to work with Crackpot code along with HSL, I will be using the "svn externals" mechanism.


Why not simply have a copy of the external library in local repository? The primary benefit is that changes made to the local copy can be committed to the external repository.


~/tmp/co$ svn propedit svn:externals .
No changes to property 'svn:externals' on '.'
~/tmp/co$ svn propget svn:externals .
thirdparty/hsl/hsl_alpha_version  -r5 https://heuristic-selection-library.googlecode.com/svn/trunk

~/tmp/co$ tree
`-- thirdparty
    `-- hsl
        `-- hsl_alpha_version