BrowseAtWork.com:   [ UP ]   [Manage cookies]
Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts
February 16, 2009

Debian GNU/Linux 5.0 Lenny Released

A new release of Debian GNU/Linux namely version 5.0 aka Lenny has happened. The previous release version 4.0 code named Debian Etch was made 22 months ago that is 2 months short of 2 years. Debian is infamous for its long release dates. For example, a transition from Woody to Sarge took a whooping 35 months to happen. Though Sarge to Etch happened in a mere 22 months. But compared to some of Microsoft Windows releases, this time duration can be considered to be fair play. Having said that, Debian is widely respected for rolling out a robust and secure GNU/Linux distribution that supports a broad machine architecture. And the latest official stable release "Lenny" is no different.

Debian Lenny doesn't come bundled with the latest versions of software. For instance, you will not find OpenOffice.org ver 3.0 in it's repositories. And KDE is still at ver 3.5.10, and GNOME at 2.22. But you can rest assured that what you have is a rock solid Linux distribution which will never roll over and die on you.

For the very first time, Debian has rolled out a Live system which you can try without installing it on your computer's hard disk. It is made available as a Live CD, on USB Sticks, or via netboot.

Debian GNU/Linux version 5.0 (Lenny) can be downloaded at Debian.org.

TuxRadar has published an indepth review of Debian Lenny dwelling on its pros and cons. The site also carries an interview with Steve McIntyre, the Debian Project Leader providing us more insight behind the new Debian release.
January 16, 2009

Google portable device runs Debian Linux

The portable device I am talking about is the T-Mobile G1 Android cellphone. Android is a software stack for mobile devices that includes an Operating System, Middleware and key applications. Presumably, the T-Mobile G1 contains an ARM EABI architecture which is supported by Debian.

So a group of people (hackers) set out to install Debian on their T-Mobile G1 Android phone. The end result, at the least, is quite interesting. They have succeeded in running a full fledged Debian OS on their G1 Android cellphone at the same time, retain all the features which allow it to function as a cellphone such as receiving and making calls.

Read a detailed writeup on the steps needed to install Debian on a TMobile G1 Phone at the following website. AndroidFanatic.com has released a Debian installer script for your Android cellphone which you can download here.

Also watch the following video which shows Debian running on the Android G1 cellphone.

September 10, 2008

Debian successor to Lenny - a three-eyed space alien

Debian team is infamous for sticking to hard to remember names for each of its releases. Thankfully, they have stuck to one theme while naming the distribution releases - that of the "Toy Story" movie. Each release is named after a character in the Toy Story movie.

So you have Sid, Lenny, Etch, Sarge, Woody, Potato and so on. The following is the explanation given by the Debian team regarding these names. So now with the impending official release of Lenny as a stable version, it is now the turn of the next build of Debian in Sid to be promoted to Testing and it has been named Squeeze (after the three-eyed monster in Toy Story).

Read the official Debian announcement to know more.
July 18, 2007

Ubuntu plus Dell equals better support for devices in Linux

One of the best things that has happened to Linux enthusisasts the world over is the confluence of two big players one in the Linux arena (Ubuntu aka Canonical) and the other in the PC hardware space (Dell). And the end users have already started reaping the benefits.

The benefits include device driver support for hardware components which were otherwise not compatible with Linux. A couple of years back, I had to struggle getting my internal modem based on a conexant chip to work with Linux. These internal modems are infamously known as winmodems because they delegate some of its job to the parent operating system and work flawlessly only in Windows.

Because they were not full modems, most of them are incompatible with Linux and are as good as paper weight. I have documented how I got my internal modem to work with Linux with some difficulty.

Now the good news is that Dell has released device drivers for the conexant internal modems for their E1505n and 1420n machines which is available here for download.

The driver is provided as a deb package and so will be compatible with other Debian based Linux distributions.
May 14, 2007

Using netselect-apt - Tip to select the fastest Debian mirror

Each time I install Debian - and I have done it scores of times on multiple machines, I get frustrated in choosing the right Debian mirror for updating the package database on my machine using 'apt-get update', or installing a new package for that matter.

Some of the questions that I had to find a solution for were ... Do I choose the Debian mirror in my country (India) or do I use one of the US servers ? Is there any way to find which of the two are the fastest for my geographic location ?

It might sound ironical, but experience tells me that the truism of choosing a Debian apt mirror closest to ones location does not hold true for me. Because at all times, when I have used a mirror from India, it is dead slow. And believe it or not, the responsiveness of the mirror will do a great deal of difference to how fast you are able to update your Debian machine.

Enter netselect-apt, a package which helps one to find and use the fastest Debian mirror for his region. What this script does in conjunction with 'netselect' command is, it first downloads a list of all the Debian apt mirrors from the official Debian website using wget. The list is saved in a file named 'mirrors_full' in your current directory. It then checks the responsiveness of each of the servers in the list and then selects the fastest among them. Finally it writes the necessary code in the sources.list file and saves it in your current directory. Considering that on last count there are a total of 248 Debian mirrors to choose from, that is a pretty tedious job.

