How to pronounce Linux ?

April 15, 2007 4 comments
My friend once asked me how you pronounce the word Linux. While I have heard the way it is pronounced from the mouths of numerous Linux users to be certain how you correctly pronounce it, I have felt it would be nice to hear it being pronounced by the father of Linux himself - Linus Torvalds.

It seems Linus Torvalds has tackled this question and has even created an audio of him pronouncing Linux. Paul Sladen has uploaded an audio file on his site, in which Linus is heard pronouncing the word Linux. Take it from me, almost 99.9% of Linux users pronounce it right the first time. But still if you are doubtful ...

Humor: A hilarious job profile for a System administrator

3 comments
I came across this very humorous post for a job related to system administrators or web programmers. And the job description goes thus ...
We are seeking some poor, misguided fool to be paid next to nothing for a fulltime position doing highly skilled system administration work and rearend penetration testing in a mixed Windows 2000 and Linux environment. We lost our last IT worker because he found a higher paying job standing in front of Subway while dressed as a sandwich.

Skills required:
* at LEAST ten years experience in the administration of Windows 2000
* administration of Linux
* speak with animals
* SQL Server/MySQL
...

Read the rest of the job description at craiglist - you will love it ;-).

A collection of tips for people new to BSD

April 14, 2007 0 comments
The first time I was introduced to FreeBSD - a BSD variant, I came away really impressed. In my opinion, from an end user's perspective, the only difference between a BSD and Linux is the difference in licencing. If you setup two machines - one running FreeBSD and the other running a Linux distribution with both having a KDE or Gnome desktop and ask a neophyte to point out which is which, there is a good chance that he will consider them both as running one and the same operating system. So whether you choose Linux or BSD depends largely on your tastes.

On the down side, the BSD variants fall far behind when you compare the size of their community with respect to that of Linux which commands a community which is many times that of the BSDs. But if you consider the ratio of knowledgable people to newbies, the BSD's fare better.

If you are a potential BSD aspirant and wish to try out any of the BSDs which include FreeBSD, PC-BSD, OpenBSD, NetBSD and DesktopBSD, then you might find the resource page put up by Daemon News quite helpful. It contains lots of tips to carry out tasks which a neophyte in BSD might initially find insurmountable.

Install multimedia codecs in Debian Linux

April 13, 2007 0 comments
Media player codecs
This guide will explain how to install in Debian all the media player codecs - which include multimedia codecs & libdvdcss which is necessary to play DVDs in Linux.

Because of licensing restrictions, Debian Linux does not ship with the multimedia  codecs necessary to play a variety of audio and video files. Instead, the users themselves have to download all the media player codecs and install it on their Debian Linux machine. Fortunately, Debian uses a fabulous package management system called apt-get which makes the end user's task in installing the codecs all the more easy.

Ext3cow file system explained

April 02, 2007 0 comments
ext3cow file system for GNU/LinuxGNU/Linux supports numerous file systems, some of them that come to my mind being ext2, ext3, xfs, jfs, vfat, ufs and so on. Here is another file system to add to this diverse collection. And the name of the new file system (which is still in heavy development) is ext3cow.

So how is ext3cow different from ext3 file system which we are most well versed with ? Ext3cow file system supports all the features of ext3 file system which include journaling. But other than that, it also has support for version control.

And to put it in layman terms, if you have formatted your hard disk with ext3cow file system, you will never lose a file - even when you overwrite it. What is more, you can go back in time and retrieve an older version of your files because this file system saves a snapshot of your files in any given time - which is what versioning is all about.

Let's look at a simple example. Suppose I have formatted my hard disk running Linux with the ext3cow file system. And I have created a file by name test.txt as follows :
$ cat "This is a test" > test.txt
$ snapshot
Snapshot on :. 10452736
The 'snapshot' command takes a snapshot of the disk. And then I overwrite the same file by entering some other text as follows :
$ cat "This is overwritten text" > test.txt
Now the file 'test.txt' contain the new sentence as is shown by the cat command.
$ cat test.txt
This is overwritten text
But as I have saved the file in an ext3cow file system, the original text is not lost and can be listed and retrieved as follows :
$ cat test.txt@10452736
This is a test
Where the number 10452736 is the unique snapshot number which we received when we executed the 'snapshot' command, which by the way is ideally run by the system at regular intervals.

And if you now cat the 'test.txt' file, you will find that it displays the latest changes. So the primary advantage of ext3cow file system over other file systems is that it is possible to take a snapshot of the disk at any given time and thus safeguard data.

Advantages of ext3cow file system
  • Version control of all your files.
  • Journaling support like in ext3.
  • You can access past directories in the same way you access past files.
  • ext3cow performance is at par with that of ext3
Drawbacks of ext3cow file system
  • There will be a slight increase in the meta data required to support versioning - in between 5% and 15%. So ext3cow file system will take up a bit more space on disk than ext3.
  • Currently there is no mechanism to delete a file in the past but this is an ongoing project and this feature might get included in future versions of the file system.
  • Taking snapshots are not automatic and will require the user to execute the 'snapshot' command.
  • The project is still in experimental stage but work is going on at a fast pace.
You may download and install the tools to create this file system at the ext3cow official site as well as take a look at a couple of ext3cow tools maintained by Tim. If you are interested in a unique project to provide a GUI interface to manipulate the files in the past, then check out the Time Traveling File Manager [Link].

OpenSuSE 10.2 Review

20 comments
When you ask someone to name a couple of GNU/Linux distributions, in most cases, you will hear the names Debian, Red Hat, Ubuntu and then, SuSE Linux which is now a days known as OpenSuSE.

The reason is that apart from it being one of the oldest Linux distributions around, it has made a name as a distribution which is robust, secure and user friendly. Originally SuSE Linux was owned by a German company by the same name. But in January 2004, it was acquired by Novell which continued to further develop and fine tune it and include more SuSE specific features to it. The end result is a distribution which has grown to have its own unique identity. OpenSuSE is a community program sponsored by Novell and is developed in an open model.

One of the foremost reason to consider OpenSuSE Linux as a very popular Linux distribution is the mere fact that in the past couple of months, it has risen from the bottom of the heap to enjoy second place, just below Ubuntu Linux, in the Distrowatch most popular Linux distributions list.

This rise in popularity is not incidental. Rather it highlights the quality of this very fine distribution.

A couple of months back, I chanced upon a DVD of OpenSuSE 10.2. While in the past, I have installed a plethora of GNU/Linux distributions, this was the first time I happened to lay my hands on SuSE Linux distribution. And to tell you the short story, I was virtually blown away with its ease of installation and use. While the partition manager embedded in the SuSE installer is not as graphical as that found in Fedora installer, in all other respects it is very functional and intuitive. One thing worth noting is that OpenSuSE comes with flash player (albeit ver 7.0) and Sun Microsystems Java 1.5 runtime environment bundled with it by default and at the time of installation you have to agree to the license requirements of the respective software.

redesigned Gnome MenuFig: Redesigned Gnome Menu

The minimum specification for installing OpenSuSE Linux is a Pentium class processor, at least 256 MB RAM and plenty of disk space. The OpenSuSE installer detected all the devices attached to my machine without any problem. While it is pretty bleak to see a Linux distribution not detect any particular device barring wireless devices or internal modems, you can make sure that your laptop/desktop is supported by OpenSuSE by checking their hardware compatibility list (HCL). Once I finished installing the distribution and booted into it, I came face to face with a clean Gnome desktop. What is unique about the OpenSuSE Gnome desktop is that it includes a redesigned menu different from what you will find in the default Gnome setup. More over, the search is integrated in the menu with Beagle search playing a very important role in providing real time search. This is not surprising as projects such as Beagle search and Tomboy are developed by Novell engineers and is based on Mono language; which is also the initiative of Novell.

There is a central place called the "Control center" which can be accessed by clicking on the start bar (named "Computer" in OpenSuSE Gnome Desktop) and then clicking the "Control center" in the menu. Here all the applications are categorized by type or functionality which in my opinion makes it easy to navigate. Though the menu in the Panel of KDE is also redesigned, I found the Gnome menu much more pleasant to use than that found in KDE. But in KDE, there is an option to switch to the classic view which can be done by right clicking on the menu button and choosing "classic view". I couldn't find a similar method to switch in Gnome though.

OpenSuSE control centerFig: Control center

By default OpenSuSE provides KDE and Gnome and you have to choose one over the other at the time of installation. But if you select a custom setup , then you can easily install packages specific to other window managers and desktops.

Over a period of time, Novell has also built a massive collection of documentation, tips, faqs and howtos related to accomplishing tasks in OpenSuSE which can be viewed here.

OpenSuSE Linux uses the RPM format to distribute its packages. And there are more than one ways of installing packages. But the most popular form of installing software in OpenSuSE is using YaST which does a good job of automatically checking for any dependencies.

A brief introduction to YaST

YaST is a unique tool found in OpenSuSE which allows one to do all the system administration tasks from within its GUI interface which includes package management, managing users, configuring firewall, configuring devices and almost all the other system maintenance and network administration tasks you could think of. It can also be used from the command line. YaST2 comes with three front-ends. GTK, QT and ncurses. And you can start the "YaST control center" using the command yast2. The correct front-end is automatically selected based on the available components and the current environment.

YaST supports the following modules to load the requisite GUI front-end. They are as follows :

answering_machine,  bootloader,  ca_mgm,  dhcp-server, dns, dns-server,fax, firewall,
groups, host, http-server, idedma, inetd, irda, kerberos-client, keyboard, lan,
language, ldap, mail, mouse, nfs, nfs_server, nis, nis_server, ntp-client, power-management,
powertweak, printer, profile-manager, proxy, remote, routing, runlevel, samba-client,
samba-server, security, sound, sysconfig, tftp-server, timezone, tv, users.
Here is how yast2 can be used from the command line.

