home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / sliphw.zip / sliphw.txt < prev    next >
Text File  |  1995-10-02  |  9KB  |  220 lines

  1. SLIP-HOME-WORK (SLIPHW or SHW) Version 1.0 beta
  2. ------------------------------
  3.  
  4. Bruce L. Clarke (Dept of Chemistry, U of Alberta)
  5. (Bruce.Clarke@UAlberta.CA)
  6. Sept 30, 1995
  7.  
  8. Overview
  9. ========
  10.  
  11. SHW is a collection of Rexx scripts which will do the following:
  12.  
  13. (1) HOMESRVD.CMD: Runs your PC as a SLIP server so a remote machine can log
  14. in. It isn't much use unless your PC is already running daemons like ftpd.
  15. You must run daemons. These programs talk to other machines on the Internet. If
  16. you don't run daemons, other machines cannot interact with your PC, even if you're
  17. on the Internet.
  18.  
  19. (2) HOMESERV.CMD: Runs HOMESRVD to make your home PC as a SLIP server, and
  20. then starts various daemons. HOMESERV.CMD starts an FTP daemon, and the Web
  21. Server GoServe. You should modify HOMESERV.CMD so it runs your favorite
  22. daemons.
  23.  
  24. (3) WORKSRVD.CMD: Runs your work PC as a SLIP server. The package assumes as a
  25. default that the work machine is on the Internet with an Ethernet card. When
  26. another machine connects to the work PC, routing is set up so the other PC can
  27. access the Internet.
  28.  
  29. (4) HOME2WRK.CMD: Connects to your work PC from home. Logs in with password.
  30.  
  31. (5) WORK2HOM.CMD: Connects to your home PC from work. Logs in with password.
  32.  
  33. (6) AUTONETH.CMD: Automates everything on a home PC. Give AUTONETH a list of
  34. jobs to do on the Internet and AUTONETH will connect from home using HOME2WRK,
  35. run each of the jobs, and disconnect from the Internet.
  36.  
  37. (7) AUTONETW.CMD: Same as AUTONETH, but for the machine at work. Runs WORK2HOM.
  38.  
  39. (8) CRONTAB.HW:  This will log onto the Internet every 10 minutes, set your
  40. PC's  clock, and disconnect from the Internet. This will repeat forever. It
  41. requires the Rexx version of CRON, called CRONRGF. (Available as CRONRGF2.ZIP
  42. on most FTP sites) and the time setting program NISTIME.EXE (NISTIME.ZIP).
  43. CRON is a scheduling program that runs jobs at specific times. CRONRFG
  44. consists of 4 Rexx files which must be on your path. Run "cronrgf crontab.hw"
  45. to set your clock every 10 minutes. Modify CRONTAB.HW to do whatever you want
  46. at whatever times you want.
  47.  
  48. The Rexx scripts also have some code that should work if you have a home
  49. Ethernet. The variable "Ethercard" in these scripts is set to 'T' or 'F'
  50. according to whether or not the machine has an Ethernet card. By default the
  51. work machine is assumed to have a card, but the home machine isn't. If you
  52. have a home ethernet, try changing "Ethercard" to T. It may work, but it
  53. probably need some tuning. I haven't tested this. My son took the other
  54. machine on our home Ethernet off to UVic. My home Ethernet isn't functioning
  55. anymore.
  56.  
  57.  
  58. Programs that make up this package
  59. ==================================
  60.  
  61. There are two sets of programs -- those for work and those for home. The
  62. filenames and number of programs are symmetrical. In the file listings below,
  63. I've listed the HOME versions first, and the WORK versions second. The home PC
  64. only needs the home versions. The WORK PC only needs the WORK versions.
  65.  
  66. If you have a Laptop, the HOME PC files will connect to the work machine, but
  67. not the home machine. The WORK PC files will connect to your home machine but
  68. not the work machine. Put the client files for both home and work on the
  69. laptop. Don't bother with the server files.
  70.  
  71. Many files contain Rexx variables at the start which have to be assigned the
  72. values appropriate for your situation. The files which have to be configured
  73. are noted below. I suggest you start with all the files in one directory and
  74. do the configuration. Then copy the configured files to their destinations.
  75.  
  76. HOME PC destinations: All CMD and EXE files can go in \TCPIP\BIN
  77.               Files required: HOMESERV.CMD (home server + daemons)
  78.                       HOME2WRK.CMD (dial work)
  79.                       AUTONETH.CMD (dial work, auto jobs)
  80.                       HOMESRVD.CMD
  81.                       HOMESRV.CMD
  82.                       HOMECLI.CMD
  83.               Optional files (start various daemons)
  84.                       STAFTPD.CMD  (starts FTP daemon)
  85.                       STAGOSRV.CMD (starts GoServ)
  86.               The two *.CFG files go in \TCPIP\ETC
  87.               Files required: HOMESRV.CFG
  88.                       HOMECLI.CFG
  89.  
  90. WORK PC destinations: All CMD and EXE files can go in \TCPIP\BIN
  91.               Files required: WORKSERV.CMD (work server)
  92.                       WORK2HOM.CMD (dial home)
  93.                       AUTONETW.CMD (dial home, auto jobs)
  94.                       WORKSRVD.CMD
  95.                       WORKSRV.CMD
  96.                       WORKCLI.CMD
  97.               The two *.CFG files go in \TCPIP\ETC
  98.               Files required: WORKSRV.CFG
  99.                       WORKCLI.CFG
  100.  
  101. Laptop PC destinations: All CMD and EE files can go in \TCPIP\BIN
  102.               Files required: WORK2HOM.CMD (to dial home)
  103.                       WORKCLI.CMD
  104.                       HOME2WRK.CMD (to dial work)
  105.                       HOMECLI.CMD
  106.               The two *.CFG files go in \TCPIP\ETC
  107.               Files required: HOMECLI.CFG
  108.                       WORKCLI.CFG
  109.  
  110.  
  111. Both the home and work PC's need the following in \TCPIP\BIN or somewhere
  112. else on the path:
  113.                       MODE115.CMD or MODE576.CMD (set speed)
  114.                       SC.CMD             (set color)
  115.                       COLOR.EXE
  116.  
  117.  
  118. Top Level Programs. You run these. This first listing tells you what each does.
  119. -------------------------------------------------------------------------------
  120. HOMESERV CMD     Starts home PC as SLIP server. Starts various daemons.
  121. HOME2WRK CMD     Connects home PC to work PC.
  122. AUTONETH CMD     Connects home PC, runs list of jobs, disconnects.
  123.  
  124. WORKSERV CMD     Starts work PC as SLIP server. Daemons are assumed running
  125. WORK2HOM CMD     Connects work PC to home PC
  126. AUTONETW CMD     Connects work PC, runs list of jobs, disconnects.
  127.  
  128.  
  129. Files that to the real work
  130. ---------------------------
  131. HOMESRVD CMD    Starts home PC as SLIP server. Restarts after connection broken
  132. HOMESRV  CMD    Called by HOMESERV and SLIP.EXE. Handles login and routing.
  133. HOMECLI  CMD    Called by HOME2WRK and SLIP.EXE. Handles login and routing.
  134.  
  135. WORKSRVD CMD    Starts work PC as SLIP server. Restarts after connection broken
  136. WORKSRV  CMD    Called by WORKSERV and SLIP.EXE. Handles login and routing.
  137. WORKCLI  CMD    Called by WORK2HOM and SLIP.EXE. Handles login and routing.
  138.  
  139.  
  140. SLIP configuration files
  141. ------------------------
  142. HOMESRV  CFG    Called by HOMESERV when it runs SLIP
  143. HOMECLI  CFG    Called by HOME2WRK when it runs SLIP
  144.  
  145. WORKSRV  CFG    Called by WORKSERV when it runs SLIP
  146. WORKCLI  CFG    Called by WORK2HOM when it runs SLIP
  147.  
  148.  
  149. Files for initializing the serial port. Put one of these in Start Folder
  150. ------------------------------------------------------------------------
  151. MODE115  CMD    Sets COMx at 115200 and locks (Requires SIO)
  152. MODE576  CMD    Sets COMx at 57600. (Requires SIO)
  153.  
  154.  
  155. Files that start daemons
  156. ------------------------
  157. STAFTPD  CMD    Starts an FTP daemon.
  158. STAGOSRV CMD    Starts a web server.
  159.  
  160.  
  161. Files that manipulate screen colors
  162. -----------------------------------
  163. SC     CMD     1509  12-20-92  10:17p  SC.CMD sets the screen colors.
  164.                      "sc bw"  gives blue on white.
  165.                      SC.CMD must be put on your path. It
  166.                      is used by most Rexx programs in
  167.                      this package.
  168.  
  169. COLOR     ZIP     5951    9-29-95   6:54p  COLOR.EXE (PC Mag freeware) must be
  170.                      put on your path. Used by SC.CMD.
  171.  
  172. ===========================================================================
  173.  
  174. Here are the top level programs again with file sizes and notes on
  175. which ones need configuration. If it says "Requires configuration" below,
  176. look at the file CONFIG.TXT to see what has to be done to configure it.
  177.  
  178.  
  179. Top Level Programs. These are the ones you run. Some need to be configured.
  180. ---------------------------------------------------------------------------
  181. HOMESERV CMD     1120    9-30-95   3:47p   Runs daemons. Configure daemons.
  182. HOME2WRK CMD      168    9-30-95   4:29p   No changes required
  183. AUTONETH CMD     5152    9-30-95   5:31p   No changes required
  184.  
  185. WORKSERV CMD     1256    9-30-95   5:52p   Starts server. Adjust daemons.
  186. WORK2HOM CMD      168    9-30-95   4:32p   No changes required
  187. AUTONETW CMD     5095    9-30-95   5:32p   Requires configuration.
  188.  
  189.  
  190. Files that to the real work
  191. ---------------------------
  192. HOMESRVD CMD      914    9-29-95  11:23p   Requires configuration
  193. HOMESRV  CMD    10645    9-30-95   2:48a   Requires configuration
  194. HOMECLI  CMD     9613    9-30-95   3:12a   Requires configuration
  195.  
  196. WORKSRVD CMD      914    9-30-95  12:28a   Requires configuration
  197. WORKSRV  CMD    10633    9-30-95   2:42a   Requires configuration
  198. WORKCLI  CMD     9611    9-30-95   3:20a   Requires configuration
  199.  
  200.  
  201. SLIP configuration files
  202. ------------------------
  203. HOMESRV  CFG     4941    9-30-95  12:20a   Requires configuration
  204. HOMECLI  CFG     4941    9-30-95  12:20a   Requires configuration
  205.  
  206. WORKSRV  CFG     4941    9-30-95  12:17a   Requires configuration
  207. WORKCLI  CFG     4941    9-30-95  12:15a   Requires configuration
  208.  
  209.  
  210. Files for initializing the serial port. Put one of these in Start Folder
  211. ------------------------------------------------------------------------
  212. MODE115  CMD       52    5-14-95   6:01p   Requires configuration
  213. MODE576  CMD       31    9-17-95  12:10p   Requires configuration
  214.  
  215.  
  216. Files that start daemons
  217. ------------------------
  218. STAFTPD  CMD      169    9-30-95   3:37p  Requires configuration
  219. STAGOSRV CMD     1019    9-29-95   6:13p  Requires configuration
  220.