-->
Previous | Table of Contents | Next |
Adding a Linux Icon to Windows 95
For users running Windows 95, it can be handy to set up a shortcut to start Linux from the Windows desktop. Once youve installed Loadlin and configured your LINUX.BAT file, its a simple matter to add an icon that starts LINUX.BAT. Heres how its done:
C:\LOADLIN\LINUX.BAT
Now youll see the new Linux icon appear on the desktop. Its not quite ready to go yet, however; as you recall, Loadlin will not run directly under Windows 95, so we need to adjust the properties to force the program to run in real MS-DOS mode:
Using Loadlin to Install Linux without Floppies
Its rare, but in some cases (especially with laptops, it seems) a machines floppy controller doesnt work correctly with Linux, and the boot/rootdisks dont load correctly. If that happens on your machine, youll be happy to know that Loadlin has a new feature that allows you to use it to load an installation rootdisk.
First, youll need to install Loadlin as described before, unzipping the lodlin16.zip file on your C: drive:
C:\> PKUNZIP -d E:\KERNELS\LODLIN16.ZIP
Next, choose a kernel from under the CD-ROMs \KERNELS directory and install it in your C:\LOADLIN directory. In this example well use a kernel from the E:\KERNELS\BARE.I directory:
C:\> COPY E:\KERNELS\BARE.I\ZIMAGE C:\LOADLIN
Now youll need to copy a rootdisk image such as COLOR.GZ into your LOADLIN directory:
C:\> COPY E:\ROOTDSKS\COLOR.GZ C:\LOADLIN
Now youre all set to use Loadlin to start the installation process. Change into the LOADLIN directory and use Loadlin to load the Linux kernel and your rootdisk image:
C:\> CD LOADLIN C:\LOADLIN> LOADLIN ZIMAGE ROOT=/dev/ram RW INITRD=COLOR.GZ
This will boot Linux and give you a login prompt. From here you can login and proceed to install Linux as usual.
Most Linux users will find that the precompiled kernels that come on the accompanying CD-ROMs should work for them; PC hardware is becoming reasonably standard, and if you paid any attention at all to Chapter 1, youll have a hardware configuration that optimizes Linux installation and usage.
However, on the remote chance you need to recompile your kernel (whether directed to in a Linux HOW-TO or through the advice from an expert on the Usenet; this will happen if youre using an unsupported SCSI CD-ROM, bus mouse, or sound card), heres how to do so:
LILO: mount root=/dev/hda1
cd /usr/src/linux make config
At this point youll choose your drivers. Repeat step 3 until you are satisfied with your choices.
If you are using LILO, the following will build and install the new kernel:
make dep ; make clean ; make zlilo rdev -R /vmlinuz 1
If you are using a bootdisk, the following commands will build the kernel and create a new bootdisk for your machine:
make dep ; make clean ; make zImage rdev -R zImage 1 rdev -v zImage -1 rdev zImage /dev/hda1 fdformat /dev/fd0u1440 cat zImage > /dev/fd0
Youll need to place a clean floppy disk into your drive before the fdformat command.
You should now have a Linux kernel that can make full use of all supported hardware installed in your machine. Reboot and try it out.
Previous | Table of Contents | Next |