⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 092-095.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Configuration and Installation:Installing Linux</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=1558285660//-->

<!--TITLE=Linux Configuration and Installation//-->

<!--AUTHOR=Patrick Volkerding//-->

<!--AUTHOR=Kevin Reichard//-->

<!--AUTHOR=Eric Foster//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--CHAPTER=2//-->

<!--PAGES=092-095//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="089-092.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="095-099.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>Adding a Linux Icon to Windows 95</B></FONT></P>

<P>For users running Windows 95, it can be handy to set up a shortcut to start Linux from the Windows desktop. Once you&#146;ve installed <B>Loadlin</B> and configured your <B>LINUX.BAT</B> file, it&#146;s a simple matter to add an icon that starts <B>LINUX.BAT</B>. Here&#146;s how it&#146;s done:</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Click on the Windows Desktop with your right mouse button. Under New, select <B>Shortcut</B>.

<DD><B>2.</B>&nbsp;&nbsp;Windows 95 will display a Create Shortcut dialog box, asking for the command line used to start the program. Type the location of your <B>LINUX.BAT</B> file into the box and hit <B>Enter</B>. For example:

<!-- CODE SNIP //-->

<PRE>

     C:\LOADLIN\LINUX.BAT

</PRE>

<!-- END CODE SNIP //-->

<DD><B>3.</B>&nbsp;&nbsp;Next, Windows will want a title for the program. The default of <I>Linux</I> should be just fine, but you can enter whatever you like.

<DD><B>4.</B>&nbsp;&nbsp;Now you&#146;ll need to select an icon. Again, you can pick whatever you like. (We use the first-aid kit icon&#151;Linux to the rescue!)

</DL>

<P>Now you&#146;ll see the new <B>Linux</B> icon appear on the desktop. It&#146;s not quite ready to go yet, however; as you recall, <B>Loadlin</B> 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:</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Click on the <B>Linux</B> icon with your right mouse button, and select <B>Properties</B> from the menu.

<DD><B>2.</B>&nbsp;&nbsp;Click the <B>Program</B> tab.

<DD><B>3.</B>&nbsp;&nbsp;Click the <B>Advanced&#133;</B> button.

<DD><B>4.</B>&nbsp;&nbsp;Select the checkbox for <B>MS-DOS mode</B> and then hit the <B>OK</B> button.

<DD><B>5.</B>&nbsp;&nbsp;Hit the main dialog box&#146;s <B>OK</B> button, and your <B>Linux</B> icon is ready to use.

</DL>

<P><FONT SIZE="+1"><B>Using Loadlin to Install Linux without Floppies</B></FONT></P>

<P>It&#146;s rare, but in some cases (especially with laptops, it seems) a machine&#146;s floppy controller doesn&#146;t work correctly with Linux, and the boot/rootdisks don&#146;t load correctly. If that happens on your machine, you&#146;ll be happy to know that <B>Loadlin</B> has a new feature that allows you to use it to load an installation rootdisk.</P>

<P>First, you&#146;ll need to install <B>Loadlin</B> as described before, unzipping the <B>lodlin16.zip</B> file on your <B>C:</B> drive:</P>

<!-- CODE SNIP //-->

<PRE>

     C:\&gt; PKUNZIP -d E:\KERNELS\LODLIN16.ZIP

</PRE>

<!-- END CODE SNIP //-->

<P>Next, choose a kernel from under the CD-ROM&#146;s <B>\KERNELS</B> directory and install it in your <B>C:\LOADLIN</B> directory. In this example we&#146;ll use a kernel from the <B>E:\KERNELS\BARE.I</B> directory:</P>

<!-- CODE SNIP //-->

<PRE>

     C:\&gt; COPY E:\KERNELS\BARE.I\ZIMAGE C:\LOADLIN

</PRE>

<!-- END CODE SNIP //-->

<P>Now you&#146;ll need to copy a rootdisk image such as <B>COLOR.GZ</B> into your <B>LOADLIN</B> directory:</P>

<!-- CODE SNIP //-->

<PRE>

     C:\&gt; COPY E:\ROOTDSKS\COLOR.GZ C:\LOADLIN

</PRE>

<!-- END CODE SNIP //-->

<P>Now you&#146;re all set to use <B>Loadlin</B> to start the installation process. Change into the <B>LOADLIN</B> directory and use <B>Loadlin</B> to load the Linux kernel and your rootdisk image:</P>

<!-- CODE SNIP //-->

<PRE>

     C:\&gt; CD LOADLIN

     C:\LOADLIN&gt; LOADLIN ZIMAGE ROOT=/dev/ram RW INITRD=COLOR.GZ

</PRE>

<!-- END CODE SNIP //-->

<P>This will boot Linux and give you a login prompt. From here you can login and proceed to install Linux as usual.

</P>

<H3><A NAME="Heading23"></A><FONT COLOR="#000077">Recompiling a Kernel</FONT></H3>

<P>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, you&#146;ll have a hardware configuration that optimizes Linux installation and usage.

</P>

<P>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 you&#146;re using an unsupported SCSI CD-ROM, bus mouse, or sound card), here&#146;s how to do so:</P>

<DL>

<DD><B>0.</B>&nbsp;&nbsp;If you haven&#146;t installed the C compiler and kernel source, do that.

<DD><B>1.</B>&nbsp;&nbsp;Use the boot-kernel disk you installed with to start your machine. At the <I>LILO:</I> prompt, enter:

<!-- CODE SNIP //-->

<PRE>

          LILO: mount root=/dev/hda1

</PRE>

<!-- END CODE SNIP //-->

<BR>assuming that <B>/dev/hda1</B> 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.

<DD><B>2.</B>&nbsp;&nbsp;Log in as <B>root</B>, and recompile the kernel with these steps:

<!-- CODE SNIP //-->

<PRE>

     cd /usr/src/linux

     make config

</PRE>

<!-- END CODE SNIP //-->

</DL>

<P>At this point you&#146;ll choose your drivers. Repeat step 3 until you are satisfied with your choices.

</P>

<P>If you are using LILO, the following will build and install the new kernel:</P>

<!-- CODE SNIP //-->

<PRE>

     make dep ; make clean ; make zlilo

     rdev -R /vmlinuz 1

</PRE>

<!-- END CODE SNIP //-->

<P>If you are using a bootdisk, the following commands will build the kernel and create a new bootdisk for your machine:

</P>

<!-- CODE SNIP //-->

<PRE>

     make dep ; make clean ; make zImage

     rdev -R zImage 1

     rdev -v zImage -1

     rdev zImage /dev/hda1

     fdformat /dev/fd0u1440

     cat zImage &gt; /dev/fd0

</PRE>

<!-- END CODE SNIP //-->

<P>You&#146;ll need to place a clean floppy disk into your drive before the <B>fdformat</B> command.</P>

<P>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.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="089-092.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="095-099.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -