About sathyz

I am sathyz, thats what i call myself as i am bored of writing Satheesh Kumar M everywhere... I never led my life planning. I believe that not thinking about the future helps in living better in the present. I believe in God and destiny and I'm just letting Him take me wherever he wants. I'd just like to enjoy the ride...

debian no module named nvidia

Problem: Linux is not able to load nvidia module

When you are migrating from nouvuea to nvidia. nvidia would have been blacklisted.


$ cat /etc/modprobe.d/nouveau-blacklists-nvidia.conf
blacklist nv
blacklist nvidia
$ sudo rm /etc/modprobe.d/nouveau-blacklists-nvidia.conf

If you have upgraded linux kernel and tried to switch to nvidia driver, it is possible that dkms is not setup properly as mentioned in [1]. Try reinstalling linux headers and nvidia dkms.

$ sudo apt-get install --reinstall linux-headers-amd64
$ sudo apt-get install --reinstall nvidia-legacy-304xx-kernel-dkms

[1] http://forums.debian.net/viewtopic.php?f=7&t=130298


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
x = 50;
y = 100;

$ cat prog.c
#include <libconfig.h>
int main(){
  long int x = 0;
  config_t* 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

libconfig manual
Configuration file (wikipedia)