In order to use netselect-apt, the first thing you have to do in your newly installed Debian machine is download and install the netselect-apt package. This can be done as follows :
# apt-get install netselect-apt
The netselect-apt package depends on the netselect package and so it will also be automatically installed.

You can pass a couple of options while invoking the netselect-apt command. For instance, I have Debian Etch installed on my machine. And if I want to find the fastest Debian Etch repository mirror for my geographic region, I run the netselect-apt command as follows :
# netselect-apt etch
If I want it to include non-free software section as well while creating the sources.list file, then I use the -n option :
# netselect-apt -n etch
You can also ask netselect-apt to select only ftp servers instead of http ones by passing the -f option.
# netselect-apt -n -f etch
Apart from etch, you can pass the following options - stable, testing, unstable, experimental, woody, sarge and sid. If you choose not to pass any options, then by default netselect-apt uses 'stable' as the option.

Once it finishes its work, you will find a newly created sources.list file in your current directory which will have the necessary code pointing to the fastest Debian server for your location. Now all you have to do is to copy the sources.list file to /etc/apt/ directory and do an apt-get update.
# cp ./sources.list /etc/apt/sources.list
# apt-get update
Please note that the speed of the servers change over a period of time and is dependent on a variety of external factors. So the server that netselect-apt chooses today need not be the fastest one for you say, a couple of weeks hence. So if you are in the habit of installing and updating software all the time, it will be prudent to run netselect-apt once every week or so and update your sources.list file to point to the fastest mirror.
April 13, 2007

Install multimedia codecs, libdvdcss in Debian Etch GNU/Linux

Debian having released the latest stable version of its GNU/Linux distribution, there is obviously a rush by Debian users to upgrade their distro. Debian is considered by its die hard followers to be one of the few GNU/Linux distributions which can stand up to other Unix OSes with regard to security without sacrificing those aspects which make GNU/Linux the most feature rich posix OS in the world.

But once you finish installing Debian, you need to do some housekeeping so as to enable you to play multimedia files which are encoded using proprietary or closed formats such as Microsoft's WMV files or Apple's quick time files.

This can be achieved in a number of ways:

Method I (Easy way)
  1. Open the file /etc/apt/sources.list and append the following line :
    #FILE /etc/apt/sources.list
    ...
    deb http://www.debian-multimedia.org etch main
  2. Update the packages using the command :
    # apt-get update
    Learn more on the use of apt-get and dpkg.

  3. Now you can install all the multimedia codecs as well as libdvdcss which is necessary to view DVD movies, using the following command :
    # apt-get install w32codecs libdvdcss2
Method II (Manual way)
  1. Visit the mplayer official website and download the multimedia binary codecs package (this is available in a variety of package formats). Make sure you download the package suited to your architecture and operating system. For example, there are packages for Intel32 and AMD64 architecture apart from those for Windows.

  2. Unpack them and copy them into the /usr/lib/codecs directory as follows :
    # tar -xvjf essential-20061022.bz2
    # cd essential-20061022
    # cp * /usr/lib/codecs/.
    If you do not have a codecs directory, then you have to create it first. Next create a soft link of all the files in the codecs directory to the location /usr/lib/win32/ as follows :
    # cd /usr/lib/win32
    # ln -s /usr/lib/codecs/* .
    Now you have all the win32 codecs installed on your machine which can be accessed by the media players such as totem to play WMV, Quick time and other proprietary format files.

  3. To install libdvdcss2 which is a necessary ingredient for playing encrypted DVD movies, download the libdvdcss2 library from its official site and install it on your Debian machine. They provide the binary as a Deb package which makes it really convenient. If you have downloaded it in some other package such as bzip2, then just unpack the contents and copy the two files libdvdcss.so.2 and libdvdcss.so.2.0.8 to the /usr/lib/ directory as follows:
    # tar -xvjf libdvdcss-1.2.9.tar.bz2
    # cd libdvdcss-1.2.9/
    # cp libdvdcss.so.2 libdvdcss.so.2.0.8 /usr/lib/.
That is all there is to it. Now you can view videos and play music in almost all video and audio file formats. While you are at it, it might also be desirable to download and install mplayer - a versatile audio and video player.

Note: If you still run into trouble playing your favourite audio or video files in any player, you can use the strace tool (installed by default on all Linux distributions) to troubleshoot your problem.
April 08, 2007

Debian GNU/Linux 4.0 released

After waiting for so long (close to 2 years), Debian GNU/Linux 4.0 code named Debian Etch has been taken out of development cycle and is given the stable tag. A couple of months back, I had tried out Debian Etch while it was still in the testing stage and my impression of it was very good - what, with most up to date versions of popular and most used software packages and a pretty graphical installer to boot.

Some of the new features in Debian 4.0 are as follows :
  • A fully integrated installation process with out of the box support for encrypted partitions.
  • Graphical installer for those with enough memory for their PC
  • Use of secure apt to enhance security while installing software (Read more on apt-get usage).
  • Debian GNU/Linux 4.0 now runs on even AMD64 and Intel EM64T (amd64) apart from 9 other architectures.
  • Now can be installed from various installation media such as DVDs, CDs, USB sticks and floppies, or from the network.
  • Support for multi-architecture installation disks.

Those who are using an earlier version of Debian need just do an
# apt-get update
and an
# apt-get dist-upgrade
... to move their Debian distribution to the latest version.

Another important news especially for people administering Debian servers is that the Debian team has also updated the official Debian 3.1 version to include some much needed security fixes. The official Debian website has the full press release regarding Debian 4.0.
January 29, 2007

Install Debian from within Windows

That is right, Debian has got itself a new Win32 installer. This new software is targeted at people who are not too tech savvy to know the steps needed to burn the Debian ISOs on to a CD/DVD. The first time I read the news, I wondered how it was any different from installing Linux on a UMSDOS filesystem ? It is very different it seems...

The setup consists of a Debian installer loader which merely downloads a Debian netboot installer - you can choose between a GUI install and a text based install. And in the next reboot of the computer, Grub loads and prompts you to either boot into Windows or initiate the Debian installation. This is made possible by utilizing the services of Grub4DOS which is a GRand Unified Bootloader which uses the grub console GDLR which can be loaded from within the Windows boot manager.

Once the Debian installer starts, the rest of the steps are the same as those you would carry out in a normal installation of Debian. So you have the option of repartitioning your hard disk from within the installer and dual boot between Debian and Windows or entirely wiping out your Windows OS to make way for Debian.

The Debian installer loader can be downloaded from the goodbye-microsoft.com website. A couple of screenshots of the installer have also been made available here.
October 02, 2006

Steps to get Audio to work in Debian Etch

Debian Etch is a very good Linux distribution. It has all the latest versions of software - even more recent than those found in Ubuntu Dapper (though that is bound to change once Ubuntu releases its next version) and also a pretty GUI installer. Recently when I downloaded and installed the latest version of Debian Etch Beta 3, every thing went quite smoothly - Etch correctly detected all the hardware in my machine and I was booted into Linux in no time.

But... I ran into a problem. I have on-board sound on my Intel motherboard as I found out running the following command :
#lspci|grep Multimedia
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 05)
And the correct driver module 'snd_intel8x0' for this on-board sound was already loaded as was seen by running lsmod.
#lsmod
Module Size Used by
snd_intel8x0 29436 0
snd_ac97_codec 82784 1 snd_intel8x0
snd_ac97_bus 2048 1 snd_ac97_codec
snd_pcm_oss 43520 0
snd_mixer_oss 15584 1 snd_pcm_oss
snd_pcm 74408 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 20292 1 snd_pcm
snd 46080 6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 8672 1 snd
snd_page_alloc 9800 2 snd_intel8x0,snd_pcm
...
Then I checked the volume control and I found it to be turned to full volume - so no problem there either. It seems, Debian requires the package libesd-alsa0 which was missing on my machine. This may be because I had installed a standard system install and then later downloaded and installed the desired packages thus avoiding unnecessary bloat. And I might have missed installing some of the necessary packages.

Anyway, once I downloaded the libesd-alsa0 package and installed it, I ran the alsaconf script which automatically removed the loaded sound drivers, detected the sound card, reloaded the relevant drivers and finally, reconfigured the sound to work correctly. And shortly after that, I started relishing the heavenly tunes emanating from the speaker.

So here is the deal to get sound working correctly in Debian Etch. That is, regardless of the version of the kernel, you need to have alsa-base, alsa-utils and libesd-alsa0 packages installed. You will also have to use the alsaconf command to configure and load the necessary sound modules.

While configuring, alsaconf will ask whether to modify the following two files:
/etc/modprobe.d/sound & /etc/modprobe.conf - if they are present. These files are used to tweak the settings of the sound card by passing additional parameters. Usually you won't have them on the system.

After the sound card is configured, it will load the ALSA sound driver and use amixer to raise the default volumes. It is also possible to change the volume later via a mixer program such as alsamixer or gamix.

Considering the number of hoops I had to loop in getting sound to work in Linux a couple of years back, this process is a piece of cake. In fact, I believe, if I had installed a default Desktop Environment, I wouldn't even have had to go through the above process. Anyway, it is nice to know what to do when things go wrong.
September 15, 2006

A concise guide to update-alternatives in Debian distributions

While running GNU/Linux, it is common to find different versions of the same software residing on your hard disk. This is especially true for programming language compilers. For example, Java for Linux comes in different forms. One is the open source version which is popularly known as the Blackdown java and the other is the official release from Sun Microsystems which is the original Java. Then there is the GCJ which is a GNU compiler for Java. Many times users have more than one version of Java installed and it becomes necessary to let the system know which Java executable is favoured by the user in order to avoid ambiguity in command execution. This is just one example. In fact it need not be just related to programming, it can also be related to say, mail transport agents - like suppose you have two mail transport agents sendmail and postfix installed on your machine and you want to easily choose one from the other as the default MTA.

GNU/Linux has built-in a good functionality to sort out this issue to the end users tastes. In an earlier post, I had covered in a concise way how it is accomplished in Red Hat and Fedora. Debian (based) distributions also have a similar tool in 'update-alternatives' which can be used to easily make a program the default one over any other similar programs.

Steven Kroon has writen a very good article which explains in detail by aid of examples, the usage of update-alternatives which makes a very informative read.
September 09, 2006

