The instructions contained here are not guaranteed to work for all versions of Linux. They are only a guideline for setting up basic connectivity to IDT with an unsupported operating system. ---------------------------------------------------------------------------------------------------------------------- LINUX DOES NOT SUPPORT "SOFT MODEMS" IF YOU HAVE A WINMODEM, HCF MODEM, HSP MODEM, RPI MODEM, MWAVE MODEM IT WON'T WORK WITH LINUX. A few distributions have Helper Utilities to create Internet Connections. These can be used, if available, to expedite your connection to the Internet. Some Helper Utilities you can use to get connected include: SlackWare --- pppsetup Type ppppsetup at a command prompt. RedHat --- netconf Type netconf at a command prompt. When starting these programs, they will ask you for some specific information. You will need 1. Your local access number, which is available at http://webapps.idt.net:9998/register/plsql/pop_req_logon 2. a. The IDT Domain and Nameservers Primary DNS - 198.4.75.100 Secondary DNS - 198.4.75.69 The domain is - idt.net 2. b. The IDT IP address. IDT dynamically assigns an IP address 3. Your userID and password ------------------------------------------------------------------------------------------------------------------ For setting up PPP login as root. First and foremost you must have PPP compiled in your kernel. Although it is possible to have PPP compiled as a module its not very efficient to have this done. When your Linux box boots up you should see a message similar to the following: Apr 23 08:09:35 kernel: PPP: version 2.2.0 (dynamic channel allocation) Apr 23 08:09:35 kernel: TCP compression code copyright 1989 Regents of t he University of California Apr 23 08:09:35 kernel: PPP Dynamic channel allocation code copyright 19 95 Caldera, Inc. Apr 23 08:09:35 kernel: PPP line discipline registered. 1. The Modem The /dev directory in Linux is where we must begin for the correct setup of the modem. Type the following command: (lines begging with ~# are command line arguments) ~# ls -la /dev/cua* crw-rw---- 1 root uucp 5, 64 Apr 23 08:20 cua0 crw-rw---- 1 root uucp 5, 65 Jul 17 1994 cua1 crw-r----- 1 root uucp 5, 66 Jul 17 1994 cua2 crw-r----- 1 root uucp 5, 67 Jul 17 1994 cua3 This shows the directory listing for the 4 serial ports. Modem ports. If your modem is: It will be in: DOS(Windows) Linux com1 cua0 com2 cua1 com3 cua2 com4 cua3 If you don't know which port your modem is on type: ~# echo atdt5551212 > /dev/cua0 At this point you should hear the modem dial. Explore each port until you find the correct port the modem is on. If none of the ports dial out either you have a winmodem or you should contact you modem vendor for any necessary drivers for that modem. Winmodems are very popular but are not compatible with Linux. In this example we will have cua0 as a v.90 modem. Now as root you want to give permissions to normal users so they can access the modem. ~# chmod 666 /dev/cua0 This gives read,write permissions to all users on the system. Most Linux distributions suggest that you create a symbolic link for your modem. To create this link type: ~# ln -s /dev/cua0 /dev/modem This command creates a file as listed below in the /dev directory lrwxrwxrwx 1 root root 4 Apr 14 16:32 modem -> cua0 2. Basic PPP Setup for a generic Linux distribution Lets first set the permissions for the PPP daemon (administrative dialer software) . Type this command ~# ls -al /usr/sbin/PPP* lrwxrwxrwx 1 root root 5 Apr 7 18:02 pppd -> pppd1 -rws--x--x 1 root root 81832 Apr 7 21:58 pppd-2.2 -rws--x--x 1 root root 298964 May 14 1998 pppd1 In this example I want to allow anyone to be able to access the software, so I issue the command: ~# chmod 4711 /usr/sbin/pppd-2.2 To create the following setup files use a text editor such as "pico". For instruction on these editors type: ~# man pico You will need the following files setup. /etc/HOSTNAME # /etc/host.conf # /etc/hosts # /etc/hosts.allow # /etc/hosts.deny # /etc/options # /etc/resolv.conf # /etc/PPP/pap-secrets # /etc/PPP/pppscript # /usr/sbin/pppmspg # --Lines beginning with the # sign are ignored by Linux. ------------------------------------------------------------------------------ /etc/HOSTNAME ------------------------------------------------------------------------------ endor # This will be the name of your machine and can be anything ------------------------------------------------------------------------------ /etc/host.conf ------------------------------------------------------------------------------ order hosts, bind multi on ------------------------------------------------------------------------------ /etc/hosts ------------------------------------------------------------------------------ 127.0.0.1 localhost endor #endor is just a name of the machine. #it can be anything you want ------------------------------------------------------------------------------ /etc/hosts.allow ------------------------------------------------------------------------------ ALL: LOCAL ALL: ding. ------------------------------------------------------------------------------ /etc/hosts.deny ------------------------------------------------------------------------------ # The following line blocks everyone not listed in /etc/hosts.allow from # being able to "see" your machine. ALL: ALL ------------------------------------------------------------------------------ /etc/resolv.conf ------------------------------------------------------------------------------ nameserver 198.4.75.100 # These are the IDT nameservers nameserver 198.4.75.69 search idt.net # This setting allows you to just type www or ftp # to get the IDT specific services :) ------------------------------------------------------------------------------ /etc/PPP/options ------------------------------------------------------------------------------ lock defaultroute noipdefault modem /dev/modem 115200 # This will set the port speed of the modem # usually 115200 or 57600 for v.90 or X2 modems # 38400 for 28.8k or 33.6k modems # 19200 for 14.4k modems crtscts debug passive asyncmap 0 name "username" # You must type your username in the correct case. It's case sensitive ------------------------------------------------------------------------------ /etc/PPP/pap-secrets ------------------------------------------------------------------------------ # PAP authentication file: /etc/PPP/pap-secrets # This file should have a permission of 600. # ~# chmod 600 /etc/PPP/pap-secrets # Username Server Password IP addresses "ppp username" * "password" # Your username and password must be in the correct case. IT'S CASE SENSITIVE ------------------------------------------------------------------------------ /etc/PPP/pppscript ------------------------------------------------------------------------------ TIMEOUT 60 ABORT ERROR ABORT BUSY ABORT "NO CARRIER" ABORT "NO DIALTONE" "" "AT&F1" OK "atdt9960976" # Find your local access number at: TIMEOUT 75 # http://webapps.idt.net:9998/register/plsql/pop_req_logon CONNECT ------------------------------------------------------------------------------ /usr/sbin/pppmspg ------------------------------------------------------------------------------ #!/bin/bash # kills other PPP processes killall -INT pppd 2>/dev/null # removes any PPP related lock rm -f /var/lock/LCK* /var/run/PPP*.pid # this is our actual dialer for IDT /usr/sbin/pppd connect "/usr/sbin/chat -v -f /etc/PPP/pppscript" & ------------------------------------------------------------------------------ /usr/sbin/pppdown ------------------------------------------------------------------------------ kill -INT `cat /var/run/$DEVICE.pid` After creating these files issue the command: ~# chmod 711 /usr/sbin/pppmspg ~# chmod 711 /usr/sbin/pppdown To connect to IDT, just type $ pppmspg To disconnect type $ pppdown