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

📄 401-404.html

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

<HEAD>

<TITLE>Linux Configuration and Installation:Linux and the Internet</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=9//-->

<!--PAGES=401-404//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="../ch08/399-400.html">Previous</A></TD>

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

<TD><A HREF="404-407.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 9<BR>Linux and the Internet

</FONT></H2>

<P>This chapter covers:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Linux and the Internet

<DD><B>&#149;</B>&nbsp;&nbsp;SLIP and PPP

<DD><B>&#149;</B>&nbsp;&nbsp;Electronic mail

<DD><B>&#149;</B>&nbsp;&nbsp;The World Wide Web

<DD><B>&#149;</B>&nbsp;&nbsp;Web browsers

<DD><B>&#149;</B>&nbsp;&nbsp;The UUCP commands

<DD><B>&#149;</B>&nbsp;&nbsp;Using FTP

<DD><B>&#149;</B>&nbsp;&nbsp;The <B>telnet</B> command

<DD><B>&#149;</B>&nbsp;&nbsp;Using the Usenet

</DL>

<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Getting on the Worldwide Network</FONT></H3>

<P>The Internet has been the recipient of a ton of hype recently, and with good reason: it&#146;s one of the most exciting developments in the computer world in quite some time. As both a computer user and a Linux user, you&#146;ll greatly benefit from the many possibilities offered by the many offerings of the Internet.

</P>

<P>As a matter of fact, you&#146;ve probably noticed the many references to the Internet throughout the course of this book. It seems as though anyone who wants to do any advanced work with Linux needs a link to the Internet. (As did the authors of this book, who spent much of their time planning this book and coordinating material through electronic mail and the Internet.) Usenet newsgroups&#151;which we cover in Appendix A&#151;as well as great Web sites can certainly enhance your understanding and usage of the Linux operating system.</P>

<P>How you connect to the Internet depends on your specific circumstances, however. If you&#146;re using Linux in a corporation that&#146;s already connected to the Internet, you can merely piggyback from that connection. If you&#146;re working on a stand alone Linux workstation, you can set up your own Internet connection with the aid of an Internet service provider.</P>

<P>Both of these possibilities exist because of Linux&#146;s built-in networking capabilities&#151;namely, TCP/IP, which you learned about in Chapter 8. Basically, this support for TCP/IP allows a Linux user to use another computer on the network. In Chapter 8, the computers on the network were in the same physical location as your computer. On the Internet, the computers on the network can be just about anywhere. (In other words, the Internet is basically the world&#146;s largest TCP/IP network.)</P>

<P>The concept behind TCP/IP networking is actually pretty simple. Each machine on the network has an individual TCP/IP address, and every other machine on the network can access this machine (if only to be denied access, of course; there are some security measures involved if need be). The extent of the network depends on your needs; some companies purposely restrict their TCP/IP networks to a very confined set of machines; other allow full access to the global Internet.</P>

<P>In this chapter, we&#146;ll discuss getting on the Internet using the tools built into Linux.</P>

<H3><A NAME="Heading3"></A><FONT COLOR="#000077">Finding a Window to the Internet</FONT></H3>

<P>If you aren&#146;t connected to the Internet via a direct network connection, you&#146;ll need to make arrangements to do so. There are two ways to do this.

</P>

<P>One method involves piggybacking off of a machine that is directly connected to the Internet. In this manner, you can essentially use the specifics of the connected machine. Connectivity tools that fall under this category include <B>SLiRP</B>, which is run in a remote UNIX shell account and makes it act like a SLIP/CSLIP account. We compiled it on an Ultrix machine and connected to it with DIP. It works great! The source for it is on the CD-ROM in <B>/contrib</B>.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>The <B>term</B> program, which was covered in the first edition of this book, is no longer supported under newer versions of Linux.<HR></FONT>

</BLOCKQUOTE>

<H3><A NAME="Heading4"></A><FONT COLOR="#000077">Linux&#146;s SLIP and PPP Tools</FONT></H3>

<P>If you don&#146;t have a permanent TCP/IP connection to the Internet through work or a friend, you can use Linux&#146;s SLIP and PPP tools to connect to the Internet via an Internet service provider of some sort. SLIP (Serial Line Internet Protocol) and PPP (Point-to-Point Protocol) allow you to connect to another TCP/IP machine.

</P>

<P>To connect to the Internet via SLIP and PPP, your implementation of Linux must first support both protocols. If you installed directly from the CD-ROM, your Linux kernel will indeed support SLIP and PPP; if you look at the screen closely when you boot Linux, you&#146;ll notice that SLIP and PPP will be listed. However, if for some reason you decided to compile your own kernel, then you should have had the foresight to compile in SLIP and PPP support. (You were asked if you wanted support for these protocols as part of the <B>make</B> process.) If not, then you&#146;ll need to go back and compile a new kernel, paying special attention to the Network section of the <B>makefile</B>.</P>

<P>After doing that, you&#146;ll set up an account with a service provider (like Netcom, PSI, GNN, Microsoft Network, or Minnesota Regional Network), which gives you Internet access using a standard modem. When you connect via a service provider, you&#146;ll be assigned an IP address right on the spot; the process yields a <I>dynamically assigned</I> IP address, which is then used by your Linux system to connect to the Internet.</P>

<P>When you set up an account, you should get a list of information from the service provider. Out of this information, you&#146;ll need to know the following:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;The access telephone number&#151;if you don&#146;t have this number, you can&#146;t dial up the service provider.

<DD><B>&#149;</B>&nbsp;&nbsp;The IP numbers of the Domain Name Servers. These are the servers your system looks to when you want to connect to another machine on the Internet. Without these servers, your Linux system would be lost in cyberspace.

<DD><B>&#149;</B>&nbsp;&nbsp;Your username and password.

<DD><B>&#149;</B>&nbsp;&nbsp;The mechanism for logging on the system. This is a little more daunting than it looks, because it seems that every service provider handles dialup connections a little differently. As an example: our service provider uses a standard UNIX-style login procedure, where the entry of a username and a password is followed by a standard UNIX prompt:

<!-- CODE SNIP //-->

<PRE>

  Welcome to the Twin Cities MRNet dialIP Service.

  User Access Verification

  Username:

  Password:

  slip-server&gt; ppp

</PRE>

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

<BR>After entering <B>ppp</B> at the command prompt, the server initiates the PPP protocol with your machine. This is not standard in the ISP world; most initiate the process immediately after you enter your password.

</DL>

<P>Basically, SLIP and PPP do the same thing. However, SLIP (the older of the two protocols) is decreasing in popularity, because PPP (quite honestly) is easier to configure and use. Linux contains the <B>dip</B> command, which handles SLIP connections to a service provider.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="../ch08/399-400.html">Previous</A></TD>

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

<TD><A HREF="404-407.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 + -