0
|
1 |
======================================================================
|
|
2 |
R E A D M E . L I N U X
|
|
3 |
doc: Thu Jan 19 09:43:38 2006
|
5
|
4 |
dlm: Fri Dec 10 15:24:48 2010
|
0
|
5 |
(c) 2006 A.M. Thurnherr
|
5
|
6 |
uE-Info: 91 0 NIL 0 0 72 3 2 4 NIL ofnI
|
0
|
7 |
======================================================================
|
|
8 |
|
|
9 |
This file contains Linux-specific notes for installing and running the
|
|
10 |
LDEO LADCP operator scripts.
|
|
11 |
|
|
12 |
======================================================================
|
|
13 |
PREREQUISITE SOFTWARE
|
|
14 |
======================================================================
|
|
15 |
|
|
16 |
-------
|
|
17 |
1. perl
|
|
18 |
-------
|
|
19 |
|
|
20 |
perl is part of most standard Linux installations. See Linux
|
|
21 |
documentation on how to install missing software. In order to test it,
|
|
22 |
run
|
|
23 |
|
|
24 |
/usr/bin/perl -e 'use threads'
|
|
25 |
|
|
26 |
If perl is not in /usr/bin, the 1st line of [bbabble] has to be
|
|
27 |
modified.
|
|
28 |
|
|
29 |
|
|
30 |
------
|
|
31 |
2. gcc
|
|
32 |
------
|
|
33 |
|
|
34 |
gcc, a C pre-processor, is part of all Linux distributions, as far as I
|
|
35 |
am aware. In order to test it, run
|
|
36 |
|
|
37 |
gcc -E /usr/include/stdio.h > /dev/null
|
|
38 |
|
|
39 |
If you don't have gcc installed you'll have to modify [bbabble]. This is
|
|
40 |
for perl/system programming experts only.
|
|
41 |
|
|
42 |
|
|
43 |
---------
|
|
44 |
3. rb/lrb
|
|
45 |
---------
|
|
46 |
|
|
47 |
[l]rb is the receiver-component of a public-domain implementation of
|
|
48 |
the ymodem protocol called lrzsz. It exists as modules for most popular
|
|
49 |
Linux distributions. Alternatively, the source can be downloaded from
|
|
50 |
http://www.ohse.de/uwe/software/lrzsz.html. However, since the version
|
|
51 |
has not changed since December 1998 (version 0.12.20) the corresponding
|
|
52 |
tar file (lrzsz-0.12.20.tar.gz) is included in this directory.
|
|
53 |
|
|
54 |
In order to test whether lrb is already installed, at least one of the
|
|
55 |
following commands must work:
|
|
56 |
|
|
57 |
lrb --help
|
|
58 |
rb --help
|
|
59 |
|
|
60 |
Otherwise, you must install lrb. The following commands might work:
|
|
61 |
|
|
62 |
tar xfz lrzsz-0.12.20.tar.gz
|
|
63 |
cd lrzsz-0.12.20
|
|
64 |
./configure
|
|
65 |
make
|
|
66 |
sudo make install
|
|
67 |
|
|
68 |
|
|
69 |
---------
|
|
70 |
4. expect
|
|
71 |
---------
|
|
72 |
|
|
73 |
expect is part of most Linux distributions, I think. In order to test
|
|
74 |
it, run
|
|
75 |
|
|
76 |
/usr/bin/expect < /dev/null
|
|
77 |
|
|
78 |
If expect does not reside in /usr/bin, you'll have to edit all the
|
|
79 |
operator scripts (grep -l /usr/bin/expect *).
|
|
80 |
|
|
81 |
|
5
|
82 |
-------------------
|
|
83 |
5. mkProfile/scanbb
|
|
84 |
-------------------
|
|
85 |
|
|
86 |
mkProfile is part of the LADCP_perl-tools collection available
|
|
87 |
from the LDEO LADCP repository.
|
|
88 |
|
|
89 |
scanbb is part of Eric Firing's LADCP processing software, which is
|
|
90 |
available from http://moli.soest.hawaii.edu/software/ladcp.
|
|
91 |
|
|
92 |
If neither mkProfile nor scanbb are available, LADCP-data-file checking
|
|
93 |
can be disabled by modifying the procedure check_data in
|
|
94 |
[CRUISE_SETUP.expect]. This is not recommended, however.
|
|
95 |
|
|
96 |
|
0
|
97 |
======================================================================
|
|
98 |
TTY DEVICE NAMES
|
|
99 |
======================================================================
|
|
100 |
|
|
101 |
The native RS-232 tty devices in Linux are called /dev/ttyS0,
|
|
102 |
/dev/ttyS1, ... Most modern computers do not have multiple RS-232
|
|
103 |
ports the ADCP heads will most likely be connected to the acquisition
|
|
104 |
computer via USB-to-serial converters. The ones that we use at LDEO
|
|
105 |
have tty device names /dev/ttyUSB0, /dev/ttyUSB1, ...
|