Archive

Archive for February, 2009

Formatting Drives in Linux

February 12th, 2009

If you’re using Ubuntu 8.10, The commands as they are can be used without any modifications. Most probably these commands will be the same in all Linux Distributions.

Step 1: Find out your device
Type the following in your terminal

mount

You’ll get the list of mounted devices in the format as shown below:

/dev/sda6 on /media/Entertainment type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdc1 on /media/PARTITION-1 type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)

As you can see, the device id (eg: /dev/sda6) is listed before the drive name (eg: Entertainment) and then the file system format is displayed (eg: fuseblk for ntfs, vfat for fat32). Note down the device id for your drive which you want to format.

Step 2: Formatting the drive
First, you have to unmount the drive. You can do it from Nautilus. Then type in the following commnad in terminal

sudo mkfs.ext3 /dev/sda6

The assumption is that /dev/sda6 is your drive/partition name and you are formatting it in ext3 file system. For formatting the drive as fat32, use

sudo mkfs.vfat /dev/sda6

Happy formatting :-)

Your Ad Here

Ashok TechTalk , ,

Converting Virtual Box (vdi) to VMWare (vmdk)

February 11th, 2009

Even though I’m working hard to get acquainted with GIMP, I still find it difficult as I’m so accustomed to Adobe Photoshop. So, I find myself in a need to use Windows in a virtual machine to get my work done. So I started exploring the available virtual machine softwares for linux, and finally zeroed in on two: VMWare Player & VirtualBox.

VMWare player, free version of VMWare Workstation, the leading virtual machine software doesn’t allow users to create a new virtual machine. It allows to use an existing virtual machine. I overcame this limitation using a Virtual Machine configuration generated using EasyVMX Virtual Machine generator. But I don’t want to install Windows again since I’ve already installed and configured Windows on VirtualBox. I want to use this image file for VMWare player.

Since VirtualBox uses .vdi format for it’s harddisk and VMWare uses .vmdk, We now have to convert .vdi to .vmdk. This can be done in two steps:

Step 1: Convert .vdi into Raw image

vboxmanage internalcommands converttoraw image.vdi image2.raw

This command will create a raw image file. Create this in a drive with sufficient space since my 5GB vdi file occupied around 8GB in raw mode.

Step 2: Convert Raw image to .vmdk

qemu-img convert -O vmdk image2.raw imagenew.vmdk

In order to use this command, you must first install QEMU, another Virtual Machine emulator software. You install this through “Add/Remove Programs” in Ubuntu.

Once i got the vmdk file, I’ve updated the EasyVMX configuration file to point to this file for a harddisk. VMWare Player worked perfectly with this configuration file and the converted hard disk.

Edit/Update: VirtualBox is giving same (somewhat better) performance than VMWare Player and is less resource consuming. Moreover, it’s Open Source :-) I’m sticking with VirtualBox.

Ashok TechTalk , , , ,

Indian Railways Availability Calendar

February 11th, 2009

Cleartrip.com, One of the leading online travel agents in India, has introduced an web application to check seats availability for trains operated under Indian Railways. Cleartrip Train Calendar provides an indication of availability for a range of dates across trains, so you can find the best date and train to travel. Cleartrip Train Calendar is a product of Cleartrip Research and is still in an early stage of development. The website says it may behave unexpectedly at times, but during my experimentation with the tool, it performed fairly well without any glitches.

The UI is as pleasant as an early morning at sunrise. Not only does it show the list of trains and availability, clicking on the train name pops up the train route, the stations that’ll be covered and the expected timings. It even provides a Map view using Google Maps. The whole UI is Ajax powered, and is extremely fast. This tool is definitely much better than what’s been provided at IRCTC website, the official website for Indian railway reservation. This is a wonderful app, Kudos to you guys @ Cleartrip.com.

Link to the Calendar

Ashok TT - Reviews, TT - Tools , , , ,

Turning off the ugly beep

February 11th, 2009
Ubuntu likes to use a shrill beep when, for example, try to scroll through the file list in Nautilus using the Down Arrow key and still keep it pressed even after reaching the end of the file list. In Windows, this invokes a annoying beep, but in Ubuntu it’s much worse. It uses the system beep, which doesn’t come from the speakers but from inside the depths of the system i.e. from the speaker on the motherboard (I guess). Courtesy of lifehacker.com, here’s how to disable it:

rmmod pcspkr

To re-enable the sound, use

modprobe pcspkr

Ashok TT - Linux, TT - Tips n Tricks , , ,

Fedora vs. Ubuntu

February 6th, 2009
As I’ve said in my previous post, while switching to Linux, I used two popular distributions to evaluate before I switched. One was the Fedora from Red Hat and the other was Ubuntu from Canonical. There are a number of posts on web on comparisions between these two distributions, some of them very comprehensive touching all aspects of an operating system, and the others are personal experiences of various people on how much the distros are in alignment with their personal preferences. This post falls into the latter category.

1. Setup:

