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

📄 106-109.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=106-109//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="103-106.html">Previous</A></TD>

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

<TD><A HREF="109-110.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading30"></A><FONT COLOR="#000077">What to Do if Things Go Wrong</FONT></H3>

<P>For the most part, installation of Linux from the accompanying CD-ROMs is a pretty straightforward proposition, and you shouldn&#146;t have many problems. However, there may be some cases when you run into problems when you reboot the Linux system after installation. These problems may include:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;You&#146;re told that the system is out of memory. You&#146;ll probably run into this problem if you&#146;re operating with 4 megabytes of RAM or less.

<DD><B>&#149;</B>&nbsp;&nbsp;Your system hangs when you first run Linux. In these situations, you&#146;ll want to watch the screen closely for error messages. Sometimes Linux will be seeking a device at a specific address (say, a CD-ROM drive) and instead find a network card. In these situations, Linux will hang. You&#146;ll need to tell Linux to look for the device at the address on your system, which requires that you send an option line to Linux upon bootup. This is a situation that&#146;s covered in the many documents included on the CD-ROMs.

</DL>

<H3><A NAME="Heading31"></A><FONT COLOR="#000077">Other Configuration Procedures</FONT></H3>

<P>Now that you&#146;ve got Linux basically installed and running, you can take the time to set up some system peripherals. These include printers, sound cards, and (for laptop users) PCMCIA devices.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading32"></A><FONT COLOR="#000077">Setting Up a Printer</FONT></H4>

<P>When you installed Slackware, you were asked about the location of your printer. This information was translated into the UNIX equivalent; a printer on the first parallel port is assigned a device name of <B>/dev/lp0</B>. Similarly, if you&#146;re using a serial printer (which, thank goodness, are getting rarer and rarer), it will probably be assigned a device name of <B>/dev/ttyS1</B>.</P>

<P>This simple configuration means that you can immediately print ASCII characters, with the Linux system treating your printer like a simple line printer. Printing is actually a more involved process than you might think. We&#146;ll cover printing in Chapter 4, but you should be aware right now that printing in Linux involves the following steps:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;When your computer boots, the <B>lpd</B> daemon runs, looking at the <B>/etc/printcap</B> to see what printer you&#146;re using; the process continues to run throughout your Linux computing session.

<DD><B>&#149;</B>&nbsp;&nbsp;When you print a document with <B>lpr</B>, the <B>lpd</B> command actually handles the print job.

<DD><B>&#149;</B>&nbsp;&nbsp;To change anything in the printing process (like when you want to kill or suspend print jobs), the <B>lpc</B> and <B>lprm</B> commands are used to talk with the <B>lpd</B> daemon.

</DL>

<P>Obviously, you&#146;ll want to make sure that <B>/etc/printcap</B> contains correct information about your printer. When you look at it in a text editor like <B>elvis</B> or <B>emacs</B>, you&#146;ll see that all the lines are commented out with <TT>#</TT> characters. Most popular printers are listed in this file (such as HP LaserJets), and if you uncomment out the lines specific to your printer, you should be able to use it.</P>

<P>It&#146;s important to get this information correct, because Linux printers that aren&#146;t configured properly have a tendency to suffer from the &#147;staircase effect,&#148; where lines are staggered at the beginning:</P>

<!-- CODE SNIP //-->

<PRE>

We hate the staircase effect.

          It makes our documents look really stupid.

               And it makes it hard for us to do our work properly.

                    In fact, we find that we don't print things out

when our printer is misconfigured.

</PRE>

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

<P>More information about printing in Linux can be found on the first CD-ROM, in the <B>PRINTING-HOWTO</B>.</P>

<H4 ALIGN="LEFT"><A NAME="Heading33"></A><FONT COLOR="#000077">Setting Up a Sound Card</FONT></H4>

<P>As installed, Slackware includes no support for the sound component of sound boards. Yet many of you installed kernels that supported sound boards, like the <B>sbpcd</B> kernel used for systems with a CD-ROM attached to the sound board. What gives?</P>

<P>When you install one of these kernels, you&#146;re actually making sure that the <I>CD-ROM</I> attached to the sound board will work, not the sound board itself. To actually use one of these sound boards, you&#146;ll need to recompile a kernel that supports a sound board.</P>

<P>Why would you do this? Well, maybe you&#146;re a dedicated Internet surfer and you want to be able to use the RealAudio streaming-audio player on your machine (yes, there <I>is</I> a Linux version; check out <A HREF="http://www.realaudio.com">http://www.realaudio.com</A>). Or maybe you&#146;re a dedicated gamesperson and you want to experience the audio gore of DOOM. Or maybe you want to play musical CDs using some of the tools we discuss in Chapter 4.</P>

<P>To add sound support, you&#146;ll want to recompile a Linux kernel specific to your needs, a process we explained earlier in the section entitled &#147;Recompiling a Kernel.&#148; In step 2 of that process, you&#146;ll be asked to specify components that you&#146;ll need. There will be a line in that process requiring a positive response from you:</P>

<!-- CODE SNIP //-->

<PRE>

     Sound card support (CONFIG_SOUND) [M/n/y/?]

</PRE>

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

<P>You&#146;ll answer <B>y</B> (for <I>yes</I>).</P>

<P>After that process is completed, another configuration script will be run, going through a list of sound cards and asking you to specify your sound card. The questions are very specific; you&#146;ll be asked about every sound board listed in Chapter 1, so be patient and wait for your sound board to be listed.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>WARNING:&nbsp;&nbsp;</B>Be careful about sound cards that are advertised as being &#147;compatible&#148; with popular sound cards, such as the SoundBlaster from Creative Labs. <I>Compatibility</I> can mean two different things: One level of compatibility means that the hardware is exactly the same as a popular model, while the other means that a computer can be tricked, usually with special drivers, to think that it&#146;s using a clone instead of the popular model. In the second case, these special drivers run under DOS or Windows and will be worthless under Linux.<HR></FONT>

</BLOCKQUOTE>

<P>After saying <B>yes</B> to a specific sound card, you may be asked about your sound card and where it&#146;s actually found on the computer system, meaning the I/O address, IRQ, and DMA. (If you don&#146;t know this, you better start reading the documentation.) You may also be asked to supply a file used to initialize the card; this information will be incorporated into the kernel. These files should be found on installation diskettes that ship with your sound card.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="103-106.html">Previous</A></TD>

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

<TD><A HREF="109-110.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 + -