Is Ubuntu and Debian on ideological cross roads ? - Mark Shuttleworth clarifies

A couple of weeks ago, one of Debian's most active developer Matthew Garrett threw down the towel and called it quits protesting against the Debian's rather strong democratic culture of having a free for all discussion about any decision making pertaining to Debian making him intensely irritable and unhappy. He went on to compare Debian's lack of civility and slowness in decision-making with the more structured way in which decisions are taken at Ubuntu.

On the backdrop of Matthew's exit from Debian, Mark Shuttleworth himself has chosen to respond to and clarify Ubuntu's position in relation with Debian on his blog.

And his opinion is that Ubuntu (and many other Linux distributions based on Debian) can never survive without Debian.

He goes on to state that Debian's chief strengths is its uncompromising emphasis on free software. He dwells on some of the short comings of the way Debian is managed and believes that at the end of the day, some introspection is healthy and that Debian will benefit from the discussion.
August 28, 2006

A Tryst with Debian Etch Beta 3

When a Linux enthusiast hears the name Debian, it never fails to instill in him some awe and respect. After all, this is the one and only not-for-profit Linux distribution which has singularly built up a name synonymous with security, stability and freeness.

I recently downloaded the latest offering of Debian which goes in the garb of Debian Etch Beta 3. Ironically, I came across the correct link through a comment inserted in a prominent news site (I will come back to it later). There are 19 ISO images to download if you want all the packages which runs to more than 17000 and their sources. But Debian also provides a net install CD image roughly around 140 MB size and is the preferred option for people who have a very fast Internet connection. And it is possible to install the distribution entirely via the net.

Since I was severely constrained in the Internet speed department, I decided to download the first CD image of size 643 MB praying that it would be enough to install a full fledged desktop environment. After a couple of hours, I had the ISO image successfully downloaded and burned on to the CD and I was ready to install Debian on my machine.

The main reason for trying out this version of Debian was to check out the new GUI installer which is considered to be a huge improvement over the previous versions. I booted my PC using the CD and I was shown a boot prompt. Here I had the choice of either installing using the text based installer or using the new graphical installer. Also it is possible to install the distribution using the expert mode or the normal mode. If you opt for the normal mode, the installer takes most of the decisions at the cost of your relinquishing fine grained control. Since I like having more control of the installation process, I opted for the expert GUI mode and diligently typed the command :
boot: expertgui
In fact, the installer provides a plethora of choices which one can learn about by navigating using the function keys F1 to F8 prior to entering the command.

Fig: New GUI installer of Debian

In a short time, I was face to face with the new GUI installer which had a clean spartan look to it. The installer in itself has only three buttons. Them being "Continue", "Back" and "Screenshot". The "Screenshot" button will grab the current screen and save it as a PNG image in the /var/log/installer/ location which can be later accessed after the installation is complete. This imparts a nice touch to the whole process as it will, at a later time, aid in providing a visual walk-through of the installation steps to a first time user of Linux.

Debian Installation Walkthrough
The installation steps I had to go through are as follows :
  1. Choose language
    • Choose a country or region
    • Choose locale
  2. Select a keyboard layout
    • Type of keyboard
    • Keymap to use
  3. Detect & mount the CD-ROM
    • Modules to load - like usb-storage, floppy and so on.
    • Start PCMCIA ? Yes/No
  4. Load installer components from CD
  5. Detect network hardware - automatic detection
  6. Configure the network
    • DHCP or static IP
    • Set hostname
    • Set domain name
  7. Choose a mirror of the Debian archive
    • Choose the country
    • Choose ftp location
    • Enter any HTTP proxy information
  8. Detect disks - Automatic detection
  9. Partition Disks - Would be nice to have a help button here for first time users. For others the whole process is intuitive.
  10. Configure time zone
  11. Configure clock
  12. Setup users and passwords
    • Enable shadow passwords? Yes/No
    • Allow login as root ? Yes/No
    • Set root password
    • Create normal user account
  13. Install the base system
    • Select the kernel image - There are 20 images including those with SMP support for 2.4 and 2.6 kernels.
    • Select tools used to generate boot initrd
  14. Configure the package manager
    • Should the network mirror be chosen ? Yes/No
    • Use non-free software ? Yes/No - Really interesting!
  15. Select and install the software
    • Participate in Debian popularity contest ? Yes/No - Cool!
    • Select your choice of packages
      • Desktop environment
      • Web Server
      • Print Server
      • DNS Server
      • File Server
      • Mail Server
      • SQL Server
      • Laptop
      • Standard System
  16. Configure Exim v4 - Mail Transport Agent
  17. Choose dictionaries to use (US, GB...)
  18. Install Grub/Lilo Boot loader or continue without boot loader
  19. Finish the installation
Even though there are a lot of steps involved in the Expert mode of installation (the number of steps are a lot less if you choose the normal mode), each of them are easy to understand. I found the installer to provide fine grained control over which modules to enable.

Usually most Linux distributions enable all the modules available even though many of them are not needed for the particular machine hardware. But Debian allows one to enable just those modules that are most suited for the machine. For example, my machine does not have infrared or wireless supported hardware so I can choose not to load the kernel modules related to these.

