Posts Tagged ‘ Karmic

Debian, Ubuntu, and dpkg

Over the last few days,  I’ve been trying to get GMT up and running on Ubuntu 9.10.  I’ve run into several roadblocks and difficulties along the way, including problems with installing and accessing supporting software packages.  The one that’s been causing me the most headaches is GDAL.

Kurt was helping me to figure it all out, and in the process introduced me to a new command that I’d never used before:  dpkg.  He got me to use it to look for installed packages.   I looked up the man page for it, and discovered that it is a package manager for Debian.  Which led to my question “What is Debian?”.  I’ve seen all kinds of references to Debian in Ubuntu, and lots of cross references in documentation and online forums.  I always thought Debian was a completely different OS, but there is more to it than that.

Here is a link to a page on the Ubuntu website:  Debian and Ubuntu. Ubuntu is built on the Debian Linux distribution. It is supposed to have more frequent security updates, a nicer desktop user interface, and frequent system updates so that an up-to-date Ubuntu system will provide access to software packages that are at most 6 months old. The Ubuntu website also claims that they provide bug fixes and feedback to Debian during their development process, not just at the release. In fact, there are supposedly several Ubuntu developers who are also Debian developers.

However, it’s probably worth knowing about the other side, too – some people really like Debian a lot more than Ubuntu, or other Debian-based distros.  This person discusses some dissent over Ubuntu being owned by a company (Canonical), thus undermining its open-source-ness.  Debian’s also strict about free software, while Ubuntu, apparently, is a bit lax on that issue. (re-branding Firefox as Iceweasel??)  They also say that Debian is compatible with Special Computer Architecture – so more robust for unusual setups, I guess.

In any case, I am happy with Ubuntu 9.10, but it’s good to know some background.

Learning Python (the book)

I just picked up my second python book – although this is probably the one I should have bought first.  It’s ‘Learning Python’ from O’Reilly.  I already had Beginning Python.  I’ve been wanting to get the O’Reilly one for a while now, but never really wanted to spend the 50 bucks.  I finally broke down and got it at Borders this morning.  I hope it’s a good reference.  The first thing I’d like to do is to remember how to do things like read files, parse data, create plots.  I think I remember having to add Scipy and Matplotlib.

If I want Scipy, I need to also get Numpy.  In the Scipy/Numpy installation instructions for Ubuntu, it gives a couple of options for installation.  One of these is from a guy called Andrew Straw, who has an unofficial repository for NumPy .deb packages.  I’m going to try that first.  I just checked out his repository and he just updated for Karmic on 2 December.  I’m using the instructions here.