Thursday, September 30, 2010

Linux: Free has a cost

I'm running Ubuntu Linux 10.04 LTS (Long Term Support) on my HP DV6-3010US laptop. Works pretty good for the most part.

EXCEPT, every once in a while, the entire desktop freezes.
No response from mouse/keyboard.
Requiring the infamous 3 finger salute, ie a reboot.

This seems to be a known problem with the 10.04.
Here's a bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/647993

Still digging into this issue.

Sunday, September 26, 2010

Linux: Updates myth busted

There's one Linux myth that I'd like to knock down for good. Updates.

One of the rants of the anti-Windows crowd is on updates. Long story short, its a bogus argument that Linux is any more stable/bug free/secure than Windows.

Having been running Ubuntu Linux for about 2 months now, I am prompted with updates almost every day or every other day. And many of these updates are security related, dealing with buffer overflows, denial-of-service attacks (yes I have Apache running on my Linux box) etc. Here are some examples of recent updates:

Version 0.6.25-1ubuntu6.1:

  * SECURITY UPDATE: denial of service via invalid DNS packet
    - debian/patches/CVE-2010-2244.patch: fail gracefully on corrupt
      packets in avahi-core/socket.c.
    - CVE-2010-2244

  * SECURITY UPDATE: denial of service via invalid DNS packet
    - debian/patches/CVE-2010-2244.patch: fail gracefully on corrupt
      packets in avahi-core/socket.c.
    - CVE-2010-2244

Yes, there was a time till atleast Windows XP days when updates were painfully apparent. But with the auto-update feature in Vista and Windows 7, all that is transparent now. With the occassional polite bubble telling me that my system was rebooted as a result of updates.

Bottom line, Linux (atleast the Ubuntu distribution) is no more update free that Windows. And I would go so far as to say that the updates are much more and much more frequent.

Sunday, September 12, 2010

Getting autocompletion to work in a bash terminal on Ubuntu Linux

Been playing around with Ubuntu/Linux for a while now, and my memory of working on HP-UX is slowly awakening.

One thing that has happened lately is that I'm using the terminal (command window in Windows parlance) more and more. And one of the things I've come to use without thinking on Windows is the autocompletion feature in the command window.

By default, autocompletion is switched off on Ubuntu (not sure on other Linux environments). The way to switch it back on is to uncomment the following lines in the bash.bashrc config file:

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi

Restart the terminal window, and voila, autocompletion now works.