Another aspect which endeared me to the Debian way of installing Linux was the sheer number of kernel images available to choose from. The installer provided a choice of no less than 20 kernel images from the 2.4 kernel fit for installing on a 486 machine to the 2.6 kernel with SMP support for Pentium class of x86 machines.

Fig: Partitioning the hard disk

The Grub boot loader also correctly detected the WindowsXP and Ubuntu 6.06 OSes residing on the other partitions on my machine though it failed to detect the FreeBSD OS. But then none of the other Linux distributions I have installed till now have correctly detected the FreeBSD OS while installing the boot loader.

If one has a net connection, I recommend choosing the standard system install (while installing the software) which will install a base system sans X server. And then it is only a matter of installing just those software which are needed using apt-get. I installed the standard system and then with an additional 150 MB download, I was able to setup a desktop system with an editor (GVim 7.0), a web browser (Firefox 1.5.0), a window manager Xfce 4.0 (a very good alternative to the more common heavy weights Gnome and KDE) and two graphics software Gimp 2.2 and Inkscape 0.44. It is clear that the Debian team have upgraded the Etch repositories to mirror the most recent versions of the software. For example, the Inkscape build was compiled as recently as July 2006.

And after all this, my Debian partition utilized only 1.1 GB space which includes the space used by apt-get for storing the packages downloaded for installing. I have started liking the Debian way of installing only what is necessary which does away with a lot of bloat. And I am sure this will be the preferred way of installing Linux in the future when majority of the people have access to high speed internet.

I found the new graphical installer similar to the text installer of FreeBSD in that it is possible to jump around back and forth in the different categories of the main menu. And once a particular task is finished, you are placed back in the main menu.

Bootup times of Debian
The boot-up times are significantly faster than any of the other Linux distributions I have used barring say Vector Linux or Gentoo which are also equally quick to boot up. I dare say I found Debian Etch to boot up quicker than Ubuntu :).

The Pros of Debian Etch beta 3
  • Comes with an easy to navigate graphical installer
  • Has a choice of 20 Linux kernels suitable for a wide variety of x86 machines.
  • Gives fine grained control over the installation with options to enable/disable specific modules.
  • Installs the latest versions of software. A real surprise!!
  • Quick boot up times.
  • Stable and secure - you get the same unadulterated operating system which powers many of the high traffic servers around the world.
  • Support for setting up encrypted partitions during installation .
The Cons of Debian Etch beta 3
  • Internet access is mandatory to install Debian unless you are willing to shell out money to buy a set of CDs.
  • No out of the box support for Flash, Sun's Java, proprietary audio formats, closed source graphics drivers and so on. And these have to be included by the users themselves.
Now for some rants ... ;-)
I had earlier noted that I got hold of the link to Debian Etch beta 3 from a prominent news site where a reader had graciously included it in his comment. Would I have succeeded in downloading the correct ISO (in my case the most recent one) if I had tried looking on the Debian website ? In all probability I would have ended up downloading the wrong version of Debian.

Agreed, Debian supports lots of architecture other than x86 and all these need to be given equal representation. But how much effort will it take to provide a download link to the latest version of Debian simultaneously recommending a specific version for desktop users (even if it is in beta stage) on the main page of debian.org site ? I would guess not much. The download link provided at present takes the visitor to Debian Sarge which is too outdated for use as a Desktop.

On this note, and with due respects, I feel Debian team seriously need to acquire some lessons in the ABC's of marketing. Just because it is a not-for-profit organisation doesn't mean that it has to refrain from marketing itself and rely exclusively on well wishers and enthusiasts to spread the word. It is high time that the Debian site is overhauled and made more user friendly (Read less cluttered) . For one, a new Linux user will not be able to make head or tail about Sarge, Etch or Sid. But if he is told which ISO image is most suited for a specific purpose, that will go a long way in making the end-user experience towards Debian much better.

I would love to see a forum hosted on the official site where users can post queries and help each other on Debian specific problems. If Debian has to regain the lost ground on the popularity front, then it has to take the desktop users (newbies ??) more seriously. While a system administrator is capable of taking care of problems he face with Debian himself, an ordinary user will need some directions. And Debian's capability in handling this section of users will decide how popular Debian gets in the coming future.

Having said all this, I eagerly await the final release of Debian Etch.
August 15, 2006

Is the word Ubuntu in "Ubuntu Linux" over-hyped ? Decide for yourselves.

Recently I read an article lambasting or rather dissecting the role that Ubuntu has played in the Linux community and according to the author of the article titled - Ubuntu vs. Debian: What Canonical Doesn't Want You To Know , it boils down to clever marketing on the part of Ubuntu folks or in other words marketing gimmicks. In fact I see this growing dissent towards this distribution in different quarters - mind you, not from the actual users of Ubuntu who love this distribution but from people who are affiliated with or use other Linux distributions.

So as a long time Ubuntu user, I asked myself this very important question. Is the Ubuntu word over-hyped ? Is Ubuntu Linux riding on the wave of good will, on top of what this word actually mean ? And finally what makes Ubuntu Linux stand apart from the rest of the Linux distributions ?

