Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Friday, July 11, 2008

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.

Tuesday, June 17, 2008

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.0

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.

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.

Saturday, June 7, 2008

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.