Last updated: October 1
NEWS
Laptops specifications:
Quick note and warnings:
Please be sure that you have read the Disclaimer before continuing.This guide is not an intensive guide to installing Linux, nor to using it. Rather I will assume that you've already read the installation manuals. This guide will just make life a little easier by giving you the warnings and tips you need. With that in mind, let's go on to the things I don't like about this laptop...
Video card:
This laptop comes with the NeoMagic video card. As of Slackware 4.0, this card is now supported without having to install XFree86 Release 3.3.3.1. Your video display will work just fine, although you may experience strange video garbage depending on the window manager you're using, or the kind of graphic format you display on the screen.Modem:
The laptop modem is a winmodem. Generally a winmodem will not work under Linux. However, I have been recently informed by someone that it is possible to get the modem working. Lucent has recently released Linux drivers for its winmodems, and so we can get this particular winmodem to work under Linux. Note that this was done under Slackware 7.0, but should generally work under any Linux distribution. This is how you do it. First go to http://www.linmodems.org and download the LucentPCI winmodem zip file. It should be under Vendor Linmodems. The current version at this time of writing is linux568.zip. Save it and then unpack it as follows:
unzip linux568.zip
This should generate four files. To install the modem, type:
./ltinst
This will automatically load and install the modem driver. Depending on the kernel version you are using, you may get a warning. You can safely ignore this. The next thing to do is to modify /etc/rc.d/rc.local. So open it with your text editor and append the following line to it:
setserial /dev/ttyS14 uart 16550
Now if you reboot your system, your modem will be properly initialized. If you got the warning when you installed the modem driver and don't want to get it (or rather see it), then modify the following line in your /etc/rc.d:
/sbin/insmod -f ltmodem
to the following line:
/sbin/insmod -fs ltmodem
Now instead of seeing the warning, the warning will be logged into your log files instead, so you don't have to see it again. You should now be able to use your PPP software to estabilish a PPP connection to your ISP.
Rating the laptop:
All in all, I would say this laptop is pretty good, considering that 99% of the hardware is Linux compatible.
Preparations before installing:
Before you begin, you should realize that there are two ways to set up Linux on the laptop. The first method is a destructive way, which requires you to completely format and repartition your hardrive. A second method, non-destructive, has been emailed to me by Jason E. Massey. Both methods will be discussed. This section will assume a few things:
Destructive method:
First of all, use the Windows 98 startup disk to boot up your computer to MS-DOS. When you enter the MS-DOS command line prompt, run FDISK. From here you want to create a Primary DOS partition as well as any other partition you may want to use under Windows 98. Don't bother creating the Linux partitions here, because you can do it later on. On my laptop I have the hard disk partitioned 50-50 for Windows 98 and Linux. After creating your DOS/Windows 98 partitions, reboot with the Windows 98 startup disk, and format your newly created partitions. When you're done formatting, that's when you want to install Windows 98. It is important that you install Windows 98 first because it tends to overwrite the Master Boot Record (MBR) and so you won't be able to boot Linux with LILO if you install Linux first, and then Windows 98. When installing Windows 98, do not use the Compaq Restore Disk! The Compaq Restore Disk will destroy your newly created partitions and restore your laptop to the way it was when you first bought it. You don't want that.
After Windows 98 is fully installed, you'll find that certain things in your computer aren't working the way they were supposed to. Like the mouse pad icon is no longer in the System Tray. Don't worry, we'll restore them. Get the Compaq Restore Disk and using Explorer, navigate your way to D:\DATA\. Copy the file D:\DATA\Cpqdrv.zip to some temporary folder. Extract it, and you'll be extracting all the drivers that your laptop requires. Just install whatever drivers you think you'll be using. When you're finally done with all the installing and the rebooting, you're ready to install Slackware.
Non-destructive method:
Warning: I have not tried out this method, so I cannot confirm if it will work or not. Please do not email me with questions about it. The following is the email I received from Jason E. Massey:
Compaq corporation in its infinite wisdom provided something called a Quick Restore CD with the Presario 1230 instead of the Windows 98 CD. While this Restore CD is great to restore your computer to its factory state, it does not allow the existence of multiple partitions, which are needed to install a dual boot Linux/Win98 system. The following method is a way around that limitation using a freeware utility, called Partition Resizer, to shrink the single partition without data loss.
Note: Step number 3 below may not be necessary. It seems logical that as long as you have sufficient space left on your hard drive you shouldn't need to use the Quick Restore CD to reformat your hard drive. In that case you should be able to skip that step and follow the rest to shrink the partition. However, the directions that follow are what I did to my laptop.
=================
Partition Resizer v.1.2.0
=================
Steps to Install Linux and Compaq Restore CD together.
Partition Resizer is available at http://members.xoom.com/Zeleps/. Thank you to Jason E. Massey for this bit of information. If you have questions about the non-destructive method, please contact him at jemasse@gte.net
Creating the boot and root disks:
Using the Slackware CD, or wherever you're installing it from, create the boot disk bareapm.i and the root disk pcmcia.tgz. You'll need to use rawrite.exe to do this, and it's provided in the Slackware package. The syntax is: rawrite [image] [floppy drive]
Just go to the directory containing the boot image and type:
rawrite bareapm.i a:
Do the same for pcmcia.tgz. After the laptop stops chugging, you should have two floppy disks ready. So insert the bareapm.i floppy into the floppy drive and reboot the computer. After which Linux should happily start, dumping loads of information onto your screen. At this point, you should not get any errors. When Linux prompts you for the root disk (pcmcia.tgz), insert it, and press ENTER.
Creating the Linux partitions:
Upon login, you're greeted with the command prompt. The first thing to do is to type fdisk
. Note that in Linux, everything is case sensitive. FDISK
and fdisk
are different! Using fdisk
's print option (p), here is what I have:
Device Boot Start End Blocks Id System /dev/hda1 * 1 394 1588576+ 6 DOS 16-bit >=32M /dev/hda2 395 787 1584576 5 Extended /dev/hda5 395 755 1455520+ 83 Linux native /dev/hda6 756 787 128992+ 82 Linux swap
Remember that it will most probably look different on your system, depending on the size and number of partitions you crate. When you're done writing your partitions to disk, run setup
, and follow the instructions. You'll be asked to format and your newly created Linux partitions. Make sure you have them checked for bad blocks.
Installing the X Window System
X is Linux's standard graphical user interface (GUI). To be able to run X in your laptop, make sure you install the X disk sets: X, XAP, XD, and XV. Run XF86Setup you'll be presented with a graphical interface using a VGA16 server. You only need to do three things here. First of all, go to Card and pick out the NeoMagic card. Then go to Monitor and choose the Extended Super VGA, 800x600 @ 60 Hz. Finally click on Modeselection and choose an 800x600 setting with 16bpp color depth. Click on Done, and see if the settings work (they should). Save the settings if you're satisfied. You'll then be asked if you want to create a link, and you should say "yes" to this. When you get dropped back to the prompt, type startx
and you should be dropped into a clean Fvwm95 window manager!
Installing LILO:
If you want to use LILO, go ahead and install it in the MBR. Everything should work well. LILO will overwrite the MBR and will let you boot between Windows 98 and Linux. As already mentioned above, if you install Windows 98 after installing Linux, Windows 98 will overwrite the MBR and you'll have to install LILO all over again. Check the manual pages for LILO for more information on this.
Configuring sound:
There are two ways to configure sound in Slackware 4.0. An easy way, and a hard way. The hard way, is to recompile your kernel with sound support. The following configurations are what you will need to use to get the sound card in your laptop working:
The easy way is to simply edit one file. Open up /etc/rc.d/rc.modules with your favorite text editor. Look for the section on Sound, and uncomment it. The line you're looking for is:
#/sbin/modprobe sound sb io=0x220 irq=5 dma=3 dma16=5 mpu_io=0x300
This module is compiled to support Soundblaster 16, which works in the laptop. Just uncomment it so it looks like this:
/sbin/modprobe sound sb io=0x220 irq=5 dma=3 dma16=5 mpu_io=0x300
Now you can reboot, and sound should now be functional. Or if you don't want to reboot, just run the command /sbin/modprobe sound sb io=0x220 irq=5 dma=3 dma16=5 mpu_io=0x300
. At your next boot up, the sound module will be loaded automatically. Test it by playing a sound file. I used the CD player that came with KDE, kscd
and it worked perfect.
Advanced Power Management:
You may have noticed that when you run theshutdown -h now
command, your laptop doesn't really shut down. In fact, it just halts,
and you get a screen where you have to either reboot into Windows 98 to
shutdown, or to plug out the battery and cable to shut the laptop down.
Wouldn't it be great if you issued shutdown -h now
and the
laptop shut down by itself? There are two ways to do this. The most
commonly known way, is to recompile the kernel and add APM support. Of
course, this is a lot of trouble, especially if you are a newbie and
don't want to go into recompiling the kernel yet. Fortunately, there is
a much easier way to obtain a kernel with APM support. The Slackware CD
comes with a directory containing pre-configured kernels. The kernel we
want, is bareapm.i. So let us begin by inserting the CD and
mounting it as the root user:
root# mount /cdrom root# cd /cdrom/kernels/bareapm.i
You should now be in the bareapm.i
directory in the CD. The
next thing to do is to copy the file bzImage to /
.
bzImage is the kernel configured with APM support. Next we need
to copy System.map to the /boot
directory, but
before we do that, we want to backup the current System.map file.
So run the command:
root# mv /boot/System.map /boot/System.map.original
Now copy the System.map in /cdrom/kernels/bareapm.i
to /boot
. Once this is done, everything is almost set up.
There is just one last thing to do, and that is to add the new kernel
entry into the /etc/lilo.conf
file.
This is done as follows. Open up /etc/lilo.conf
in your
favourite text editor, and add the following entry to it:
image = /bzImage root = /dev/hda5 label = apm read-only
You can give any value you want to label. label just
states what operating system will be typed at the LILO boot prompt to
start. In this case, we are using apm as the label, so when the
LILO boot prompt comes up, typing apm instead of linux
will start the APM configured kernel. Save and close
/etc/lilo.conf
, and finally, run the command
lilo
as root. LILO should report what new labels have been
added. Now reboot, and when the LILO boot prompt comes up, type
apm and log in. Test to see if it works by typing shutdown
-h now
. If Linux successfully shuts down, then you've got it
working.
WARNING! There is something weird going on when the laptop is enabled with APM support! When you press the sound buttons on the front panel of the laptop, it generates a NMI errors. Why does it do this? I do not know. I've tried it with different kernels, with different distributions, but I suspect this is a hardware problem. So if you're gonig to be using APM, remember to keep your hands off the sound buttons! One way to configure sound is to download a program that does it for you.
When to email me:
Read the following before you decide to send me an email: Email Rules.
X_console
shellscope@yahoo.com