Ubuntu is a word in a South African language (Bantu) which has lots of meanings associated with it. And this word originated long before the birth of Linux. When the South African space tourist Mark Shuttleworth adopted this word for his Linux distribution, the word came to be synonymous with the Linux distribution and it gained world wide popularity.

I believe the word Ubuntu has gained as much popularity from being associated with this Linux distribution as the Linux distribution has gained from the word. In other words it is a symbiotic relationship as far as the Ubuntu word and Ubuntu Linux are concerned.

Even though I have been using Ubuntu as my main Linux distribution, I have used and still use other Linux distributions too. If you look around this site, you will find reviews of different Linux distributions as varied as PCLinuxOS, DSL, Vector Linux, Gentoo .... why just Linux, I have also reviewed a couple of non-Linux OSes such as FreeBSD and PCBSD. So my intention in raising this sensitive topic is not as much as to throw dirt at other Linux distributions rather to see why Ubuntu Linux has gained so much popularity and if it is worthy of it.

The number one incentive for me to try out Ubuntu in the first place (earlier I used to be a Fedora user) was that they were shipping (still do) free CDs of Ubuntu Linux to anyone around the world. This at a time when I had to do entirely with dial-up connection to log on to the net. Even now, in most third world countries, the word broadband Internet is synonymous with just 256 Kpbs speed and many people do not even have this luxury. So the vision of Mark Shuttleworth to hand out free CDs of Ubuntu to anybody who asked for it became a major hit world wide. In fact by doing so he made Linux free not only as in freedom but free as in beer too.

But handing out free Cds alone will not bring as much popularity as it now enjoys. After all if that were the case, all software (proprietary or otherwise) which we receive free of cost would have been as popular. So there are more reasons...

Any long time Linux user will agree with me that Debian holds a special place in their hearts. It has the largest number of packages in its repository than any Linux distribution can boast off. It is stable and can be compared at par with other Unices in its uptime. But one area where Debian developers lagged behind was in creating a separate Linux distribution or should I say a separate entity which the ordinary user could easily install and use on his desktop. Debian was and is more server oriented. I had the fortune of installing Debian on my machine a couple of months back. Even though I was able to successfully install, use and enjoy it, I had to struggle a bit in figuring out how to install it. The installation is far from newbie friendly. I would go so far as to say I found installing FreeBSD to be much more simpler than installing Debian. This is one area where the Debian developers have to direct their efforts to. And I believe something is being done to address this shortcoming. But that is not all, since it is a Linux distribution oriented to be run first and foremost on the servers, it comes with a lot of additional packages which a normal user will not have a clue as whether to install or not. So some one who needed a newbie friendly Linux distribution based on Debian had to put up with trying out Knoppix Live CD.

Ubuntu Linux, I believe addressed this need. They took all the good things that Debian has to offer - its excellent repository of packages, its superior package management, its stability and then took it one step further by fine tuning it to make it newbie friendly by making it possible to install it on to the hard disk by a mere six steps.

If you look closely, Ubuntu has made a number of refinements which make it an ideal OS for the home user. For one, it comes with all the ports closed by default. As a home user who's only interaction with the Internet is web browsing, checking mails and playing a few online games, the last thing I need are unnecessary services running on my machine. And Ubuntu Desktop has made it possible. As a comparison, I found a default Fedora desktop installation to run more than 10 services including Avahi (what ever that means). And in Ubuntu the only service listening on the tcp/udp ports is the cups printing service. Run the following command to see all the services that are listening on your tcp and udp ports to get an idea.

$ netstat -taup
Or better still, run nmap to find the open ports on your machine running your favourite Linux distribution and then see how many are open in Ubuntu.
# nmap -sS <your machine IP address>
Ubuntu Desktop does not ship with even a compiler. So it is impossible for a person who has access to your machine to write some malicious code, compile it and then make it to run during startup, in the process compromising your machine.

And for those who want such facilities as a compiler and ssh daemon running on your machine, it is a simple case of using apt-get to download and install the necessary packages in which case you are expected to know what you are doing and its consequences.

The point I wish to make is that Ubuntu team has been successful in addressing the need for a truly user friendly secure Linux desktop that the other major players failed to address. And the potential Linux users were quick to grab at what was offered and then form a community around it.

And while on the topic of community, One of the biggest strengths that any Linux distribution can aspire for is a large user community revolving around it. It is the community which imparts life to any Linux distribution and it aids in spreading the word about the distribution. And Ubuntu has been a success on this front. This might bring up a question in someones mind. Can a community be brought ? Not at all. It is something that happens when passion is involved. If not for passion, why then would some people spend many man hours developing scripts such as Automatix or EasyUbuntu and then share it freely with the rest of the Ubuntu users ? Why would anyone go out of their way to help in getting some things working right in Ubuntu ? Are these people on the payrolls of Ubuntu? No. It all filters down to passion. And passion my friend, cannot be brought. It is something that comes from within. In my opinion, Ubuntu has taken all the right steps in stirring this passion in its users which is why it enjoys an ever growing community.

