Saturday, February 28, 2009

Ctrl-Alt-Backspace is now disabled

Ctrl-Alt-Backspace is key combination to restart X. But for Ubuntu users from Alpha5 of Jaunty Jackalope, this shortcut will be disabled. This can be enabled from xorg.conf or or via the command dontzap --disable.

The main reason for disabling Ctrl-Alt-Backspace shortcut is to protect newbies from accidentally restarting X.

Sunday, February 22, 2009

Convert line break between Linux and Windows

If you are both Linux's and Window's user then you must know that Linux and Windows uses different line breaks.

So If you type something in Linux and open in Window or vice versa then your line will not break properly.

However you can easily convert between them. You can either use powerful sed or with a simple program tofrodos.

To convert Linux line break to Windows type:

unix2dos filename.txt

To convert Windows line break to Linux type:

dos2unix filename.txt
Use -b option if you want to backup the file before changes are made.

Use it with find command to perform changes in multiple files.

Saturday, February 21, 2009

Next version of Ubuntu announced

Next version of Ubuntu 9.10 is announced. It's going to be called Karmic Koala. Yes the next version of Ubuntu 9.10 is going to be called Karmic Koala.

Hear it from Mark Shuttleworth himself,
http://fridge.ubuntu.com/node/1831

Sunday, February 15, 2009

Usb support in Virtual Box

If you are going to use Sun Virtual Box to use USB device in guest OS then you should be aware that the default installation doesn't gives you that option.

If you Google, there are many people offering many suggestion, some working for few people and some not.

Well, I tried the same in Intrepid Ibex Ubuntu Linux, but none of the suggestion worked for me.

So the most simple thing that I did and worked was read the manual and found there are two version of Virtual Box.

You can see the differences between them by going to http://www.virtualbox.org/wiki/Editions

Don't do anything with /etc/udev/rules.d/40-permissions.rules, /etc/init.d/mountdevsubfs.sh or /etc/fstab.

open /etc/apt/sources.list
add "deb http://download.virtualbox.org/virtualbox/debian intrepid non-free" to it.
Also I recommend you to add VirtualBox GPG key.

Then update by typing, "sudo aptitude update"

Remove old virtual box if you have installed by "sudo aptitude remove
virtualbox-ose"
Install newer virtual box by "sudo aptitude install virtualbox-2.1"

The setup will ask you to add yourself or the VirtualBox user to vboxusers group, do so.

That's it.
Run virtual box and you should see USB settings.

Debian Lenny Released

This year's valentine gift from Debian side is the Debian GNU/Linux version 5.0 codenamed Lenny.

I comes after 22 months of constant development.

Read more:
http://debian.org/News/2009/20090214

Saturday, February 14, 2009

./configure: 123: Syntax error: Bad fd number"

While compiling fftv I got a strange error.

./configure: 123: Syntax error: Bad fd number"

The fix for this is:

sudo mv /bin/sh /bin/sh.bkp
sudo ln -s /bin/bash /bin/sh