Post-Installation Configuration of a Dell Laptop
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
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).
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
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/
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.
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Fun with ethtool
- 100% disappointed with the decision to go all digital.
- Parallel Programming with NVIDIA CUDA
- Readers' Choice Awards 2011
- Validate an E-Mail Address with PHP, the Right Way
- You Need A Budget
- Why Python?
- Linux-Based X Terminals with XDMCP
- The Linux powered LAN Gaming House
- Creating a vDSO: the Colonel's Other Chicken
- buena información
4 hours 3 min ago - One important "bucket" that I didn't note (désolé si qqun deja d
5 hours 4 min ago - Gnome3 is such a POS. No one
14 hours 31 min ago - Gnome 3 is the biggest POS
14 hours 42 min ago - I didn't knew this thing by
20 hours 46 min ago - Author's reply
1 day 10 min ago - Link to modlys
1 day 1 hour ago - I use YNAB because of the
1 day 1 hour ago - Search
1 day 6 hours ago - Question
1 day 6 hours ago





Comments
Re: Post-Installation Configuration of a Dell Laptop
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
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
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
I won't even dignify that question with a response. Duh!
Re: Post-Installation Configuration of a Dell Laptop
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
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
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