Both the distros have clean & uncluttered installation routines. Fedora gave me advanced options to select/de-select packages to install where as Ubuntu was like a one-install-package-fits-all which I didn’t like, but given the focus of Ubuntu that it’s part is to make installation easy for noob, I’m okey with it. Ubuntu allows to add packages from CD after the installation is complete and booted into the OS.

The installation package for Ubuntu is quite small, and you need a network connection immediately to download lots of extra s depending on your requirements. The installation package of Fedora is much larger with far more options to choose from on the DVD.

2. Installations:

Fedora uses RPM packages, and handles them through a package manager. I couldn’t work with package manager to install most of RPMs I’ve downloaded from net, The package manager seems like hanged  and felt less responsive. I had to use the terminal to install them from command line. I didn’t like that. Package downloading is through “yum”, it’s good, but not that user friendly.

Ubuntu uses DEB packages, and handles them through Synaptic package manager. This has a nice GUI, can see what’s going on (Terminal button) during the installation, and feels more responsive. Package downloading is through “apt-get”, and we can handle that using a GUI (Add/Remove Programs) which I liked a lot.

3. Stuff:

Both Ubuntu & Fedora doesn’t provide proprietary stuff like mp3 codecs out of the box - we have to download them. Ubuntu scores here with it’s easy to use interfaces to find and install things. The repository concept in Ubuntu is matured than Fedora. Fedora wasn’t able to handle some of my queries for downloading proprietary stuff.

4. Hardware Detection:

Both the distros score well in hardware detection, Fedora scoring more. Fedora detected my WebCam and Wireless  Adapter without any extra effort, where as in Ubuntu, I had to use my Windows drivers for Wireless and tweak/update packages for webcam to work. Other than this, both the distros ran fine on my hardware. One more area where Fedora scores is that when ever I connect an LCD Overhead projector to my laptop, I had to logoff and login again in Ubuntu where as Fedora seamlessly switches the display to the projector. A very major drawback for Ubuntu as per me.

5. Stability & Speed:

Both the distros were rock solid in terms of stability. No point in comparing them in this issue. Speed depends on the number of packages you install, so the more you install, both of the distros become slow.

6. Security:

Biggest downside for Ubuntu as there is no built in firewall. But downloading and setting up one was damn easy, so no issues as per me. Being Linux, both of them are secure agaist viruses and worms.

7. Simplicity:

Ubuntu’s philosophy: give the user what they need, no more unless they want to add that themselves. I liked that. Some people say this makes Ubuntu is for n00bs, No, Not necessarily so. Installing things are simple in Ubuntu than in Fedora.

Apart from these, somehow Ubuntu is connecting in some sort I can’t explain, but I feel easy using Ubuntu than Fedora. May be Fedora making me to use the command line a lot, search a lot for things to install, installing things using package manager isn’t a breeze, the regular popup warnings from SELinux blocking apps from running, and can’t recall what else. It’s a complete misconception that Ubuntu is for n00bs. Just because a distro is simple to install and use and doesn’t come with all bells and whistles, it can’t be called as a distro for newbies. Ubuntu can handle things which any geek want to do on a Linux box.

Disclaimer: All these are my personal opinions, I’m not flaming any distro nor am I waging a distro war. If you are a Fedora fan, I do know that it’s a solid, stable and secure distro. It just somehow doesn’t connect to me :-)

Ashok TT - Linux, TT - Reviews , , , ,

Look Ma, I’m on Linux!

February 4th, 2009

I belong to Generation Y and just like the majority in my generation, I got my first computer in 2002 loaded with Microsoft Windows 98. I grew up in the world of computers with Windows, and I’ve used every desktop version released till Vista. But as part of my new year resolution to go Open Source, from December I started researching about Linux and it’s various flavours, and finally zeroed in on the two most popular ones: Fedora 10 and Ubuntu 8.10. I did trial runs in the last week of December using both the distributions.

Finally, On January 1st 2009, I made the switch to Linux. Completely. No dual booting. No more Windows!

For those Anti-Microsoft guys out there, Don’t count me in. I repeat, Do not count me in. Anti-Microsoft sentiment has very less to do with my choice. I like Microsoft for what they did to the computer and software industry. I love them for their dream of placing a PC in every household and their aggressive chase of that dream, without which computers would still have been toys of scientists and professors. I respect them for their talent which gave us one of the most user friendly operating systems (I’m talking about pre-vista era, not after :-D ), the best office suite (even now), and the greatest IDE for programmers (Visual Studio) though limited to their proprietary .NET programming.

I switched to Linux because it’s open source, It’s speed, It doesn’t crash, Viruses are few and far between, Freedom, Open Standards, Lots of applications covering almost all the tasks done on windows but saving me thousands of dollars, Interoperability with Windows Networks and shares, and It’s great community relationship.

Most of all, it never shows the BSOD which I’m very dreadful about :-)

My first installation was Fedora 10. I loved it. It was stable and secure. Good on looks too. After running it for a week, I switched to Ubuntu 8.10 out of the curiosity of how would it be, being the most popular distro. And I didn’t switch back :-) I would post my experiences on both of these distros in some later post.

So, here I am. On Ubuntu Linux. Stable. Secure. Rich. Happy :-)

Ashok TT - Linux, Wassup , ,