apt-get update only required translations

apt-get update was updating translation for so many languages which I’m not concerned about and found that it can be controlled using apt.conf[1].

  • Added the following line to /etc/apt/apt.conf.d/70debconf
    Acquire::Languages { "environment"; "en"; "ta"; };

  • next immediate apt-get update still got translations for many other languages, I had to clear /var/lib/apt/lists as mentioned in [1] after which apt-get update pulled only the translations mentioned in the conf.

for more information check
man apt.conf
[1] http://lists.debian.org/debian-user/2011/09/msg00059.html

ubuntu gnome3 evince-common dependency breaks

Had been getting dependency problems on Ubuntu 11.04 (was using gnome3 ppa)

satheesh@dhcp-maa-125-17-130-186-08:02:22-~$ sudo apt-get dist-upgrade
[sudo] password for satheesh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Failed
The following packages have unmet dependencies:
evince-common : Breaks: evince (< 3.0.0-0ubuntu1) but 3.0.0-0ubuntu1~build1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

The following fixed,

satheesh@dhcp-maa-125-17-130-186-09:31:31-~$ sudo apt-get install --reinstall evince

Then did reinstall of gnome-session-bin and gnome-session-common and installed gnome-session

carte blanche ’11

Its 7 years since cs-mit started the carte blanche event in ’05. Of all the events I like the Free/Open Source demos in our hangar. Every year its a new learning for me at the demos and this year almost in every stall our juniors had something new.

  • Kreceipes

    A KDE/mysql based recipe manager, the following are the highlights

    • can show the cholesterol, sugar etc. based on the ingredients.
    • can show recipes based on the items we have
    • can prepare shopping list for the recipes

    I hope this would be useful for bachelors :). My wish list for this is a global database of recipes so that we can pull and push recipes, rate them, mark as favo/like.

    GNOME alternative:

  • Basket note pads

    Another KDE based applciation for note taking. More than a simple text editor or a word processor, we can add any image, to do list, links, app launchers (ie. short cut to files) so on.

    GNOME alternative:

  • sweet home 3d

    Are you planning for building your own home? Try sweet home 3d using which can design/model it, including furniture, flooring so on. I have been looking for this.

  • Amaya

    w3c’s web development tool. Easy, user friendly and good for HTML beginners. I have just learned, how to show mathematical formulae on web pages. For more info, check this page.

  • Keryx

    Python based offline package management tool for debian based systems. When could this be useful, here is a scenario, I have desktop in my home (erode) which has basic GNU/Linux installation that comes with ubuntu. We have dial-up (limited download) connection, can be used to download a few packages but not the all we need. Using keryx, I can search and download the packages I need. Keryx allows us to download packages along with their (uninstalled)dependencies. A good demo by Kanchi LUG.

    A good work juniors :). Hope to see you on next carte blanche.

using config files in C

Requirement is to move the data out of C programs and let the program use a config file for the data. say we have a file called data.ini.

$ cat data.ini
position:{
x = 50;
y = 100;
}

$ cat prog.c
#include <libconfig.h>
int main(){
  long int x = 0;
  config_t* config;

  config_init(config);
  // read config file
  config_read_file(config, "data.ini");

  // get the value
  if( config_lookup_int(config, "position.x", &x) == CONFIG_FALSE ){
    printf("failed to lookup - position.x\n");
    return 1;
  }

  printf("x = %d\n", (int)x);
  return 0;
}

Compile the program using the option “-lconfig”

$ gcc -lconfig prog.c

You may need libconfig-dev,
$ sudo apt-get install libconfig-dev

Reference:
libconfig manual
Configuration file (wikipedia)

Go green on GNOME

I was looking for green themes/colors for my GNOME. GNOME colors[1] solved my problem. I did the following,


$ sudo apt-get install gnome-wise-icon-theme gnome-colors arc-colors

Appearance:
* Icons – GNOME-wise (green)
* Colors – Selected items : Background = #547722
* Controls – can be any ( I had clearlooks)

GDM Setup:
* Local : Arc-Wise GDM (Green)
* Background = #547722

[1] http://code.google.com/p/gnome-colors/