home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume14
/
3bconnect
/
README
< prev
next >
Wrap
Text File
|
1988-05-08
|
4KB
|
125 lines
AT&T 3B2 Ethernet Connection and File Transfer Utility
This package allows you to login to other 3B2 computers connected via 3Bnet,
in a similar fashion to 'cu', and also to transfer files across the ethernet.
CONNECT
'Connect' provides a simple connection to a shell on the remote machine, linked
to your terminal via pipes. Initially, YOUR terminal will be doing the echoing
(in contrast to 'cu'), with lines shipped across the ethernet only when you
hit RETURN.
You can force the connection into 'raw' mode (each character shipped as typed,
remote end doing the echoing) by sending a QUIT signal. This allows you to
use screen editors on the remote machine.
A further QUIT signal gets you back into 'cooked' mode - this is indicated by
'[cooked]' appearing on your terminal. Unfortunately, this means that you
can't send QUIT signals to processes which you start on the remote host.
Sorry about this. Interrupts get processed OK, though.
You close the connection by typing ^D at your terminal (in cooked mode) -
if you want to send ^D to the remote end, you MUST be in 'raw' mode.
The big problem is that your remote shell has stdin, stdout, and stderr
connected to PIPES, rather than a real tty, which can cause certain commands
(e.g. stty) to fail.
PC-INTERFACE.
If you have PC-INTERFACE installed, then you can connect to one of the
pseudo-tty devices provided by the driver, by using the '-l' option of 'connect'
This gets you a remote shell connected to a 'real' tty device, and
automatically puts you in 'raw' mode.
You close this type of connection by sending a QUIT signal.
RCP
'rcp' provides a simple, but effective, method of transferring files across
the network. The syntax resembles 'uucp'.
WHAT YOU NEED TO DO TO INSTALL IT.
a) Find out the ethernet addresses of all machines on the network.
Use 'nitable', or the program 'mynode' provided.
b) Set up a map file '/usr/lib/ethernet.addr' which maps the names of
your hosts to the rightmost 2 digits of their ethernet address.
These should be unique - if not, change the value of LSB in 'ni.h'
to use any pair of digits which are unique for your network.
E.g.
oscar 80.00.10.30.18.f2
olive 80.00.10.30.0b.45
/usr/lib/ethernet.addr:
oscar f2
olive 45
c) Set up an inittab entry to run the server.
e.g. (assuming server is '/usr/lib/server')
et:2:respawn:/usr/lib/server
It's important that this line is properly defined!
DO NOT DEFINE ANY INPUT OR OUTPUT FILES FOR THIS PROCESS.
d) Make sure that you have enough 'port' structures allocated in the NI driver.
You can do this through the 'packagemgmt/3bnet/nidriver" option in 'sysadm'
I have 20 ports, 1 buffer per port, 1514 buffer size - this allows
me at least 5 concurrent 'connects' (I've not tried more)
You have to reboot for the reconfig to become effective.
e) Find out your value of NPROC, from the file /etc/master.d/KERNEL
Define this value in 'ni.h'
f) To connect, say 'connect <host>'
e.g.
connect olive
BUGS
TTY:
You're not connected to a tty at the remote end, so certain commands aren't
going to work. Screen editors will work, but only if you use them when you're
in 'raw' mode.
EOT:
There's no way to send EOT to a remote process. Typing ^D on your terminal will
close the connection. However, when you do a close, all your remote processes
get sent a hangup signal, which usually amounts to the same thing.
ETHERNET ADDRESS:
The ethernet addresses which are used by this package are NOT guaranteed to
be unique, and may interfere with other ethernet applications. (3Bnet and
PC-Interface seem to be OK, though).
If you get conflicts with other packages, you might have to change the values
in server[] and client[] in 'ni.h' ([1] and [2])
They are currently set to 0x02 0x02 - this is totally arbitrary,
so feel free to change it as you wish.
The rest of the bytes in server[] and client[] will be OK.
REMOTE SHELL TERMINATION:
If the remote shell dies, for any reason, you won't be informed until you
attempt to send it some input.
ADDING FEATURES.
If you put any fancy bits in, please let me know!
Good luck!
Dave Settle, dave@smb.co.uk