Username/Email:  Password: 
TwitterFacebookFlickrRSS

Post-Installation Configuration of a Dell Laptop

 in
Part 2 of this article discusses installing a 2.4 kernel, setting up sound and moving to the ext3 filesystem.

In my last article, I discussed the installation of Debian GNU/Linux on my Dell Latitude C800 laptop, as well as the installation and configuration of XFree86 4.1.0. But I left out a lot of other configuration issues. In this article, I will discuss further configuration of this laptop, including:

  • kernel compilation using Debian's make-kpkg scripts, and configuration and installation of a 2.4 kernel

  • setting up sound on the C800

  • setting up a FrameBuffer console

  • conversion of ext2 partitions to the ext3 journalled filesystem

Setting up, Configuring and Installing a 2.4 kernel

Currently, there are two main series of 2.4 kernels. The Linus kernel series are the kernels released by Linus Torvalds, and they have version numbers like 2.4.7, 2.4.8, etc. The Alan Cox kernel series kernels are maintained and released by Alan Cox. They have version numbers like 2.4.8-ac3, 2.4.9-ac2, etc.

One of the major differences between the two kernel series is that ext3 has been integrated into the -ac (Alan Cox) kernels for quite some time, while the Linus kernels require a version-specific patch to add in ext3 support.

Another recent major difference is that with the 2.4.10 kernel release, Linus introduced a new VM system while Alan Cox has continued to stick with the previous VM. A consequence of this VM change in the Linus kernels since 2.4.10 is that there have been stability issues with the ext3 layer, not all of which have been resolved at of the time of writing this article.

However, the ext3 patches integrated into the -ac kernels are considered very stable. Based on this knowledge, and on my e-mail exchanges with Andrew Morton, one of the two ext3 maintainers, I will compile the current latest -ac kernel, which at the time of this writing happens to be 2.4.12-ac3.

If you are wary of trying out an -ac kernel and prefer to stick with a Linus kernel, I recommend the 2.4.7 Linus kernel. I have run this kernel along with the specific ext3 patch for it for some time on a desktop system and encountered no problems. Caveat: YMMV (your mileage may vary).

Downloading the 2.4.12-ac3 Kernel Source

Having decided to go with the above kernel, we need to download the source code. I always like to keep kernel sources in /usr/src, with /usr/src/linux as a symlink to the currently installed kernel's source directory.

First, we will download the full source to kernel-2.4.12 using wget (apt-get install wget, if you haven't installed it). As root, type::

    cd /usr/src/
    wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.12.tar.gz

Alan Cox kernels are distributed as patches that have to be applied against the specific Linus kernel for which they are meant. So, let's download the -ac3 patch to kernel-2.4.12. While still in the /usr/src directory, enter:

    wget http://www.kernel.org/pub/linux/kernel/people/alan/linux-2.4/2.4.12/patch-2.4.12-ac3.gz 
Preparing the Kernel Source

Now that the 2.4.12 kernel and -ac3 patch sources have been downloaded, extract them as follows, again from the /usr/src directory.

tar zxvf linux-2.4.12.tar.gz

To apply the -ac3 patch, enter

 cd linux
 gzip -dc ../patch-2.4.12-ac3.gz | patch -p1

And then fix up the source directory permissions, the name and set up the symlink:

   
 cd ..
 chown -R root:src linux
 mv linux linux-2.4.12-ac3
 ln -s linux-2.4.12-ac3 linux

Your /usr/src directory should now appear as follows:

matrix:/usr/src# cd /usr/src/
matrix:/usr/src# ls -alF
total 30516
drwxrwsr-x    4 root     src          4096 Oct 21 20:32 ./
drwxr-xr-x   16 root     root         4096 Oct 18 23:19 ../
lrwxrwxrwx    1 root     src            16 Oct 21 20:32 linux -> linux-2.4.12-ac3/
drwxr-xr-x   14 root     src          4096 Oct 21 20:29 linux-2.4.12-ac3/
-rw-r--r--    1 root     src      28459381 Oct 11 02:59 linux-2.4.12.tar.gz
-rw-r--r--    1 root     src       2729744 Oct 15 17:45 patch-2.4.12-ac3.gz
drwxr-xr-x    7 root     root         4096 Oct 19 19:31 rpm/
Installing Packages Necessary to Configure and Build Kernels

The following packages are needed to build kernels on Debian:

  • make, gcc, libc6-dev (pretty obvious)

  • kernel-package (to build kernels the Debian way)

  • bin86

  • tk-dev (needed for the xconfig GUI kernel configuration)

  • libncurses5-dev (needed for the menuconfig curses-based kernel configuration)

If you like to configure kernels using the GUI xconfig method, you don't need to install the libncurses5-dev packages. Likewise, if you like to configure kernels using the menuconfig method, you don't need to the tk-dev package.

Even though I like to configure kernels using the GUI kernel configuration tool, I will install libncurses5-dev just in case:

apt-get install make gcc libc6-dev kernel-package bin86 tk-dev libncurses5-dev

Apt will take care of installing all required dependencies for the above packages.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

I got as far as 'make kpkg clean' before I got stuck.

I tried reading the make-kpkg & kernel-pkg.conf man pages, as well as the doc's in /usr/doc/kernel-package, but I don't understand them ( yes, I am a newbie ). Is there another place I can look for information, suitable for someone just getting started in Linux?

Thanks

Terry Egan

tegan@ix.netcom.com

Re: Post-Installation Configuration of a Dell Laptop

karenoel's picture

Salman,

I have the same hardware, and am using the ext3 file system. After upgrading my kernel from 2.4.7 to a newer release, my machine would fsck upon every boot and was dying. I ended up reinstalling and using the 2.4.7 kernel and haven't had any problems since. After reading your article, I was left still wondering about the system management issue. After reading your comments to other posters, I see that you have covered that too. I found your article to be very helpful and I appreciate finding the answers to my questions all in one informative place.

Thanks!

Karen Noel

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

I would have been much easier to just use Windows 2000 or XP pro. Then all your software and hardware would of worked out of the box!
And NTFS is painless to convert to and use.

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

I won't even dignify that question with a response. Duh!

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

To bad NTFS isn't a journaling files system in the real sense, besides 2000 and XP are very limited in utilities. Also why pay for an inferior OS when an excellent server OS can be downloaded for free and no licensing!

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

Though xp or win2k may be easier to install than linux, it really isn't a subsitute. Its like comparing two completely opposite things. IMO i think saying 'Oh it would be easier to install Windows 2000' is a copeout for being lazy and not wanting to learn or understand linux. and this article is intented for people who would like to learn more about linux, etc.. so why did you even bother to make that comment?

also i don't see how the conversion of fat to ntfs file systems has anything the world to do with converting ext2 filesystems to ext3 filesystems ?!?!

on another note i would like to mention that there is an option that you can compile into your kernel (2.4.16+) that allows you to access the system managment mode of the cpu on dell laptops. ie you can do things like turn on/off your fan, get the cpu temperature, use the Fn-keys one the keyboard, etc.. more info can be found at http://www.debian.org/~dz/i8k

have fun,

Alexander Theodore

Re: Post-Installation Configuration of a Dell Laptop

Anonymous's picture

How do you configure a Dell laptop for a docking station/port replicator, post installation?

I've basically performed the installation of Linux on my Dell Precision M50 laptop (at home) while it was "undocked" and now when I try to boot the laptop while docked (at work) I get a blank screen after what appears to be a successful bootup.

Any ideas on how to change the display output, keyboard & mouse inputs, for a docking station post-installation?

Thanks in advance...

- GE