User manual

Installation
User Manual
15
chmod a+rw /dev/ttyS2
chmod a+rw /dev/ttyS3
If need be these changes can be manually
undone after the installation pro-
cess has completed. It is also just as easy to add more com ports to the list,
if required.
The com ports are changed to “raw” mode.
The default behavior for com ports under L
inux is for them to act as remote
terminals. This means that certain binary data is converted — this needs to
be turned off. The first four com ports are changed to “raw” mode in the /
etc/rc.d/rc.local or /etc/rc.d/boot.local file.
stty –file=/dev/ttyS0 raw
stty –file=/dev/ttyS1 raw
stty –file=/dev/ttyS2 raw
stty –file=/dev/ttyS3 raw
If additional com ports need to be turned into raw mode, or
some need to
be changed back to non raw mode, the /etc/rc.d/rc.local (fedora) or /
etc/rc.d/boot.local (SuSE) file can be edited as required.
“Update USB Access”- LINUX ONLY
Under Fedora and SuSE the default behavior is to grant limited access to the
USB ports. The access to these ports is changed by modifying the /etc/
fstab file under SuSE, and the /etc/rc.d/rc.sysinit file under Fedora.
SuSE
The following line in the /etc/fstab file:
usbfs /proc/bus/usb usbfs noauto 0 0
is changed to:
usbfs /proc/bus/usb usbfs
noa
uto,devmode=0666 0 0
Or for SuSE 11 SP2 and other Linux distributions that use Kernel versions
greater
than 2.6.31-18
/sys/bus/usb/drivers /proc/bus/usb usbfs
aut
o.devmode=0666 0 0
Fedora
The following line in the /etc/rc.d/rc.sysinit file:
[ -d /proc/bus/usb ] && mount –n –t usbfs /proc/bus/usb
/pr
oc/bus/usb
is changed to:
[ -d /proc/bus/usb ] && mount –n –t usbfs –o
dev
mode=0666 /proc/bus/usb /proc/bus/usb
“Update LD_LIBRARY_PATH”- LINUX ONLY
The LD_LIBRARY_PATH variable needs to be defined because some the the
low level Java IO uses JNI to talk to the devices. The LD_LIBRARY_PATH helps
Java find any shared objects that need to be loaded at the appropriate times.
A new variable DLS_LD_LIBRARY_PATH is created in the /etc/profile file,