That doesn't mean Debian doesn't have a strong community following. But the community revolving around Debian consists of an entirely different set of users. That is those who are more system administrators than ordinary users. And it is anybody's guess that normal users far out number the system administrators. I myself am a fan of Debian and I am sure that any day they bring out a newbie friendly distribution at par with what Ubuntu is now, a community will form around it and start promoting it.

Lastly, by choosing to use the packages in Debian Sid, Ubuntu has made sure that its users enjoy the latest versions of the software they have grown to love. I may also add that the hardware detection of Ubuntu is above par and is known to detect the widest range of hardware out of the box.

To sum up, these are the factors that has catapulted Ubuntu as the number one Linux distribution in terms of popularity. They are as follows:
  • Distributing free Ubuntu CDs to anybody who asks for it.
  • Designed with the home user in mind.
  • Excellent hardware detection - a quality I believe is shared by other Linux distributions.
  • A strong user community backing its growth.
  • Containing the latest versions of the software packages.
  • Managing to grab the average user's imagination with its association with the Bantu word Ubuntu.
Update (Aug 16 2006): My intention of writing this article was not to disparage any Linux distribution be it Debian, Fedora, SuSE or any other which I am sure enjoy its right place in the Linux community. But I strongly believe that if any Linux distribution has to excite the passion in the general public in the same level as Ubuntu has then they should discard this one size fits all principle. Which means they should delink the distribution for the ordinary masses from that for running on the servers. I believe that if these main stream (and other) linux distributions take a leaf from Ubuntu and bring out a truly newbie friendly distribution - sans sshd and other unnecessary services and without the compilers and such, I am sure they will be well recieved by the common public (average joes) who wish to run Linux on their machines.
February 28, 2006

apt-pinning - Configuring Debian to run the latest packages

The first time I installed and tried out Debian Linux distribution, I was surprised by the different way of configuring it which included the placement of configuration files, the change in commands used and so on. Coming from a Red Hat background and tuned to the Red Hat way of doing things, I did have some learning curve to overcome.

But once I mastered how to configure things in Debian, I realised that I liked the Debian way of doing things much more than the Red Hat way. But one thing which really put me off was that Debian installed the antiquated packages of the software I use on a daily basis. And I needed something more recent. I explored how to install the cutting edge of software of my choice in Debian and I did get quite a few suggestions from various quarters including one of incorporating backports repository in the distribution.

But none told me about Apt-Pinning - the process of mixing and matching between stable, unstable and testing repositories to get a stable Debian distribution which also ran the latest version of ones software. And because I was largely unsuccessful in my endeavour of getting the latest version of software running on Debian stable, I switched to Ubuntu.

I recently came across this lucid tutorial written by John.H.Robinson called "Apt-Pinning for Beginners", which explains the process in very clear terms. If I had come across this tutorial earlier, I would still have been using Debian on my PC.
January 18, 2006

Why should someone use Debian over another distribution?

I think the reason I run Debian rather than anything else is because its as true to the Unix philosophy as it can get: each of the system components does what it should, does that as well as it can, and otherwise keeps out of your way. Nothing on the system happens without your consent. And because everything is designed with little pieces building on top of each other, it's easy to keep an overview. This directly translates into manageability and security. In other words, you control the system, and not the other way around"
.
This was the reply given by Martin.F.Krafft, the author of the best selling book "The Debian System" in an interview with Sal Cangeloso when this question was posed to him. The interview also touched on topics on various other aspects of the Debian system like the importance of Debian policy to the final product, the path the author would like to see Debian adopt in the future and many more.

The questions have been well thought out and the replies are quite insightful which makes reading the whole interview a worthwhile exercise.
December 13, 2005

A Concise apt-get / dpkg primer for new Debian users

Debian is one of the earliest Linux distribution around. It caught the public's fancy because of the ease of installing and uninstalling applications on it. When many other linux distributions were bogged down in dependency hell, Debian users were shielded from these problems owing to Debian's superior package handling capablities using apt-get.

All Linux distributions which claim their roots in the Debian distribution use this versatile package manager. For the uninitiated, Debian uses the deb package format for bundling together files belonging to an application. You can look at it as something like a setup installer (Eg: Installshield) in windows counterpart.

Here I will explain how to go about using this package handling utility to get the results that you desire.

The first step needed to use apt-get to your advantage is including the necessary repositories. Repositories are merely collections of softwares which are stored in a public location on the internet. By including the web address of these repositories, you are directing apt-get to search these locations for the desired software. You use the /etc/apt/sources.list file to list the addresses of the repositories. It takes the following format:
deb  [web address] [distribution name][maincontribnon-free]
For example, in Ubuntu a debian based distribution, it could be something like this:
deb http://in.archive.ubuntu.com/ubuntu breezy main restrcted
You can add any repository you like. apt-get.org contains an excellent collection of repositories to suite all tastes.

Once you have set the repositories, the next step is to sync the local software database with the database on the repositories. This will cache a copy of the list of all the remotely available softwares to your machine. This is achieved by running the following command:
# apt-get update
An advantage of this is you now have the power to search for a particular program to see if it is available for your version of distribution using the apt-cache command. And you don't need a net connection to do this. For example,
# apt-cache search baseutils
... will tell me if the package baseutils is available in the repository or not by searching the locally cached copy of the database.

