~ubuntu-branches/ubuntu/warty/dnprogs/warty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
This is dnprogs, the user programs for the Linux DECnet socket layer.

This collection comprises all the programs and libraries you will need
to get DECnet for Linux working. It assumes you already have the
kernel patch installed and built.

You MUST be running the latest Eduardo kernel patch (version number 0.0.11 or 
later) or Steve Whitehouse's patch to use these programs. If you are not
then several things (particularly dnetd) will NOT work. You will be warned
if you try to compile on old kernel versions.


INSTALLATION
------------

First, compile and install the programs:

   make ; make install

This should put all the user-level programs in /usr/local/bin, all the
system programs in /usr/local/sbin and the man pages under /usr/local/man.

Libraries will be installed in /usr/lib. If you would prefer them to be in
/usr/local/lib then edit Makefile.common and change libprefix.
If you do this you need to ensure that the libraries will be found by either
adding /usr/local/bin to the file /etc/ld.so.conf or by setting the 
environment variable LD_LIBRARY_PATH. See the man page for ld.so for more
information.

[Please don't send me mail about compiler warnings on libc5 based systems, I 
know. It compiles fine on libc6 systems (I can recommend Debian 2) because the
header files are more POSIX compliant.]

It will also install a startup script appropriate to your distribution. You
will need to set up your system so that this script is run at system startup
time. 

Debian 
------
The startup script is "/etc/init.d/decnet.sh"
Then run the command:

# update-rc.d start 39 S .  stop 11 1 .

Redhat
------
The startup script is "/etc/rc.d/init.d/decnet"
It should be linked to "/etc/rc.d/rc3.d/S09decnet"
You can use control-panel or tksysv to do this.

Caldera
-------
The startup script is "/etc/rc.d/init.d/decnet"
It should be linked to "/etc/rc.d/rc5.d/S01decnet"

You should also add the -f switch to the startnet command.
See the comments in the file for more detail.

Slackware   
---------
The startup script is "/etc/rc.decnet"
Put a call to this very near the start of your /etc/rc.d/rc.inet1 file.

SuSE
----
The startup script is "/sbin/init.d/decnet"
It should be linked to "/sbin/init.d/rc2.d/S05decnet"


NOTE: Wherever you put call the startup script from it *MUST* be run before 
the TCP/IP initialisation because it needs to set the MAC address of the
ethernet card.

You will also now have an example configuration file (called 
/etc/decnet.conf.sample). You should copy this to /etc/decnet.conf and edit it
to contain the details for your Linux machine (the executor) and all DECnet
nodes with which you want to communicate - see the man page for more details.

Alternatively you can use the script in scripts/setup.sh to aid in setting
up your DECnet configuration. This will prompt you for the necessary 
information and create an /etc/decnet.conf file for you. This script is run 
automatically when you first install a binary distribution.

You may also want to configure a DECnet proxies file. See the FAL 
documentation and the decnet.proxy(5) man page for more information.

UPGRADING FROM 1.x
------------------
All the libraries in the distribution carry the version number of the 
distribution itself rather than an ABI-type number. This is purely for
my convenience and there are many people who will tell me that this is just
plain wrong. Well so be it. The V2 libraries are all backward compatible
with the V1 libraries - the reverse is most certainly not true. If you build
any programs against libdnet.so.1 then they will still work against libdnet.so.2
so you can safely symlink here. The binary distributions contain these symlinks
so nothing should break.

The programs are all (externally) compatible with the older versions - some
programs have new switches.


DOCUMENTATION
-------------
man pages are provided for all the programs and also the routines in libdnet.
Also you will find some documentation in the Documentation directory of this
distribution.

If you have any problems then please consult the FAQ at 
http://linux-decnet.sourceforge.net/faq.html before emailing the list with 
questions.


PROGRAMS
--------

User programs in /usr/local/bin:
--------------------------------
dncopy	    -  copy files between VMS and Linux
dntype      -  view VMS files
dndir       -  show VMS directories
dndel       -  delete VMS files
sethost     -  connect a terminal session to VMS
dnping      -  "ping" (NCP LOOP NODE) a VMS machine
dnsubmit    -  submit batch jobs to a VMS queue
dnprint     -  print files on a VMS printer
phone       -  phone client

