-->
Previous | Table of Contents | Next |
This chapter covers:
The Internet has been the recipient of a ton of hype recently, and with good reason: its one of the most exciting developments in the computer world in quite some time. As both a computer user and a Linux user, youll greatly benefit from the many possibilities offered by the many offerings of the Internet.
As a matter of fact, youve 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 newsgroupswhich we cover in Appendix Aas well as great Web sites can certainly enhance your understanding and usage of the Linux operating system.
How you connect to the Internet depends on your specific circumstances, however. If youre using Linux in a corporation thats already connected to the Internet, you can merely piggyback from that connection. If youre working on a stand alone Linux workstation, you can set up your own Internet connection with the aid of an Internet service provider.
Both of these possibilities exist because of Linuxs built-in networking capabilitiesnamely, 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 worlds largest TCP/IP network.)
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.
In this chapter, well discuss getting on the Internet using the tools built into Linux.
If you arent connected to the Internet via a direct network connection, youll need to make arrangements to do so. There are two ways to do this.
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 SLiRP, 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 /contrib.
NOTE: The term program, which was covered in the first edition of this book, is no longer supported under newer versions of Linux.
If you dont have a permanent TCP/IP connection to the Internet through work or a friend, you can use Linuxs 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.
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, youll 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 make process.) If not, then youll need to go back and compile a new kernel, paying special attention to the Network section of the makefile.
After doing that, youll 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, youll be assigned an IP address right on the spot; the process yields a dynamically assigned IP address, which is then used by your Linux system to connect to the Internet.
When you set up an account, you should get a list of information from the service provider. Out of this information, youll need to know the following:
Welcome to the Twin Cities MRNet dialIP Service. User Access Verification Username: Password: slip-server> ppp
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 dip command, which handles SLIP connections to a service provider.
Previous | Table of Contents | Next |