Once you have figured that the package (in our case baseutils) is available, then installing it is as simple as running the following command:
# apt-get install baseutils
The real power of apt-get is realised now. If the baseutils package depends on the availability of a version of the library say, "xyz1.5.6.so". Then apt-get will download the library (or package containing the library) from the net and install it before installing baseutils package. This is known as automatic dependency resolution.

And removing a package is as simple as running the command:
# apt-get remove baseutils
Get statistics about the packages available in the repositories by running the command :
# apt-cache stats
Total package names : 22502 (900k)
Normal packages: 17632
Pure virtual packages: 281
Single virtual packages: 1048
Mixed virtual packages: 172
Missing: 3369
...
To upgrade all the softwares on your system to the latest versions, do the following:
# apt-get upgrade
And finally the king of them all - upgrading the whole distribution to a new version can be done with the command:
# apt-get dist-upgrade
Saving valuable hard disk space
Each time you install an application using apt-get, the package is actually cached in a location on your hard disk. It is usually stored in the location /var/cache/apt/archives/ . Over a period of time, all the cached packages will eat up your valuable hard disk space. You can clear the cache and release hard disk space by using the following command:
# apt-get clean
You could also use autoclean where in, only those packages in the cache which are found useless or partially complete are deleted.
# apt-get autoclean
dpkg - The low level Package management utility
As I said earlier, Debian based distributions use the Deb package format. Usually normal users like you and me are shielded from handling individual deb packages. But if you fall into a situation where you have to install a deb package you use the dpkg utility.
Lets assume I have a deb package called gedit-2.12.1.deb and I want to install it on my machine. I do it using the following command:
# dpkg -i gedit-2.12.1.deb
To remove an installed package, run the command:
# dpkg -r gedit
The main thing to note above is I have used only the name of the program and not the version number while removing the software.
You may also use the --purge (-P) flag for removing software.
# dpkg -P gedit
This will remove gedit along with all its configuration files. Where as -r (--remove) does not delete the configuration files.

Now lets say I do not want to actually install a package but want to see the contents of a Deb package. This can be achieved using the -c flag:
# dpkg -c gedit-2.12.1.deb
To get more information about a package like the authors name,the year in which it was compiled and a short description of its use, you use the -I flag:
# dpkg -I gedit-2.12.1.deb
You can even use wild cards to list the packages on your machine. For example, to see all the gcc packages on your machine, do the following:
# dpkg -l gcc*

Desired=Unknown/Install/Remove/Purge/Hold
Status=Not/Installed/Config-files/Unpacked/Failed-config/.
/ Err?=(none)/Hold/Reinst-required/X=both-problems
/ Name Version Description
+++-===============-==============-========================
ii gcc 4.0.1-3 The GNU C compiler
ii gcc-3.3-base 3.3.6-8ubuntu1 The GNU Compiler Colletio
un gcc-3.5 none (no description available)
un gcc-3.5-base none (no description available)
un gcc-3.5-doc none (no description available)
ii gcc-4.0 4.0.1-4ubuntu9 The GNU C compiler
...
In the above listing, the first 'i' denotes desired state which is install. The second 'i' denotes the actual state ie gcc is installed. The third column gives the error problems if any. The fourth, fifth and sixth column gives the name, version and description of the packages respectively. And gcc-3.5 is not installed on my machine. So the status is given as 'un' which is unknown not-installed.

To check if an individual package is installed, you use the status -s flag:
# dpkg -s gedit
Two days back, I installed beagle (a real time search tool based on Mono) on my machine. But I didn't have a clue about the location of the files as well as what files were installed along with beagle. That was when I used the -L option to get a list of all the files installed by the beagle package.
# dpkg -L beagle
Even better, you can combine the above command with grep to get a listing of all the html documentation of beagle.
# dpkg -L beagle | grep html$
These are just a small sample of the options you can use with dpkg utility. To know more about this tool, check its man page.
If you are alergic to excessive command line activities, then you may also use dselect which is a curses based menu driven front-end to the low level dpkg utility.

GUI front-ends for apt-get
April 10, 2005

Installing linux on a Mac Mini

I have always been fascinated by the iMacs from Apple after I got to use an iMac at a friends place. But buying one was beyond my price range until Apple released the Mac Mini - widely touted as the budget Mac which could make the PC run for their money.

For people who doesn't know - Apple brings out the Mac series of machines running their own proprietary OS called OSX. This Operating system is built on a Unix base (more specifically the FreeBSD) and so can run most command line tools of Unix/Linux. Also unlike the PC which is built on Intel architecture, the Mac computers use the G5 Chipset (PowerPC Architecture). Frankly speaking, each Mac computer could be considered to be a piece of art considering the elegant look and latest technologies used in them.

Now my writing about this in the blog dedicated to linux takes significance because I have always wondered if Linux could be installed on a Mac computer. Recently, I came across this article which gives a detailed explanation on Installing Debian Linux on the Mac Mini. Those of you who are thinking of buying a Mac Mini might be interested to know that you can also dual boot between Linux and OSX in the Mac Mini just like you do in a PC.
Get Posts via email