To exit the tip program, press the <return>-<~><.>
keys, and then press <return> again.
If you wish to access these devices directly the /etc/remote file has been
configured to support:
and
for direct access. See Serial Device
Files for more information.
Testing the server link is first started by attempting to dial-out to a
remote system - if you cannot dial out, no one can dial in. Once you have
established that your modem is indeed connected and accessible, it is time
to configure for dial in access. The file /etc/ttys controls which lines
are used for dialin by the getty program. The first few lines already have
entries. You will have to add more entries if you have more lines. Change
the status flag from "off" to "on" to enable a line.
Whenever you make changes to the ttys file, you must also signal the init
program to act upon those changes. A "HUP" signal to the init
process - process #1 - will accomplish this. Use the following command to
signal the init process:
If you are using the Communications ToolBox, you must first dial in using
the "cm.in" line and save its parameters to create the "cm.in1"
line.
Edit /etc/ttys and set the status for "cm.in""to "on".
Signal the init process.
A Communications ToolBox dialog should appear.
Adjust the settings for your modem.
You should then get a "Waiting" message.
Dial in to your modem.
You should get a "Login:" prompt.
IMPORTANT! While you have the "Login:" prompt on the machine you
are dialing in with, return to MachTen pull-down the File Menu.
Select the last item in the menu.
You will be presented with a standard "Save" dialog box.
Save cm.in1 into your dev folder. The file name must be seven characters
or less. Use cm.in2, cm.in3, etc., for more lines.
Edit /etc/ttys to break the dial in connection.
Set the status for "cm.in" to "off", and set the status
for "cm.in1" to "on".
Signal the init process.
At this point you should have consistant dialin access to your MachTen.
The next step is to setup login accounts for your PPP clients. The user
ppp is set by default. If you want clients to have their own passwords or
internet addresses, use the adduser command to create more MachTen users.
The key is to use /etc/pppserver as the "shell" for PPP client
accounts. The following command will setup user ppp1:
adduser ppp1 -s /etc/pppserver
Once dial in access has been established and the PPP accounts have been
set up, it is time to edit the /etc/pppserver script. You will probably
want to print out this script and study it a bit before making any changes.
It contains complete instructions. In a nutshell, you must set your MachTen
address to
the "SERVER" variable and your client's address to the "CLIENT"
variable. There is a debugging flag which is initially set to "DEBUG_ON".
The pppd program will send many messages to your console when a client connects.
This can be disabled by setting the "$DEBUG_OFF" to the "DEBUG"
variable.
The easiest way to choose client addresses is to use addresses from you
local subnet. The proxyarp option is used by /etc/pppserver to make this
work.
To terminate a PPP connection from MachTen, first determine the process
number for the pppd program by typing the following command:
ps -ax
Terminate the pppd process by typing the
following:
kill -HUP <pid>
where <pid> is the process number of the pppd process.