Complete Idiot's Guide to Linux:Accessing the Network
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg) {
var end = document.cookie.indexOf (";", j);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(j, end));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
var m1='';
var gifstr=GetCookie("UsrType");
if((gifstr!=0 ) && (gifstr!=null)) { m2=gifstr; }
document.write(m1+m2+m3);
Keyword
Title
Author
ISBN
Publisher
Imprint
Brief
Full
Advanced Search
Search Tips
Please Select
-----------
Components
Content Mgt
Certification
Databases
Enterprise Mgt
Fun/Games
Groupware
Hardware
IBM Redbooks
Intranet Dev
Middleware
Multimedia
Networks
OS
Prod Apps
Programming
Security
UI
Web Services
Webmaster
Y2K
-----------
New Titles
-----------
Free Archive
To access the contents, click the chapter and section titles.
Complete Idiot's Guide to Linux
(Publisher: Macmillan Computer Publishing)
Author(s): Manuel Ricart
ISBN: 078971826x
Publication Date: 12/22/98
function isIE4()
{
return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)=='4') );
}
function bookMarkit()
{
var url="../../../../../www.itknowledge.com/PSUser/EWBookMarks.html@url="+window.location+"&isbn=0";
parent.location.href=url;
//var win = window.open(url,"myitk");
//if(!isIE4())
// win.focus();
}
Search this book:
Previous
Table of Contents
Next
Configuring the Modem Device
After you have an account configured, youll have to identify your modem device to kppp. Youll need to go over your original notes identifying the COM port your modem uses under Windows. As an alternative, you can always try the four COM settings until you get it to work. To enable use of your modem as /dev/modem, youll need to use lisa (see Chapter 21) or simply create a link from the /dev/ttySx to /dev/modem (see Chapter 12, Working with Files on the Shell).
The modem devices are found under /dev/ttySx, where x is a number from 0 to 3. The various /dev/ttySx devices are mapped to the various COM ports. Table 8.1 shows a list of them.
Table 8.1 Device to COM Port Mappings
Modem Devices
COM Ports
/dev/ttyS0
COM1
/dev/ttyS1
COM2
/dev/ttyS2
COM3
/dev/ttyS3
COM4
Setting up the Modem Device with the kppp panel.
To configure your modem device, the following options must be set.
Modem DeviceSelect the device representing your; see Table 8.1.
Flow ControlChoose CRTSCTS to enable hardware flow control.
Line TerminationSelect CR/LF line termination.
Connection SpeedSelect a speed appropriate for your modem. Those using 14.4 kbps modems should select 57600 bps. Users with faster modems should select 115200 bps. If your modem experiences problems at the speed you select, you can lower it later.
Modem Lock FileSpecifies where the lock file will be placed; leave it as it is. If you try to fire up another connection and this file is found, kppp will check to see if the process owning the file exists. If it does, it will tell you that the modem is busy.
Modem TimeoutSpecifies how long to wait until giving up. Leave the 60 second defaults.
Debugging the Connection
If you have followed this far, your configuration should be ready for testing. Click OK at the bottom of the kppp Configuration window to accept your configuration changes. In the kppp window, select your provider, and check the Show Log Window option. This will display a window that shows you the information received from your ISP and the information sent by your computer or script. This tool is invaluable to see problem spots in your login scripts (see the next two figures).
PAP is used by most ISPs, as this is the default authentication scheme for Windows-powered machines.
Testing the connection.
The debug window displays the information sent and received by your modem.
Connecting via Your Local Network
If access to the Internet is just across a network wire and your hardware was properly configured at install time, your network card should already be operational. The one thing you need to add is information about your DNS servers. DNS servers map machine names such as www.netscape.com to an IP address such as 207.200.73.73. Without DNS server entries, the only way for you to access a computer on the network is to know its IP!
Connecting to the Internet through your local network does not use the PPP, as discussed in earlier in the section.
To search DNS servers, youll need to edit the file called /etc/resolv.conf. As you would expect, this file should be edited while having superuser privileges (root). Alternatively you can use lisa. (See Chapter 24 to define these network settings. Sometimes, editing the file directly is simpler and faster.)
In this file, youll specify the IP addresses of your name servers as provided by your network administrator. My /etc/resolv.conf looks like this:
domain execpc.com
nameserver 165.207.1.3
nameserver 204.29.202.6
The keyword domain specifies the domain name for your network. The nameserver keyword specifies the IP addresses for DNS servers to search when resolving a name to its IP.
After you edit the file, you should be able to use any of your programs to access the network, provided your network hardware was properly configured at install time. If it wasnt, youll have to use lisa(see Chapter 21) to configure your network card and router (gateway) information.
Previous
Table of Contents
Next
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited.
Wyszukiwarka
Podobne podstrony:
088 092088 092092 Sanders Glenda Doktor Hunk092 93085 088088 COURT085 088086 0882 4 Układy hybrydoweid 088v 03 088087 092 zzhjfir6ptmapevkxbqtgyde3cqjmuka5gvkrua083 092088 089085 088088 89więcej podobnych podstron