Linux Configuration and Installation:Installing Linux
-->
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:
1. Click on the Windows Desktop with your right mouse button. Under New, select Shortcut.
2. Windows 95 will display a Create Shortcut dialog box, asking for the command line used to start the program. Type the location of your LINUX.BAT file into the box and hit Enter. For example:
C:\LOADLIN\LINUX.BAT
3. Next, Windows will want a title for the program. The default of Linux should be just fine, but you can enter whatever you like.
4. Now youll need to select an icon. Again, you can pick whatever you like. (We use the first-aid kit iconLinux to the rescue!)
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:
1. Click on the Linux icon with your right mouse button, and select Properties from the menu.
2. Click the Program tab.
3. Click the Advanced
button.
4. Select the checkbox for MS-DOS mode and then hit the OK button.
5. Hit the main dialog boxs OK button, and your Linux icon is ready to use.
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.
Recompiling a Kernel
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:
0. If you havent installed the C compiler and kernel source, do that.
1. Use the boot-kernel disk you installed with to start your machine. At the LILO: prompt, enter:
LILO: mount root=/dev/hda1
assuming that /dev/hda1 is your Linux partition. (This is the assumption made through the rest of this section.) If not, enter your Linux partition instead. After this, ignore any error messages as the system starts up.
2. Log in as root, and recompile the kernel with these steps:
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
Wyszukiwarka
Podobne podstrony:
092 095092 095092 095 3onvgjjkrav36nsaqiu2w2k7ieug7bhmhzb7hiq092 095 72l734prs6sxaayomwltrkiurzr6xddagkn7vji092 Sanders Glenda Doktor Hunk092 93095 098087 092 zzhjfir6ptmapevkxbqtgyde3cqjmuka5gvkrua083 092095 098 r6zasmwfalugjlutqwlhyvwea6w3ebelfalbo7y092 ADMM092 093312[01] 0X 092 CZERWIEC 09 CZ 2F G 092więcej podobnych podstron