Installing Debian Linux (potato/woody/sid) on a Dell Inspiron 8000

Preface

On the Linux on Laptops page, there are many excellent descriptions of how to install Linux on Dell's Inspiron 8000, but most of them are concerned with RedHat, Suse, or Mandrake. Here we focus on Debian, which differs in installation requirements in some ways. This guide presumes that the reader has done Debian installs before and knows how to deal with kernel builds, so many of the instructions will be terse. If you have specific questions, I will try to be of assistance if you write to me. As always, this document is meant as a guide, and you should assume full responsibility in following anything written here, especially if you don't understand the implications. On the other hand, it is pretty hard to do irreparable damage (once you are done partitioning!).

My Configuration

Starting the Install

I am assuming that you have already freed up some space on your hard disk for the debian install. That is, you have deleted Windows or reduced the size of the Windows partition using your favorite software. There may be some concern about the suspend-to-disk partition, but this has been amply discussed in other documents on the Linux on Laptops page.
  1. Install Debian Linux from CD, rescue installer set, loadlin or whatever other means you have. This entails the usual partitioning the disk, initializing partitions and assigning them mount points, installing and configuring drivers, and installing the base system. Create a boot floppy if you like, but you probably won't keep the kernel.

  2. When you reboot, you will have to intercept lilo, so hold down the shift key when you see LILO appear. This will give you the prompt LILO boot:

    At the prompt, type linux single to boot into single user mode. This avoids scanning the pcmcia bus which will cause the kernel to hang. The other options of passing arguments to LILO (mentioned in other documents on the Linux on Laptops page) do not seem to work in Debian, but this method is fine.

    Once in single user mode, you are asked for your root password. Just hit return for your root password as it hasn't been set yet. All your partitions will have been mounted.

    At this point you need to compile the pcmcia-cs modules and install them in the running kernel. This means you need the pcmcia-source, make, gcc, tar, kernel-source-2.*.* (corresponding to the installed kernel --- 2.2.18pre21 on the Debian CDs I have), and your favorite editor. I chose to grab things from the potato cdrom which I had. Perhaps soon there will be woody installer images. You actually need more than this, but apt will pull in the required packages.

The install part II

If you are installing potato, let dselect lead you through the process of building your /etc/apt/sources.list file. Choose whatever means you like. If you are upgrading to woody/sid, now is the time to do it before you have too many potato packages which may cause snags. You will probably have to go through the motions of the deselect upgrade, but when dselect finally opens, quit it immediately. Now change your /etc/apt/sources.list file to point to woody/sid (here is a sample). Once this is in place, do the usual apt-get update. As the upgrade process can be a little rocky, I would suggest the following:

apt-get -u install apt apt-utils dpkg debconf perl

This is actually the point at which most upgrades have problems. Then I would do

apt-get -u dist-upgrade

This will upgrade the very few packages you have on your system to the sid versions. In particular, this will take care of the libc upgrades. Once that is successfully completed, you have a perfectly functional, if a bit sparse, sid system.

At this point you are free to install most of your packages except X which we take care of next. Before doing so make sure you download a newer kernel in the 2.4.* series, 2.4.5 for this document.

Installing XFree86

I could not get the video to work (ATI Mobility M4 AGP) with the 2.2.18pre21 kernel; there was some problem with the AGP (agpgart) module, so I downloaded kernel-source-2.4.5 and untarred it as before. This was the first time I had configured a 2.4.* kernel, and saw the kernel pcmcia support. Unfortunately, I could not get it to work, so in the end I disabled it, and rebuilt the pcmcia modules as before. Feel free to examine the config file for the kernel build. I built the 2.4.5 kernel with the main themes: agp support for the ATI card (r128 driver), maestro3 sound support, usb, firewire, apm (only to power off on halt), and various scsi support to support CD-RW disks using the ide-scsi mentioned in the other install guides. If you use my config file, you will also want to take note of my /etc/modules file. You will also need to install libc6-dev and you should install the kernel-package package which greatly simplifies kernel builds. If you decide to use my config file, all you need to do is:

cd /usr/src
tar jxf kernel-source-2.4.5.tar.bz2  (now the bzip2 option has changed)
rm linux
ln -s kernel-source-2.4.5 linux
cd linux
cp /path_to_my_config_file/my_config_file   .config (see the leading dot?)
make-kpkg --revision=myname.1.0 kernel_image
Once the kernel has finished compiling,
cd ..
dpkg -i kernel-image-2.4.5_myname-1.0_i386.deb
Before you do anything else, edit your /etc/lilo.conf file so you can get back to your working kernel in case something goes awry. After doing so, don't forget to rerun /sbin/lilo. I assume you know what you are doing here. Then reboot.

If you are lucky, the kernel will not hang, despite the fact that the PCMCIA modules have not yet been compiled for this version of the kernel. Why it doesn't hang, I don't know. If it does, boot to single user mode as you did above. The goal after rebooting is to rebuild the PCMCIA modules again and reinstall them. See the instructions above, although you may want to do a make clean first. Once the modules are installed, you should be able to get your network back up as you did the first time.

PCMCIA Note (31 July 2001): Since I first installed a 2.4.5 kernel, I have played more with the pcmcia stuff, and the kernel drivers seem to working (at least in the 2.4.7 kernel). Using the kernel drivers actually simplifies things quite a bit, so I would recommend this approach. Here is my config-2.4.7 file for building kernel-2.4.7. The pcmcia stuff is a bit scattered, some in "General Options", some in "Network Device Support". If you haven't already, run pcnetconfig and choose the option for using /etc/network/interfaces for either fixed IP or dhcp use. Enter all your information in the /etc/network/interfaces, and not in /etc/pcmcia/network.opts. You also will no longer need the local ethernet initialization script listed above.

Now you are in the home stretch. You need to download whatever x-packages you need. At a minimum, I would suggest (you need an xserver, fonts, and a window manager):

apt-get -u install task-x-window-system-core xterm wmaker
Now you need to fuss a little. Don't worry too much about the xserver install script. Dell has provided a number of XF86Config-4 files for linux users. First, make sure /dev/mouse actually points to your mouse, and in root's home directory (and eventually yours) you have an .xsession file with 755 permissions and at least the line wmaker to give the xserver something to do when it starts.

I have copied Dell's XF86Config-4 files for 1400X1050 and 1024x768 for your convenience. Their modeline in the 1280x1024 file is identical to the 1400x1050, so not of much use. You can get the xserver to give you a 1280x1024 resolution, but it did not look very crisp to me.

Copy one of the files to /etc/X11/XF86Config-4 and issue the startx command. X should come up unless I have forgotten something silly. If it fails, check root's .xsession-errors and /var/log/XFree86.0.log for information. There may be some font path problems and the like. If X does come up, you can kill it with Control-Alt-Backspace. Now that it works you can install your favorite display manager, e.g., apt-get install xdm. You can start it manually (/etc/init.d/xdm start), or it will come up automatically the next time you reboot.

The modem

The modem worked perfectly with the PCMCIA modules installed. I personally like wvdial to set things up effortlessly.

Corrections or suggestions...

If there are corrections or suggestions, please write to me.

Last modified: May 31 2008 12:25:36 EDT by Thomas R. Shemanske