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 >
Wrap
Text File
|
2003-08-12
|
4KB
|
104 lines
This is the INSTALL file for telnetcpcd. You will need to build
the program from the supplied source before you install it.
Therefore, you will need a C development system.
1. Edit the Makefile for your platform and compiler.
2. Type 'make'. A single executable, telnetcpcd, should be
built.
3. There is no 'install' target in the Makefile. You must
install it "by hand". To do so, copy the telnetcpcd
executable to the bin directory of your choice. For
example (on Linux):
# cp telnetcpcd /usr/local/sbin
# chown root:root /usr/local/sbin/telnetcpcd
# chmod 711 /usr/local/sbin/telnetcpcd
4. Copy the included configuration file, telnetcpcd.conf, to
the /etc directory and edit it for your environment:
# cp telnetcpcd.conf /etc
# chown root:root /etc/telnetcpcd.conf
# chmod 644 /etc/telnetcpcd.conf
# vi /etc/telnetcpcd.conf
The config file tells the telnetcpcd daemon which ports
it should make available over the network.
5. If telnetcpcd was built with support for TCP Wrappers, you
will need to edit the host access files to allow and/or
deny access as appropriate for your environment:
# vi /etc/hosts.allow /etc/hosts.deny
Please see hosts_access(5).
For example, if telnetcpcd was installed on myhost.example.com
and example.com was using the class C network 192.168.222.0,
then this line in /etc/hosts.allow would permit access to
telnetcpcd from all hosts in the network:
telnetcpcd: 127.0.0.1 192.168.222.: allow
6. Arrange to have telnetcpcd started when your system boots.
A sample rc script for Red Hat Linux is included. For
example:
# cp rc.telnetcpcd /etc/rc.d/init.d/telnetcpcd
# chown root:root /etc/rc.d/init.d/telnetcpcd
# chmod 755 /etc/rc.d/init.d/telnetcpcd
# chkconfig --add telnetcpcd
By default, telnetcpcd runs on port 3696. You can specify a
different port by using the "-p" option at startup. To do so,
you will need to edit the rc script.
To start telnetcpcd now, on Red Hat Linux:
# service telnetcpcd start
7. Use a telnet client that supports RFC2217 to test your
installation. At the time of writing, the only known clients
are C-Kermit 8.0.200 (for UNIX and VMS), the forthcoming Kermit 95
version 2.00, and Tactical Software's family of port redirectors,
such as DialOut/IP.
Here's a snippet of C-Kermit script language that creates a macro
named "tncpc" (error handling is left as an exercise for the
reader):
; create the "tncpc" macro
define tncpc {
if equal "" "\%1" {
assign tncpc_host "localhost"
} else {
assign tncpc_host \%1
}
set telnet debug off
set telopt com-port-control required
set telnet echo remote
set telnet binary-transfer-mode on
set host \m(tncpc_host) 3696 /telnet
if failure end 1
echo \v(rfc2217_signature)
set modem type generic
set modem carrier-watch auto
set flow-control rts/cts
set terminal bytesize 8
set speed 115200
set reliable off
set prefixing minimal
set dial pacing 0
end 0
}
You could put this into your ~/.mykermrc file. Thereafter, typing
"tncpc" at the C-Kermit prompt will execute the macro. The macro
sets some telnet options and connects to the RFC2217 server. Then
it conditions the (remote) serial port. You could then type the
"dial" command to cause the remote modem to place a call.