home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / share / doc / pppsetup.txt < prev    next >
Encoding:
Text File  |  2001-06-12  |  5.4 KB  |  188 lines

  1. Installation of pppsetup!
  2. ------------------------------
  3.  
  4. To install the compiled ppp, run 'make install'.
  5.  
  6. To compile ppp.c run 'make clean' 'make', then 'make install' as root.
  7.  
  8. Now run 'ppp -s' as root and answer the four questions, login
  9. name, password, isp phone number, and modem device.
  10.  
  11. You'll be asked where your modem device is, answer
  12. ttyS[0-3].
  13.  
  14. ttyS0 = com1 under dos
  15. ttyS1 = com2 under dos
  16. ttyS2 = com3 under dos
  17. ttyS3 = com4 under dos
  18.  
  19. The files created when you run 'ppp -s' are '/etc/ppp/options,
  20. chat-script, pap-secrets, chap-secrets, and ip-up.
  21.  
  22. You should have a recent version of pppd v2.3.8 or later
  23. in /usr/sbin.
  24.  
  25. # pppd --version
  26. pppd version 2.4.0
  27.  
  28. There's a 'usepeerdns' option in /etc/ppp/options that tells pppd 
  29. to try and get a dns ip address from your service provider when it 
  30. connects, then /etc/ppp/ip-up puts it in /etc/resolv.conf.  
  31.   
  32. If this doesn't work for whatever reason, remove the 'usepeerdns'  
  33. option and put a ip address of your choice in /etc/resolv.conf.  
  34.   
  35. nameserver 205.252.116.61   <For example>  
  36.   
  37. If something in the above files is not correct you can change it 
  38. by hand, or run 'ppp -s' again.  
  39.  
  40. # ppp -h <For help!>
  41.  
  42. Run 'ppp -c' to connect and 'ppp -d' to disconnect.
  43.  
  44. When you run 'ppp -c' you'll be droped back to #, you'll hear  
  45. the modem dialing, in about 30 seconds you should see a local  
  46. and remote ip address printed to the screen, like this below.  
  47.   
  48. 205.115.312.56 > 216.324.119.81 ppp0  
  49.   
  50. If you don't make the ppp connection take a look at the  
  51. /var/log/messages and debug files, they should have a  
  52. record of the attempted ppp connection.  
  53.   
  54. Sample /var/log/messages file.  
  55.   
  56. pppd[562]: Serial connection established.  
  57. pppd[562]: Using interface ppp0  
  58. pppd[562]: Connect: ppp0 <--> /dev/ttyS1  
  59. pppd[562]: local IP address 215.87.78.18  
  60. pppd[562]: remote IP address 205.94.97.35  
  61.   
  62. You don't have a successful ppp connection until you  
  63. receive a local & remote ip address like above.  
  64.   
  65. If you have the x window system you can connect in a xterm.  
  66.   
  67. # startx  
  68. # ppp -c  
  69. # netscape  
  70.   
  71. If you run 'ppp -c' in x windows you'll see the local & remote ip  
  72. address printed in a little xmessage box, if you have /usr/X11R6/  
  73. bin/xmessage.  
  74.   
  75. You can run 'ifconfig' anytime to see if you're ppp connected. 
  76.  
  77. # ifconfig  
  78.   
  79. You should see something like this if you're ppp connected.  
  80.   
  81. ppp0   Link encap:Point-to-Point Protocol  
  82.        inet addr:105.207.127.86  P-t-P:205.252.116.61  Mask:255.0.0.0  
  83.  
  84. Linux has some support for winmodems. 
  85.  
  86. If you have a winmodem that has a LUCENT chipset you might 
  87. be able to get it working on linux, you have to get the 
  88. "ltmodem-5.99b.tar.gz" or later package, see below.
  89.  
  90. You can try this to see if you have a lucent winmodem.
  91.  
  92. # cat /proc/pci   
  93.  
  94. ATTENTION! You may not have a /proc/pci, recent kernels 2.2 or
  95. later don't have a /proc/pci unless it's asked for when the 
  96. kernel is configured.
  97.  
  98. If you see something like this you probably have a lucent modem.
  99.  
  100. PCI devices found:
  101. Bus  0, device  10, function  0:
  102. Communication controller: Lucent (ex-AT&T) Microelectronics L56xMF (rev1).
  103. Medium devsel.  Fast back-to-back capable.  IRQ 5.  Master Capable.  
  104. No bursts.  Min Gnt=252.Max Lat=14.
  105. Non-prefetchable 32 bit memory at 0xe6000000 [0xe6000000].
  106. I/O at 0xe800 [0xe801].
  107. I/O at 0xec00 [0xec01].
  108.  
  109. You can use lspci from the pciutils package to list any
  110. pci devices, if you don't have /proc/pci.
  111.  
  112. # lspci -vv
  113.  
  114. You can get the lucent winmodem driver here.
  115.  
  116. http://walbran.org/sean/linux/stodolsk  
  117. http://www.physcip.uni-stuttgart.de/heby/ltmodem "ltmodem-5.99b.tar.gz"
  118.  
  119. # tar xzvf ltmodem-5.99b.tar.gz   "Extract it!" 
  120.  
  121. You should have the kernel source in /usr/src/linux, if you're 
  122. running a 2.2.19 kernel it should be the 2.2.19 source etc.
  123.  
  124. If you don't have /usr/src/linux/include/linux/autoconf.h or
  125. version.h, do this.
  126.  
  127. /usr/src/linux# make oldconfig 
  128. /usr/src/linux# make include/linux/version.h
  129.  
  130. ltmodem-5.99b# ./build_module     "Compile it!"
  131. ltmodem-5.99b# ./ltinst2          "Run this script to install it!"
  132.              # ./autoload
  133.  
  134. Have this line in your /etc/modules.conf or conf.modules file.
  135. path=/lib/modules/`uname -r`
  136.             
  137. # depmod -a           "You only need to do this once!"
  138.  
  139. # modprobe lt_modem   "Load the module!"
  140.  
  141. Run setserial and see if your lucent modem is detected, using
  142. the first I/O above for the port and IRQ 5 for irq.
  143.  
  144. # setserial -v /dev/ttyLT0 uart 16550A port 0xe800 irq 5 
  145.  
  146. Linux does support (p)lug (n) (p)lay modems, but you may need help 
  147. from 'isapnptools' to get your pnp modem working properly on linux.
  148.  
  149. You can get a compiled version of isapnptools from here. 
  150.  
  151. ftp://ibiblio.org/pub/Linux/system/hardware
  152. isapnptools-1.24.bin.tgz
  153.  
  154. http://www.roestock.demon.co.uk/isapnptools   <Home page>
  155.  
  156. This is the first thing you have to do.
  157.  
  158. # pnpdump -c > /etc/isapnp.conf
  159.  
  160. Take a look at /etc/isapnp.conf to see if your pnp modem was found, and
  161. what IRQ etc. it was found on.
  162.  
  163. # man isapnp        <Man pages for the isapnptools package>
  164. # man isapnp.conf   <You have to read this to know how to configure
  165. # man pnpdump        the /etc/isapnp.conf file>
  166.  
  167. # isapnp /etc/isapnp.conf   <After you configured the /etc/isapnp.conf 
  168.                              file>
  169.  
  170. Run setserial for your modem to see if it's detected correctly, because
  171. if setserial can't detect your modem correctly then nothing will.
  172.  
  173. # setserial -v /dev/ttyS1 autoconfig
  174.   
  175. /dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
  176.  
  177. End! (6-12-2001) Kent Robotti
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.