User's Manual

NPort W2150A/W2250A Series Installing and Configuring the Software
5-21
1. Modify npreal2d.cf.
2. Remove the relevant TTY ports in directory /dev.
3. Restart the driver.
If the IP address is not provided in the command line, the program will list the installed servers and total
ports on the screen. You will need to choose a server from the list for deletion.
Removing Linux Driver Files
A utility is included that will remove all driver files, mapped TTY ports, and unload the driver. Enter the
directory /usr/lib/npreal2/driver and execute mxuninst to uninstall the driver. This program will
perform the following actions:
1. Unload the driver.
2. Delete all files and directories in /usr/lib/npreal2.
3. Delete directory /usr/lib/npreal2.
4. Modify the system initializing script file.
UNIX Fixed TTY Drivers
A fixed TTY driver is provided that will map UNIX host TTY ports to NPort serial ports. Once the mapping has
been set up, UNIX users and applications can connect to an NPort serial port as if it were a local TTY port.
This driver has been designed and tested for the majority of UNIX systems. Please check
http://www.moxa.com
for the latest UNIX systems support.
Installing the UNIX Driver
1. Log in to UNIX and create a directory for the MOXA TTY. To create a directory named /usr/etc, execute
the command:
# mkdir –p /usr/etc
2. Copy moxattyd.tar to the directory you created. For the /usr/etc directory, you would execute the
following commands:
# cp moxattyd.tar /usr/etc
# cd /usr/etc
3. Extract the source files from the tar file by executing the command:
# tar xvf moxattyd.tar
The following files will be extracted:
README.TXT
moxattyd.c --- source code
moxattyd.cf --- an empty configuration file
Makefile --- makefile
VERSION.TXT --- fixed TTY driver version
FAQ.TXT
4. Compile and link.
For SCO UNIX:
# make sco
For UnixWare 7:
# make svr5
For UnixWare 2.1.x, SVR4.2:
# make svr42