Administrator programs and daemons in /usr/local/sbin:
------------------------------------------------------
startnet    -  needed to start the DECnet socket layer
ctermd      -  SET HOST server
rmtermd     -  DTERM server for older machines
fal         -  file access listener
vmsmaild    -  daemon to collect mail from VMSmail
sendvmsmail -  mail delivery filter to send mail from Linux to VMS
phoned      -  phone server (needed for any phone functionality)
dnetd       -  DECnet super server
decnetconf  -  Shell script to help in setting up /etc/decnet.conf
dnmount     -  mount a VMS filesystem (still beta - requires dapfs)

Libraries in /usr/lib
---------------------
libdnet         -  DECnet database functions
libdnet_daemon  -  Common routines for DECnet daemons
libdap          -  DAP protocol
librms          -  Routines for user programs to access RMS files


PHONE
-----
An excuse.

Phone uses GTK+ V1.2 for its X-Windows interface. If you do not have GTK+ 1.2
installed then you will only get the ncurses interface. I do apologise for this
but I am a newcomer to GTK+ and don't (yet, perhaps) have the knowledge to
produce code that is more portable; a lot of the widget creation code was
produced using the UI builder GLADE. I am an experienced X-Windows programmer
but that experience is with Xt and Motif because it was gained in a commercial
environment (using VMS rather than Unix since you asked!). I believe that GTK+
is the future of - free - software development and Motif, despite the 
excellent efforts of the Lesstif team, is merely a legacy toolkit.


Writing DECnet programs
-----------------------
The DECnet programs all use the BSD socket API, so if you are familiar
with that then you are nearly there, particularly for clients.
If you want to write a server then I recommend you read the man page for
dnet_daemon - this includes a description of the DECnet daemon toolkit and
a complete, working example of a daemon that will run standalone or from
dnetd.

It's also worth visiting Steve Whitehouse's web site for information on
the more advanced calls. http://www.chygwyn.com/DECnet/

Plus...You have the source to many client and server programs in this very
package so peruse them and learn!

If all you want to do is access RMS files from Linux then librms is a much
easier way of achieving this because it contains open/read/write/close calls
that you will be more familiar with. See the librms directory for more 
information.


ALSO INCLUDED
-------------
This distribution also contains uulib from the uudeview suite by Frank Pilhofer
(fp@informatik.uni-frankfurt.de). 

I have supplied it here pre-configured for Linux and it seems OK for me on
libc5 and 6 systems, Intel, SPARC and Alpha.

If you have problems or you want the rest of the uudeview distribution or want
to try a later version of uulib you can download it from
http://www.informatik.uni-frankfurt.de/~fp/uudeview.

Thanks to Frank for a great set of encoders/decoders - I use them a lot.


LICENCES
--------
All the programs are released under the GNU General Public licence. See the
file COPYING.programs for the full text.

The libraries (libdnet, libdap, libdnet_daemon and librms) are released under
the GNU Lesser (or Library) Public licence. See the file COPYING.libraries
for the full text.

Please note that uulib is released under the GPL (*not* LGPL). Contact Frank
if you want to discuss this.

CONTRIBUTORS
------------
Most of the programs in the apps directory and most of libdnet were written
by Eduardo Serrat. Bits of libdnet are also by Steve Whitehouse. Nearly all
the rest of the stuff was written by me (Patrick Caulfield) and the
whole package is maintained by me, I've had my fingers in all their bits too.

I am grateful to several people for providing patches and programs:
Paul Koning (rmtermd & patches for sethost, dndir)
Rob Davies & David North (patches for dnping)
Kenn Humborg (patch for dntask)
Maciej Rozycki (patch for Makefiles)
Frank Pilhofer (for uulib) see above.
And to everyone who has submitted bug reports - please don't stop.


SUPPORT
-------
These programs have been tested on Linux 2.0, 2.1, 2.2, 2.3 & 2.4 on Intel, 
Alpha and SPARC machines (though not necessarily all combinations!)

I encourage all users to join the linux-decnet mailing list by visiting the
mailing list web site at 
http://lists.sourceforge.net/lists/listinfo/linux-decnet-user

The list is archived at http://www.geocrawler.com/lists/3/SourceForge/3243/0/

If you need help with the software, think you have found a bug or would 
like to request a feature then please send your messages to this mailing list.

Note that while I cannot guarantee you will get support for these programs,
we on the list will endeavour to help where possible.

If you send me or the mailing list a message that is answered in this file or 
the online FAQ (at http://linux-decnet.sourceforge.net/faq.html) then it
will probably be ignored. I have a life to lead and a job to hold down.