To load the interface of a specific module you use the following syntax :
# yast2 <module name>
For example, if I want to add more users to the system, I can use the following command :
# yast2  users
... which will load the GUI front-end for adding users. For starting the power management utility, run the yast2 command as follows:
# yast2 power-management
.., and so on. You can also start YaST in interactive mode by passing it the phrase 'interactive'. For example, when you use the command :
# yast2 users interactive
YaST2 users> help

OpenSuSE will place you in the 'YaST users' interactive shell where you can run commands to add, remove or modify user data. After you are done, you can press 'exit' or 'abort' to come out of the shell.

AppArmor - OpenSuSE's unique security feature

While other main stream Linux distributions such as Red Hat and Debian have beefed up their defenses by incorporating SELinux into their structure, OpenSuSE has traveled a different path. Instead of SELinux, it comes bundled with its own security framework tool called AppArmor.

Novell claims AppArmor is equally robust and provides similar application level access controls with the exception that it is much more easier to configure and maintain than SELinux. The apparmor profile used by default makes OpenSuSE very secure. You can read more about Apparmor here.

Pros of OpenSuSE 10.2
  • Robust and secure GNU/Linux distribution
  • A good collection of software including easy availability of proprietary ones packaged in the SuSE RPM format. For instance, you can easily install proprietary Nvidia graphics drivers using YaST.
  • Excellent GUI front-ends for almost all system and network administration tasks.
  • Has incorporated some cutting edge features in Gnome and KDE desktop such as the redesigned Panel Menu.
  • Good all round integration of Beagle search.
  • Bundles with it Flash player and Sun's JDK 1.5 by default.
  • Has an easy graphical method to enable/disable XGL if you like special effects on your desktop.
Cons of OpenSuSE 10.2
  • To put it lightly, I found OpenSuSE 10.2 to be a memory hog. On my machine with 640 MB RAM, it was sufficiently slow. I attribute it to the number of services running on OpenSuSE by default.
  • With the recent cloud formed over Novell striking a deal with Microsoft, many in the open source and Free software community are concerned about the direction in which Novell is going to steer SuSE in the future. There are also aspersions cast on whether this fine GNU/Linux distribution will remain Free at all.

Mount an Ext2 or Ext3 partition in Windows

March 24, 2007 29 comments
There are different ways of sharing files between GNU/Linux and Windows. Mostly we make use of the services of a FAT32 (or FAT16) partition which can be read and written to by both Linux and Windows. The disadvantage of using a FAT partition for sharing files between Windows and GNU/Linux is that you are forced to reserve a part of disk space solely for sharing files. But this is just one of the number of file sharing methods available for people who wish to dual boot between the two OSes.

Another method which comes to my mind is to use the new stable release of ntfs-3g module which allows you to mount an NTFS partition as read-write in GNU/Linux.

But the method which has caught my fancy the most is a project which allows me to mount a ext2/ext3 GNU/Linux partition in Windows and assign it a drive letter similar to C:, D: and so on. The project in question is the Ext2fs installable file system. This project is the brain child of Stephan Schreiber. Once this driver is installed on Windows (98/2000/XP), you can easily mount a Linux partition on your computer into Windows and assign a drive letter to it. Once that is done, the files in the Linux partition can be browsed, read and written to.

EXT2 Installable File SystemFig: Installing the Ext2 IFS driver

EXT2 Installable File SystemFig: Another installation screen shot

The first step is to download the setup program from the ext2fs site and install the ext2 driver for Windows. Once the driver is installed, you will find an icon named "IFS Drives" in the Control Panel in Windows (See figure below). Double clicking on the icon will open a dialog box which will show all the partitions on your machine including the Linux partitions. Using the drop down box on the corresponding partition, you can assign drive letters to them.

Windows XP Control PanelFig: Access the IFS GUI from the control panel in Windows

EXT2 Installable File SystemFig: Assign drive letters to the ext2/ext3 partitions from the Ext2 IFS GUI.

Viola! now you can access the files on the corresponding Linux partition from the Windows file explorer by clicking on the drive letter you assigned to that partition. What is more, if you have a floppy which is formatted using the ext2 file system, then it could also be accessed in Windows without any problem.

Advantages of Ext2 IFS
  • Read and write access to files residing in Linux ext2/3 file system from within Windows.
  • Read and write access to floppies with ext2 file system.
  • Seamless integration and use of ext2/3 file system in Windows to the extent that all applications have access to it.
Disadvantages of Ext2 IFS
  • This program has a drawback in that it mounts only Ext2/Ext3 partitions. So if you have installed Linux on any other file system such as reiserfs, JFS or XFS then you are out of luck.
  • Does not have support for Linux logical volumes. So if you use LVM in Linux, this software will be useless even if the underlying file system is ext2 or ext3.
  • Current version of Ext2 IFS does not maintain access rights. So mounting an ext2 partition in Windows will give full access to the files on it to all the users.
While there are some limitations to this software as noted above, one convenience I see in using this method of sharing files between Windows and Linux is that once you have finished, you can also hide the corresponding Linux partition by re-opening the "IFS Drives" GUI front-end from the control panel and then removing the drive letter you assigned to the partition previously.

If by any chance you do not like any of the methods explained here, you can transfer files between Windows and Linux using a floppy or a USB key too ;-).