Debian Codegraph @

README

raw
1
2 LinPac version 0.28 (stable release)
3 Copyright (c) 2021 by David Ranch (KI6ZHD) and Martin Cooper (KD6YAM)
4
5 Linpac is a modular, Ncurses console-oriented AX.25 packet radio terminal with a
6 built-in messaging client. Using Linux's native AX.25 network stack, it
7 can support eight concurrent connected sessions (QSOs) as well as send
8 UNPROTO packets (UI) to any preconfigured ax25 digi path. Local messaging
9 support is currently fairly simple yet Linpac is designed to relay all
10 messages to remote BBSes for full messaging if configured. Linpac "stable"
11 currently supports an Ncurses-based CLI client but there is also an unstable
12 Java-based client/server version with a GUI client that's partially
13 operational but needs work.
14
15 If you encounter any problems when compiling or using LinPac please go to
16 http://linpac.sourceforge.net for support.
17
18
19 Current contributors:
20
21 - David Ranch (KI6ZHD)
22 Packet radio mail: KI6ZHD@N0ARY.#NCA.CA.USA.NOAM
23
24 - Martin Cooper (KD6YAM) - Polling load reduction; mail bug fixes; many warning cleanups
25 - Jerry Dunmire (KA6HLD) - Auto-tools
26 - Steven Loomis (K6SPI) - Misc patches
27
28
29 Many thanks to the original author of Linpac for creating this flexible
30 and valuable package for Linux:
31
32 Radek Burget OK2JBG ( [email protected] )
33
34
35 QUICK INSTALATION FROM A RELEASE PACKAGE
36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 Release packages can be identified by the presence of the ./configure in
38 this directory. If the ./configure script is not present, then see the
39 'Hacking' instructions below.
40
41
42 Optional:
43 ---------
44 If you plan to use Linpac for recieving and sending your packet mail via a
45 remote BBS system (not required), you must install the ax25mail-utils
46 package first BEFORE first running Linpac. This package can be found
47 at http://ax25mail.sf.net
48
49
50 Before compilation of Linpac, you must have these other packages installed:
51
52 NOTE: Though some distributions offer the AX25 libraries natively in
53 their own repositories, they are usually very old and lack several
54 important fixes. You can read more about these improvements here:
55
56 https://github.com/ve7fet/linuxax25
57
58
59 Required dependencies:
60 ~~~~~~~~~~~~~~~~~~~~~~
61 Debian / Ubunutu package names: libax25 ax25-apps libncurses5-dev perl
62 Optional install: ax25-tools ax25-xtools ax25mail-utils
63
64 Centos / Fedora package names: libax25 ax25apps ncurses-libs perl
65 Optional install: ax25tools ax25mail-utils
66
67
68 I recommend all users install or build the AX.25 stack from
69 this alternative provider for now:
70
71 https://github.com/ve7fet/linuxax25
72
73
74 Once you have installed the above dependencies, please run:
75
76 ./configure
77
78 NOTE: If the "configure" prompt isn't present, you probably got your source
79 code from Git. If so, run the following:
80
81 autoreconf --install
82 ./configure
83
84
85 If autoreconf doesn't run, it probably means you need to install Autotools:
86
87 deb-based:
88 sudo apt-get install automake autoconf
89
90 rpm-based
91 yum install automake autoconf
92
93
94 If "autoreconf --install" fails with:
95
96 src/applications/liblinpac/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
97 src/applications/liblinpac/Makefile.am:4: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
98 src/applications/liblinpac/Makefile.am:4: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
99 src/applications/liblinpac/Makefile.am:4: If 'LT_INIT' is in 'configure.ac', make sure
100 src/applications/liblinpac/Makefile.am:4: its definition is in aclocal's search path.
101
102 Do the following:
103
104 deb-based:
105 sudo apt-get install libtool
106 libtoolize
107 autoreconf --install
108
109 rpm-based:
110 sudo yum install libtool
111 libtoolize
112 autoreconf --install
113
114
115 The default installation destination directory prefix is /usr/local/*. If you
116 want to change this, add the following configuure --prefix switch:
117
118 ./configure --prefix=DIR
119
120 where DIR is the new destination directory prefix.
121 (LinPac installs into PREFIX/bin and PREFIX/share/linpac)
122
123 After this just type
124
125 make
126
127 to compile the package. At that point, you can install the application a few
128 ways:
129
130 For Debian/Ubuntu folks:
131 --
132 Consider using the "checkinstall" tool instead of "make install".
133 This tool must be installed seperately but it will run the
134 equivelent of "make install" but instead, wrap everything into an
135 unofficial .deb file with proper packaging
136
137 or
138 For rpm based folks:
139 --
140 Consider using the included contrib/packaging/rpm/linpac.spec
141 file with the rpmbuild tool. This tool must be installed seperately
142 but takes care of creating a clean RPM package to install
143 or
144
145 # The old classic way
146 make install
147 ldconfig
148 or
149 make install-strip
150 ldconfig
151
152
153 One of these options will install Linpac onto your system. The "install-strip"
154 command will also strip the debugging information from the program (the installation
155 is then MUCH SMALLER) but harder to report issues to the developer.
156
157
158 ONCE INSTALLED
159 ~~~~~~~~~~~~~~
160 Once Linpac is installed, you MUST configure the Linux AX.25 system first.
161 Linpac is only an application that uses a fully functional AX.25 stack.
162 Please review the various resources on the Internet on how to do this
163 such as:
164
165 - Official AX25 HOWTO (old, dated but still useful)
166 http://tldp.org/HOWTO/AX25-HOWTO/
167
168 - John Ackermann's pages:
169 http://www.febo.com/packet/linux-ax25/ax25-config.html
170
171 - David Ranch's pages:
172 http://www.trinityos.com/HAM/CentosDigitalModes/hampacketizing-centos.html#7.ax25initsetup
173
174
175
176 KNOWN PROBLEMS
177 ~~~~~~~~~~~~~~
178
179 - There are reported issues with Ncurses 6.1 (not 6.0) and Linpac where this buggy 6.1 version
180 is present in Raspbian Buster (10.1), Ubuntu 18.04, etc. Examples include:
181
182 * in the monitor window, the first character is sometimes being cut off, but many times
183 it's not cut off and looks fine.
184 * in the mail window, weird things are going on with the "background window"
185
186 A workaround for now is to run the following command before you run Linpac:
187
188 export TERM="simpleterm"
189
190
191 - Signifincant issue with AX.25 and Raspbian Stretch
192
193 I have confirmed that with Raspian Stretch, there is some sort of conflict with
194 it's newly enabled predictable network interface names. What are those? If you
195 run the command "ifconfig" or "ip addr", you will no longer see Ethernet
196 interfaces with names like "eth0" but instead, you'll see something like
197 "enxb827eb5f05". How's that for catchy? For known reasons to the AX.25 kernel
198 maintainers, in the sa_data kernel data structure, both the stock Raspbian AX.25
199 .debs and the 3rd party VE7FET ax.25 debs will give errors like the following when
200 ANY network interface name is longer than 13 characters:
201
202 SIOCGIFHWADDR: No such device
203
204 Programs like beacon will fail to start. Linpac will also crash upon start with
205
206 /usr/bin/linpac: line 181: 9811 Segmentation fault $PKG_BINDIR/linpac $*
207
208 Fortunately, if you disable predictable network interface names, things work fine.
209 To do this, do the following steps:
210
211 sudo vi /boot/cmdline.txt
212
213 #append the following to the end of the one line in this file
214 net.ifnames=0 biosdevname=0
215
216 Reboot your Raspberry Pi and things will work from there on out. Btw, if Linpac
217 crashed on you, your terminal might be screwed up and not working properly.
218
219 To fix that, run the commands:
220
221 stty sane
222 rm -f rm /var/lock/LinPac.0
223
224
225 - The --enable-LINKSTATIC configuration option does not work.
226
227 Please see the linpac-todo.txt file in this source package as well as see
228 http://linpac.sf.net for other possible problems and their solutions.
229
230
231 NOTES FOR HACKING with the Source code
232 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
233 It's always recommended to start with the "develop" Git branch as it will
234 always have the newest code. From there, a clean checkout from the source
235 repository is not ready to configure and compile. You will need the GNU
236 autotools (https://en.wikipedia.org/wiki/GNU_build_system) to create the
237 ./configure script and Makfile templates. Once the autotools are
238 installed the full build procedure is:
239
240 autoreconf --install
241 ./configure
242 make
243 make install
244
245 You can make a release package for distribution using:
246
247 make dist
248
249 For debugging Linpac, it is useful to run Linpac in the place of compile
250 without installing it. For this the command 'make noinstall' can be used.
251 This will create the directory structure in the ./src directory. This is
252 only available with the staticaly linked applications.
253
254
255 CONFIGURATION OPTIONS
256 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
257 Most of the configuration options are described in the INSTALL file.
258
259 [broken at the moment]
260 There is one custom option for linpac; --enable-LINKSTATIC.
261
262 The applicatons are linked using the shared library by default (the library
263 liblinpac.so is installed in /usr/local/lib). You can link all the
264 applications staticaly by running
265
266 configure --enable-LINKSTATIC
267
268