home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / tcphints.faq < prev    next >
Text File  |  1995-03-26  |  15KB  |  360 lines

  1. @BEGIN
  2.  
  3. Getting the Most out of your Internet Access Kit (IAK), V 1.5
  4. -------------------------------------------------------------
  5.                            by Matthew S. Staben
  6.                               mstaben@us.net
  7.                                   3-22-95
  8.  
  9. OS/2 Warp (3.0) provides a hacked subset of the TCP/IP 2.0 package
  10. available for purchase.  This subset is known as the Warp Internet
  11. Access Kit (IAK).  It includes utilities allowing a user to read
  12. and post to newsgroups, utilize electronic mail, and much more.
  13.  
  14. This article is designed to help the user get on-line with as
  15. little difficulty as possible -- and suggests replacement programs
  16. which are quite useful, either as a supplement to IBM's programs or
  17. a replacement.  The supplementary programs are: 
  18.  
  19.      TIN 1.22,      a newsreader that can be set up as a NNTP
  20.                     (on-line, real-time) newsreader.  TIN 1.22 is
  21.                     a Unix port which behaves in exactly the same
  22.                     manner as TIN does on other operating systems.
  23.  
  24.      ELM 2.3,       a mail reader that can even spool off mailing
  25.                     into the background so when sending those
  26.                     700,000 byte UUENCODED segments -- it doesn't
  27.                     interfere with reading the rest of, or
  28.                     replying to other pieces of mail.  ELM is also
  29.                     a Unix port, and utilizes the POP protocol
  30.                     which will require a client.  This document
  31.                     describes the setup of the POP client as well.
  32.  
  33. Before you begin, you must have installed the Internet Access Kit
  34. or the TCP/IP 2.0 package, and have obtained the following files:
  35.  
  36.      TIN122.ZIP     Unix port of the TIN newsreader.
  37.      ELM23-2.ZIP    Unix port of the ELM mail program.
  38.      POPCL221.ZIP   Allows one to set up a POP client for ELM.
  39.  
  40.      DO NOT USE POPCL221A.ZIP, until you are comfortable with the
  41.      version contained in POPCL221.ZIP.
  42.  
  43.      PPPFK101.ZIP   PPP fake, pretends to be the dialer.
  44.      EMXRT.ZIP      The EMX runtime files.  You may already have
  45.                     them.
  46.  
  47.           These files are available by ftp'ing hobbes.nmsu.edu or
  48.           ftp-os2.cdrom.com.
  49.  
  50. You must also have obtained the PPP Gamma update from IBM.  This
  51. file can be installed automatically by use of the Software Updates
  52. ICON or, while connected to your provider; from the command prompt
  53. type "UPDATES -H UPDATES.GOPHER.IBM.COM".  Even if you do not
  54. intend to use PPP, this update provides a better SLIP interface as
  55. well.
  56.  
  57.           * NOTE:  When UNZIPPING files, always unzip
  58.           with directories.  InfoZIP's UNZIP utility
  59.           does not require any parameters, but PKUNZIP
  60.           requires that the -d parameter be supplied. 
  61.           You MUST use HPFS partitions for both TIN and
  62.           ELM as long filenames are used, as well as the
  63.           temporary directory to where you unzip these
  64.           files.  The reason for this is that TIN and
  65.           ELM are ports from the Unix operating system
  66.           which utilizes long filenames.  DOS is
  67.           incapable of handling this type of filename. 
  68.           Additionally, you cannot use the DOS version
  69.           of PKUNZIP -- you must use OS/2's because of
  70.           long filename compatibility.
  71.  
  72.  
  73. Step 1: Installing the EMX Dynamic Link Libraries
  74.  
  75. The first step which must be taken is to set up the EMX DLLs. The
  76. EMX library is continuously updated, so even if you already have
  77. one version in your environment -- you should get the latest
  78. version and replace the one you have each time you install software
  79. requiring the EMX DLLs.  If you have never installed the EMX DLLs,
  80. you must first provide a permanent location for them as follows:
  81.  
  82. Unzip the ELM23-2.ZIP file which you obtained into its own,
  83. permanent directory.  Remember to use the -d option if you are
  84. using PKWare's PKUNZIP utility.  This will break out several files.
  85. For example, following the following sequence might be usable:
  86.  
  87.          [H:\] md ELM23
  88.          [H:\EMX] cd ELM23
  89.          [H:\EMX] PKUNZIP2 -d E:\HA5\FILES\EMXRT.ZIP
  90.  
  91. CONFIG.SYS will then need to have the EMX path appended to the SET
  92. PATH statement.  In this case, add <;H:\EMX\BIN> while omitting the
  93. brackets.  It is important to remember the location of your EMX
  94. DLLs as they it will be needed again to complete step 3.
  95.  
  96. While still modifying the CONFIG.SYS files, you can place remark
  97. (REM) statements in front of several of the DOS drivers if you
  98. don't plan on using Windows or DOS software to access the Internet.
  99. If not, then loading them on startup is a waste of memory.  This is
  100. done by remarking out the significant lines:
  101.  
  102.      rem DEVICE=h:\tcpip\bin\vdostcp.vdd 
  103.      rem DEVICE=h:\tcpip\bin\vdostcp.sys 
  104.      rem RUN=h:\tcpip\bin\vdosctl.exe     
  105.  
  106. Even if you do so now, you can always remove the REMark statements
  107. and the drivers will load the next time you boot your machine.
  108.  
  109.  
  110. Step 2:  Install TIN 1.22
  111.  
  112. Unzip the TIN122.ZIP file which you obtained into its own,
  113. temporary directory.  Remember to use the -d option if you are
  114. using PKWare's PKUNZIP utility.  This will break out several files.
  115.  
  116.      delete README.OS2, or store it in another location.
  117.      delete TCPIPDLL.ZIP.
  118.      rename TIN.EXE to RTIN.EXE.   By doing this, you are causing
  119.                                    TIN 1.22 to use NNTP
  120.                                    news-server mode.  See
  121.                                    README.OS2 for more
  122.                                    information.
  123.  
  124.         create TIN.CMD -- Here's mine.
  125.         ----------------BEGIN----------------
  126.         @echo off
  127.         set USER=mstaben
  128.         set REALNAME=Matthew S. Staben
  129.         set HOME=H:/tcpip/home
  130.         set TMP=H:/tcpip/tmp
  131.         set NNTPSERVER=news.us.net
  132.         set HOSTNAME=usnet.us.net
  133.         set TIN_SPOOLDIR=H:/TCPIP/TIN
  134.         set TIN_LIBDIR=H:/TCPIP/TIN
  135.         set TIN_NOVROOTDIR=H:/TCPIP/TIN
  136.         set LINES=25                  // WANT 50 lines?
  137.         set COLS=80
  138.         rem MODE CO80,25              // YOU CAN SET YOUR VIDEO
  139.         set EDITOR=T32.EXE            // TO YOUR PREFERENCE
  140.         set VISUAL=T32.EXE
  141.         RTIN
  142.         -----------------END-----------------
  143.  
  144. You may have noticed that I use the T32.EXE program as my editor.
  145. If this field is left blank, the default editor (EPM.EXE) will be
  146. used.  Copy all three of the remaining files, RTIN.EXE, TIN.CMD, to
  147. the \TCPIP\BIN directory.  TIN.MAN can be copied to your manuals
  148. directory, deleted, or saved along with the other files.  Delete
  149. the files (copy source) and remove the temporary directory.  TIN
  150. 1.22 is now installed.
  151.  
  152. Step 3:  Install ELM 2.3
  153.  
  154. Unzip the ELM23-2.ZIP file which you obtained into its own,
  155. permanent directory.  Remember to use the -d option if you are
  156. using PKWare's PKUNZIP utility.  This will break out several files. 
  157. Unlike the TIN installation, there are many files including source
  158. code which is unnecessary for our purposes.  In fact, for this
  159. installation, only the files contained in the BIN directory and the
  160. DOC directory will be used.  You may delete all other files and
  161. their associated directories without adverse effect.  For example,
  162. following the following sequence might be usable:
  163.  
  164.          [H:\TCPIP] md ELM23
  165.          [H:\TCPIP] cd ELM23
  166.          [H:\TCPIP\ELM23] PKUNZIP2 -d E:\HA5\FILES\ELM23-2
  167.          [H:\TCPIP\ELM23] cd BIN
  168.          [H:\TCPIP\ELM23\BIN]
  169.  
  170. In the BIN directory, along with other files, is a file named
  171. ELM-TCP.RC.  This file is the resource file for ELM and contains
  172. the basic setup of ELM and needs to be changed as I did mine.
  173. Comments are preceded with a pound (#) sign and do not need to be
  174. removed.
  175.  
  176.          ----------------BEGIN----------------
  177.          Rmail=sendmail
  178.          Options=background
  179.          NodeName=mstaben
  180.          Domain=us.net
  181.          FromDomain=us.net
  182.          ReplyTo=mstaben@us.net
  183.          ConfDir=H:/tcpip/etc
  184.          MailDir=H:/tcpip/mail
  185.          TempDir=H:/tcpip/tmp
  186.          Mailbox=mstaben
  187.          Name=Matthew S. Staben
  188.          Home=H:/tcpip/home
  189.          Editor=T32.EXE %s
  190.          Pager=T32.EXE %s
  191.          -----------------END-----------------
  192.  
  193. CONFIG.SYS must be updated to contain the following lines:
  194.  
  195.          ----------------BEGIN----------------
  196.          SET HOSTNAME=usnet.us.net
  197.          SET TERM=mono
  198.          SET TERMCAP=H:\EMX\ETC\TERMCAP.DAT
  199.          SET UUPCSYSRC=H:\TCPIP\ELM\BIN\ELM-TCP.RC
  200.          SET UUPCUSRRC=H:\TCPIP\ELM\BIN\ELM-TCP.RC
  201.          -----------------END-----------------
  202.  
  203. Note the SET TERMCAP setting above.  This path should reflect the
  204. path used when installing the EMX DLLs as described in step one (1)
  205. of this document.
  206.  
  207. Additionally, CONFIG.SYS needs to have the path appended to the SET
  208. PATH statement.  In this case, add <;H:\TCPIP\ELM\BIN> while
  209. omitting the brackets.  Please note that the EMX runtime DLL's set
  210. by the SET TERMCAP label may differ for your installation. Please
  211. refer to step 1 in this document.  ELM requires that a file,
  212. SENDMAIL.CF, exist.  Unfortunately, the IAK supplies this file as
  213. SENDMAIL.UML to work with Ultimail lite.  SENDMAIL.UML should be
  214. copied to SENDMAIL.CF, and can be found in your \TCPIP\ETC
  215. directory.  Once copied, it will need to be modified through use
  216. of, and only of, the "E.EXE" editor.  The relevant lines are shown
  217. with my changes.  Following the DV, the mail server's relay should
  218. be named.  Following the DH, the domain name of the mail hub should
  219. be used.  My mail server is actually "mail.us.net" and is broken
  220. into two here. 
  221.  
  222. (( The E.EXE editor does not expand tabs, as other editors do. ))
  223.  
  224.         ----------------BEGIN----------------
  225.         # The unqualified (domain-less) name of the mail relay
  226.         DVmail
  227.         # The fully-qualified domain name of the mail hub
  228.         DHus.net
  229.         # Version # of this file
  230.         DZ1.0um
  231.         -----------------END-----------------
  232.  
  233. When this is complete, your installation of ELM is complete except
  234. for the POP client which serves as the mail grabber -- in that it
  235. repeatedly checks the POP server on the mail relay for incoming
  236. mail and downloads it to the remote location.  ELM then notices
  237. that this mail has arrived and updates its screen. 
  238.  
  239.  
  240. Step 4:  Install the POP Client
  241.  
  242. Unzip the POPCL221.ZIP file which you obtained into its own,
  243. temporary directory.  Remember to use the -d option if you are
  244. using PKWare's PKUNZIP utility.  This will break out several files. 
  245.  
  246. Edit the POPCLID.CMD file on the relevant lines, as I've done here. 
  247. It doesn't matter which editor you use.  Again, the settings should
  248. be tailored to your particular Internet provider: 
  249.  
  250.         ----------------BEGIN----------------
  251.         host = 'us.net'
  252.         loginname = 'mstaben'
  253.         password = 'dontwork'
  254.         delay = 120
  255.  
  256.         mda_path = 'filter.exe'
  257.         mda_args = '-v -u mstaben'
  258.         -----------------END-----------------
  259.  
  260. And then, you should copy POPCLIENT.EXE, POPCLID.CMD, LAMAILER.CMD
  261. to the \TCPIP\BIN directory.
  262.  
  263.  
  264. Step 5:  Set up your Dialer.
  265.  
  266. The Internet Access Kit (IAK) offers two methods of accessing the
  267. Internet.  You can purchase access through IBM's advantis network,
  268. which is a costly but easy way to get started, or you can get
  269. access through one of many other access providers.  Either way,
  270. both methods of accessing the Internet utilize underlying
  271. command-line files which handle the grunt work.  In the file,
  272. PPPFK101.ZIP are two replacement files, SLIP.EXE and PPP.EXE
  273. (depending on your connect option) which temporarily replace the
  274. original SLIP or PPP executable and write the received parameters
  275. out to a file so that the command-line executable can be used
  276. without the graphical front end.  So, assuming a working connection
  277. already exists, you can unzip the PPPFK101.ZIP file and follow the
  278. instructions.  They are straightforward -- except they do not
  279. mention where the files it creates will be placed.  I found mine in
  280. the root directory of the [C:\] directory. 
  281. Even if you do not wish to use the faker package, I have included
  282. the necessary listing of parameters so that you may simply cut it
  283. out and use it as a batch file.  It is in fact, the .CMD file I use
  284. to dial out.  Where the comment ((SAME LINE)), simply have the
  285. information given all on one single line with no carriage returns. 
  286. The .CMD file below will redial if the line is busy, no answer, or
  287. the connection is lost during connect.  It will exit if either
  288. SLIPKILL, PPPKILL, or the CONTROL-C option is used to terminate the
  289. connection. 
  290.  
  291. ** NOTE:  The only change I made was to change my password to
  292.           "dontknow," and the phone number.  This command file will
  293.           also redial if there is no answer or busy, a very handy
  294.           ability.  I also placed this .CMD file in H:\TCPIP\BIN as
  295.           I did everything else. 
  296.  
  297. ----------------BEGIN----------------
  298. :begin
  299. rem
  300. rem THIS IS THE SLIP.EXE PARAMETER LISTING
  301. rem slip.exe -p3 -hangup ath -com2 -speed 57600 -mtu 1006
  302. rem -nocfg -exit 0 -notify -rtscts -idle 120 -connect       
  303. rem "h:\tcpip\bin\usnet.cmd atdt3018471102 mstaben dontknow"
  304. rem
  305. REM ** BEGINNING HERE, PLACE ALL PARAMETERS ON ONE LINE **
  306. ppp.exe com2 57600 mru 1500 rtscts modem defaultroute
  307. netmask 255.255.0.0 priority 1 notify exit user mstaben      
  308. name mstaben secret dontknow -vj idle 120 connect "slattach  
  309. ATZ OK AT&C1&D2&K3&Q5S11=55S95=47 OK ATDT301-555-1212 NNECT  
  310. \r login: mstaben ssword: dontknow usnet ppp\r"           
  311. REM ** THE ABOVE SHOULD BE ONE SINGLE LINE **   
  312. if errorlevel 4 goto 4
  313. if errorlevel 3 goto 3
  314. if errorlevel 2 goto 2
  315. if errorlevel 1 goto 1
  316. if errorlevel 0 goto 0
  317. echo NONE
  318. goto exit
  319. :0
  320. echo LOST CONNECTION
  321. goto exit
  322. :1
  323. echo BUSY/FAILED DIAL
  324. goto begin
  325. :2
  326. echo TWO
  327. goto exit
  328. :3
  329. echo THREE
  330. goto exit
  331. :4
  332. echo NORMAL EXIT BY KEY
  333. goto exit
  334. :exit
  335. -----------------END-----------------
  336.  
  337. Step 6:  Make your directories.
  338.  
  339. For the last, and most simple step, you need to make the
  340. directories that ELM and TIN will need.  These are the:
  341.  
  342.         H:\TCPIP\TMP
  343.         H:\TCPIP\HOME
  344.         H:\TCPIP\MAIL
  345.         H:\TCPIP\HOME\.TIN              (yes, that's a DOT)
  346.         H:\TCPIP\HOME\ELM
  347.  
  348. The signature file can be placed here, as .signature and signature,
  349. one for each of the packages.
  350.  
  351.  
  352. GOOD LUCK, and HAPPY SURFING!  If you have any questions, please
  353. feel free to contact me at mstaben@us.net.  I check my mail every
  354. time I walk up to the computer (by starting STARTPPP.CMD which
  355. starts the dialer, ELM 2.3, and POPCLIENT).  I can also be reached
  356. at 11MSTABEN@GALLUA.GALLAUDET.EDU.  This mailbox is checked more
  357. frequently.
  358.  
  359. @END
  360.