home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / sredird / telnetcpcd-1.09.tar.gz / telnetcpcd-1.09.tar / INSTALL < prev    next >
Text File  |  2003-08-12  |  4KB  |  104 lines

  1. This is the INSTALL file for telnetcpcd.  You will need to build 
  2. the program from the supplied source before you install it. 
  3. Therefore, you will need a C development system.
  4.  
  5.  
  6.   1.  Edit the Makefile for your platform and compiler.
  7.  
  8.   2.  Type 'make'.  A single executable, telnetcpcd, should be 
  9.       built.
  10.  
  11.   3.  There is no 'install' target in the Makefile.  You must 
  12.       install it "by hand".  To do so, copy the telnetcpcd 
  13.       executable to the bin directory of your choice.  For 
  14.       example (on Linux):
  15.  
  16.       # cp telnetcpcd /usr/local/sbin
  17.       # chown root:root /usr/local/sbin/telnetcpcd
  18.       # chmod 711 /usr/local/sbin/telnetcpcd
  19.  
  20.   4.  Copy the included configuration file, telnetcpcd.conf, to 
  21.       the /etc directory and edit it for your environment:
  22.  
  23.       # cp telnetcpcd.conf /etc
  24.       # chown root:root /etc/telnetcpcd.conf
  25.       # chmod 644 /etc/telnetcpcd.conf
  26.       # vi /etc/telnetcpcd.conf
  27.  
  28.       The config file tells the telnetcpcd daemon which ports 
  29.       it should make available over the network.
  30.  
  31.   5.  If telnetcpcd was built with support for TCP Wrappers, you 
  32.       will need to edit the host access files to allow and/or 
  33.       deny access as appropriate for your environment:
  34.  
  35.       # vi /etc/hosts.allow /etc/hosts.deny
  36.  
  37.       Please see hosts_access(5).
  38.  
  39.       For example, if telnetcpcd was installed on myhost.example.com 
  40.       and example.com was using the class C network 192.168.222.0, 
  41.       then this line in /etc/hosts.allow would permit access to 
  42.       telnetcpcd from all hosts in the network:
  43.  
  44.       telnetcpcd: 127.0.0.1 192.168.222.: allow
  45.  
  46.   6.  Arrange to have telnetcpcd started when your system boots. 
  47.       A sample rc script for Red Hat Linux is included.  For 
  48.       example:
  49.  
  50.       # cp rc.telnetcpcd /etc/rc.d/init.d/telnetcpcd
  51.       # chown root:root /etc/rc.d/init.d/telnetcpcd
  52.       # chmod 755 /etc/rc.d/init.d/telnetcpcd
  53.       # chkconfig --add telnetcpcd
  54.  
  55.       By default, telnetcpcd runs on port 3696.  You can specify a 
  56.       different port by using the "-p" option at startup.  To do so, 
  57.       you will need to edit the rc script.
  58.  
  59.       To start telnetcpcd now, on Red Hat Linux:
  60.  
  61.       # service telnetcpcd start
  62.  
  63.   7.  Use a telnet client that supports RFC2217 to test your 
  64.       installation.  At the time of writing, the only known clients 
  65.       are C-Kermit 8.0.200 (for UNIX and VMS), the forthcoming Kermit 95
  66.       version 2.00, and Tactical Software's family of port redirectors, 
  67.       such as DialOut/IP.
  68.  
  69.       Here's a snippet of C-Kermit script language that creates a macro 
  70.       named "tncpc" (error handling is left as an exercise for the 
  71.       reader):
  72.  
  73.       ; create the "tncpc" macro
  74.       define tncpc {
  75.           if equal "" "\%1" {
  76.               assign tncpc_host "localhost"
  77.           } else {
  78.               assign tncpc_host \%1
  79.           }
  80.           set telnet debug off
  81.           set telopt com-port-control required
  82.           set telnet echo remote
  83.           set telnet binary-transfer-mode on
  84.           set host \m(tncpc_host) 3696 /telnet
  85.           if failure end 1
  86.           echo \v(rfc2217_signature)
  87.           set modem type generic
  88.           set modem carrier-watch auto
  89.           set flow-control rts/cts
  90.           set terminal bytesize 8
  91.           set speed 115200
  92.           set reliable off
  93.           set prefixing minimal
  94.           set dial pacing 0
  95.           end 0
  96.       }
  97.  
  98.       You could put this into your ~/.mykermrc file.  Thereafter, typing 
  99.       "tncpc" at the C-Kermit prompt will execute the macro.  The macro 
  100.       sets some telnet options and connects to the RFC2217 server.  Then 
  101.       it conditions the (remote) serial port.  You could then type the 
  102.       "dial" command to cause the remote modem to place a call.
  103.  
  104.