Nov18
2008

We have a number of Ubuntu Linux systems and I regularly find myself wanting to find out which specific distribution I have installed on a given system. While the trusty uname -a command is useful most of the time, it is unfortunately too generic in this instance and only reports version information about the Linux kernel.

However, today I discovered the lsb_release -a command which does precisely what I want. The description of this command in the man page says:

The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.

Here is a sample of the type of output it provides on a recently installed Ubuntu Server 8.10 system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.10
Release:        8.10
Codename:       intrepid

Oct08
2008

The Solaris Coolstack team have announced some important changes that impact on the future of the popular open source software stack. In a nutshell, they are combining their Cool Stack software (intended for use with Solaris 10) with their Web Stack software (intended for use for OpenSolaris) into a single software bundle, which will be known as Sun Web Stack.

Not only will this new stack be supported on Solaris 10 and OpenSolaris, but Linux support is also being added, as is full support for those using the software in production a capacity.

The first version of Sun Web Stack is scheduled for release in November 2008 and will follow the version numbering from Coolstack. Thus, the first release will be Sun Web Stack 1.4.

Source: Shanti’s Blog

Mar15
2007

Ever wondered how to change the default editor on your Ubuntu system? Well, thank to this article, it is now very easy to do this. I had always used the EDITOR envrionment variable but that always seemed a less reliable way of doing the same thing.

Thanks to Michele Neylon’s post for finding this …

Feb22
2007

I recently spent several hours hopping between my desk and the consoles of a number of computer systems running different operating systems (Solaris, Linux and Windows to be precise). I hadn’t yet configured remote access on these machines, hence the need to sit at the console.

Anyway, a rather curious observation was that the time on these systems was located in completely different areas. On Windows, it defaults to the bottom-right corner, Solaris defaults to the bottom-left corner and Ubuntu defaults to the upper-right corner. As I quite often don’t wear a watch, I found my eyes playing a game of Boggle every time I wanted to check the current time, a very strange experience.

Naturally, I presume I could have reconfigured the desktop(s) to show the time in the same place but it’s still interesting to wonder if this was a deliberate move on the part of each operating system vendor.

Feb14
2007

If like me, you’re not too keen on the sometimes cluttered output produced by a Subversion diff command (svn diff), here is a way to use Unix diff with Subversion instead. I’ve also used the -b parameter to ignore whitespace differences.

$ svn diff --diff-cmd diff --extensions '-b'

It looks a little messy at first but you could probably alias it quite easily using something like:

alias "svn_diff_b"="svn diff --diff-cmd diff --extensions '-b'"

in your .bashrc (or equivalent) file.