G0LGS LinFBB Tools

Stewart has sent me a link with the scripts and programs he wrote for LinFBB. I copied them to my own server for historical purposes. Thanks Stewart.

This is the source link

https://www.g0lgs.co.uk/MyDownloads.php?fbclid=IwAR3nXpC0ET0mBre9tFYAX0LSoW6YYOqflsEag2XF4j_1wNvUUA89JoOjK4Q

XFBB AutoResp Server 0.11 Jan 2005 XFBB AutoResp Server
XFBB m_filter and f_filter 0.60 20/03/2005 XFBB m_filter and f_filter
XFBB Event Notification system 0.14 23/04/2005 XFBB Event Notification system
XFBB BID Tool 1.00beta 31/07/2005 XFBB Bid Tool
XFBB INF Tool 0.15 Jan 2002 XFBB INF Tool
XFBB Message Renumbering tool 0.36 16/01/2005 XFBB Message Renumbering tool
XFBB Lotto number generator 0.10 13/01/2001 XFBB Lotto number generator
XFBB Multi Server 0.55 24/12/2001 XFBB Multi Server
XFBB Ping Server 0.14 02/10/2005 XFBB Ping Server
XFBB File Servers: REQDIR / REQFIL / LOCAL 0.61 03/02/2005 XFBB File Servers: REQDIR / REQFIL / LOCAL
XFBB Statis file manager 0.12 30/01/2005 XFBB Statis file manager
XFBB TeleText Server 0.24 23/12/2001 XFBB TeleText Server
XFBB WP Tool 0.33 12/07/2002 XFBB WP Tool

FBB7.0.9 released

@Bug Bash

Trying BBSURO:N1URO-4… <Enter> aborts.
Virtual circuit established to BBSURO:N1URO-4
[FBB-7.0.9-AB1FHMRX$]
{PROTUS-4.1á2}

There has been quite a bit of activity on the mail list or Fbb in the last 2 weeks. Some bugs have been fixed by Dave, now the Protus C_Filter and the G0LGS M and F Filter are working properly again.

Last release

https://sourceforge.net/projects/linfbb/files/fbb-7.0.9.tar.gz/download

Brian N1URO has written some installation script for Protus and G0LGS filters and has been working on the translation of the Spanish Protus files.

The appropriate Filters can be downloaded from the links below.

https://ham.packet-radio.net/packet/f6fbb/tools/g0lgs-filters-701-0.60.tgz
https://ham.packet-radio.net/packet/f6fbb/tools/protus4-eng.tar.gz

Or

ftp://n1uro.no-ip.org/pub/hamradio/packet/fbb/utils/g0lgs-filters-701-0.60.tgz
ftp://n1uro.no-ip.org/pub/hamradio/packet/fbb/utils/protus4-eng.tar.gz

They are currently working on getting rid of some Bugs that cause some errors with Fbb ping and the ReqDir server.

Thanks to Dave, Stewart G0LGS, Brian N1URO, Bernard F6BVP, Paul G4APL and Tom SP2L

Great work, Thank you

Changelog…..

7.0.8-beta9 (f6bvp, Dave van der Locht)
– [r176] fbblog files renamed from 0 to 52 for week number
fbb log displayed calling executable script /usr/local/bin/fbblog
– [r177] Some functions are done via system() calls. However, observed return value
is invariably -1 while it should reflect the result of called program.
It happened because the SIGCHILD signal handler was set to SIG_IGN.
Fixed at the beginning of the main function in xfbbd.c.
Dave van der Locht 2019-12-14

7.0.9 (Dave van der Locht)
– [r178] beta9 was hanging. xfbbd.c patched.
1) Return value of system() is always -1 due to SIGCHLD signal was ignored.
2) Added ‘fail-safe bypass’ in case call_nbdos() couldn’t find the command/executable to run.
3) Replaced system() with popen() in the call_nbdos() function to fix the problem with
response text from a c_filter not coming through.

Systemd and Linfbb

I had some problems starting Linfbb with systemd. The problem turned out to be that Linfbb was running in the background. Systemd was thinking fbb was going offline and kept restarting. Now it is possible to provide start options with fbb.

Command line options of the fbb script :
—————————————-
-f : Software is run in foreground
-h : help information
-q : run silent
-l logfile : log debug info to logfile

Now I put the following in my fbb start file.

pd9q@packet:~/linbpq $ cat fbb.start
# Start Linfbb file
sudo /usr/local/sbin/fbb -f -l /home/pd9q/linbpq/fbb.log

The unit file for systemd.

pd9q@packet:~/linbpq $ cat /etc/systemd/system/fbb.service
[Unit]
Description=LinFbb Daemon
After=network.target
After=linbpq.target
After=direwolf.target
StartLimitInterval=0

[Service]
Type=simple
Restart=always
RestartSec=5
ExecStartPost=/bin/sh -c "echo $MAINPID > /home/pd9q/linbpq/run/fbb.pid"
ExecStart=/bin/sh /home/pd9q/linbpq/fbb.start

[Install]
WantedBy=multi-user.target
Alias=fbb.service

Systemctl status fbb

pd9q@packet:~/linbpq $ sudo systemctl status fbb
● fbb.service - LinFbb Daemon
   Loaded: loaded (/etc/systemd/system/fbb.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-10-27 06:04:57 UTC; 24min ago
  Process: 536 ExecStartPost=/bin/sh -c echo $MAINPID > /home/pd9q/linbpq/run/fbb.pid (code=exited, status=0/SUCCESS)
 Main PID: 535 (sh)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/fbb.service
           ├─535 /bin/sh /home/pd9q/linbpq/fbb.start
           ├─541 sudo /usr/local/sbin/fbb -f -l /home/pd9q/linbpq/fbb.log
           ├─584 /bin/bash /usr/local/sbin/fbb -f -l /home/pd9q/linbpq/fbb.log
           └─826 /usr/local/sbin/xfbbd -a

Oct 27 06:05:02 packet sh[535]: 1 records updated
Oct 27 06:05:02 packet sh[535]: Files set-up complete
Oct 27 06:05:02 packet sh[535]: FORWARD set-up
Oct 27 06:05:02 packet sh[535]: BBS set-up
Oct 27 06:05:02 packet sh[535]: Set-up complete
Oct 27 06:05:02 packet sh[535]: GMT 06:05 - LOCAL 06:05
Oct 27 06:05:02 packet sh[535]: Starting multitasking ... ok
Oct 27 06:05:02 packet sh[535]: FBB options : -a
Oct 27 06:05:02 packet sh[535]: Running XFBB in foreground mode ^C to abort
Oct 27 06:05:07 packet sh[535]: Starting XFBB (pwd = /usr/local/var/ax25/fbb)...

Now is fbb running just fine. 

Xfbb interface with Linbpq

In bpq32.cfg add

TNCPORT
COMPORT=/home/pi/fbbded
TYPE=DED
STREAMS=1
APPLMASK=4
ENDPORT

This creates a DED Host mode TNC on device /home/pi/fbbded, accessible from the LinBPQ Node as Application 3. Change APPLMASK and APPLICATION line if you already use APPL 3

APPLICATION 3,FBB,,PI1LAP,LINBBS,255

This allows uses to connect to FBB. You can add the usual Call, Alias and Quality if you want to be able to access FBB directly instead of via the Node.

Change APPLMASK and APPLICATION line if you already use APPL 3

In /usr/local/etc/ax25/fbb/port.sys#

# FBB7.0.8-beta8
#
#Ports TNCs
1 1
#
#Com Interface Adress (Hex) Baud
1 9 /home/pi/fbbded 9600
#
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode Freq 0 0 0 0 0 0 0 0 00/01 —- File-fwd.
1 6 1 1 250 2 1 10 00/15 DUWYL 145
#
# End of file.
#

This tells fbb to use /home/pi/fbbded as a DED Mode TNC.

Fbb problem showing .HLP and .ENT file

Donnie WD1F has some trouble to get the english.hlp and the english.ent files to show up in fbb. He found the solution.

connecting from remote TNC...
cmd:c wd1f-7
*** CONNECTED to WD1F-7
S (H for help) >
rm
There are no such messages (message choice: *).
(1) WD1F BBS (H for help) >
H
{nothing happens}

All the files are there with the right permissions.

root@ks1r:/etc/ax25/fbb/lang# strace -e open -p 2457 
strace: Process 2457 attached 
open("/var/ax25/fbb/inf.sys", O_RDWR)   = 10 
open("/var/ax25/fbb/wp/wp.sys", O_RDWR) = 10 
open("/etc/ax25/fbb/lang/english.ent", O_RDONLY) = 10 
open("/etc/ax25/fbb/lang/english.hlp", O_RDONLY) = 10
Dir of /etc/ax25/fbb/lang
root@ks1r:/etc/ax25/fbb/lang# l 
total 248 
-rw-r--r-- 1 root root   179 Feb  6 11:29 english.ent 
-rw-r--r-- 1 root root   179 Feb  6 11:13 english.ent.sample 
-rw-r--r-- 1 root root 62459 Feb  6 11:13 english.hlp 
-rw-r--r-- 1 root root 62459 Feb  6 11:26 ENGLISH.hlp 
-rw-r--r-- 1 root root   743 Feb  6 11:13 english.inf 
-rw-r--r-- 1 root root 12428 Feb  6 11:13 english.txt 
-rw-r--r-- 1 root root 12428 Feb  6 11:26 ENGLISH.txt 
-rw-r--r-- 1 root root   155 Feb  6 11:13 francais.ent.sample 
-rw-r--r-- 1 root root 51417 Feb  6 11:13 francais.hlp 
-rw-r--r-- 1 root root   777 Feb  6 11:13 francais.inf 
-rw-r--r-- 1 root root 14783 Feb  6 11:13 francais.txt 
root@ks1r:/etc/ax25/fbb/lang#

I found my problem and it wasn’t easy. In case others have this issue…
The issue was: Pressing H would not give me the help file. After getting it working I see I was missing other things as well like lots of the welcome text.

open("/usr/local/etc/ax25/fbb/lang/english.hlp", O_RDONLY) = 8 
fstat(8, {st_mode=S_IFREG|0644, st_size=62459, ...}) = 0 
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2bba612000 
read(8, "################################"..., 4096) = 4096 
read(8, "erver menu, and continue from\nth"..., 4096) = 4096 
read(8, "information on one special comma"..., 4096) = 4096 
read(8, "   -  Download a file with AUTOB"..., 4096) = 4096 
read(8, "he current line.  The number can"..., 4096) = 4096 
read(8, "T new in 5.15b\n@@ 9 BGET\n\nComman"..., 4096) = 4096 
close(8)                                = 0 
munmap(0x7f2bba612000, 4096)            = 0 
lseek(4, 0, SEEK_SET)                   = 0 
read(4, "MemTotal:       32896168 kB\nMemF"..., 999) = 999 
write(3, "\r- Type ? [COMMAND] for the HELP"..., 250) = -1 EMSGSIZE (Message too long)

duckduckgo.com search showed EMSGSIZE (Message too long) had to do with packet sizes allowed. Made me think it may relate to max packet length setting in axports
The fix was:

in /etc/ax25/axports…
name Call speed paclen window desctiption
1 WD1F-1 9600 128 2 144.01 MHz (1200 bps)

I had to set paclen to 255 like this:
1 WD1F-1 9600 255 2 144.01 MHz (1200 bps)

Linfbb maintenance scripts modified.

Brain n1uro has write a script to getting reports sent to you nightly from your maintenance.

/usr/local/lib/fbb/script/maintenance/20_epurmess

#!/bin/bash
LIBDIR=/usr/local/lib/fbb
SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`
MAIL=/usr/local/var/ax25/fbb/mail/mail.in

echo
echo "--- Running epurmess"
echo

$LIBDIR/tool/epurmess
ret=$?

echo "SP $SYSOP@$HADD" >> $MAIL
echo "MSG MAINT at $HADD" >> $MAIL
cat /usr/local/var/ax25/fbb/epurmess.res >> $MAIL
echo "/EX" >> $MAIL
exit $ret

/usr/local/lib/fbb/script/maintenance/20_epurwp

#!/bin/bash
LIBDIR=/usr/local/lib/fbb
MAIL=/usr/local/var/ax25/fbb/mail/mail.in
SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`

echo
echo "--- Running epurwp"
echo

$LIBDIR/tool/epurwp 40 90
ret=$?

echo "SP $SYSOP@$HADD" >> $MAIL
echo "WP MAINT at $HADD" >> $MAIL
cat /usr/local/var/ax25/fbb/epurwp.res >> $MAIL
echo "/EX" >> $MAIL
exit $ret

I have some trouble to get things going so i change some line in the scipt.

I have change the line

SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`

to

SYSOP=`/usr/local/sbin/fbbgetconf -f /usr/local/etc/ax25/fbb/fbb.conf sysop`
HADD=`/usr/local/sbin/fbbgetconf -f /usr/local/etc/ax25/fbb/fbb.conf call`

fbbgetconf needs a option.

Output off the script.

R:180115/0001Z @:PI8LAP.#ZL.NLD.EURO #:20813 [Kortgene] $:20813_PI8LAP

From: PI8LAP@PI8LAP.#ZL.NLD.EURO
To  : PD2LT@

1515974462

File cleared  :   33 private message(s)    
              : 5664 bulletin message(s)   
              : 4665 active message(s)     
              : 1032 killed message(s)     
              : 5697 total message(s)      
              :    8 archived message(s)   
              :   44 destroyed message(s)  
              :    0 Timed-out message(s)  
              :    0 No-Route message(s)   

Start computing     : 18-01-15 02:01
End computing       : 18-01-15 02:01
R:180115/0001Z @:PI8LAP.#ZL.NLD.EURO #:20814 [Kortgene] $:20814_PI8LAP

From: PI8LAP@PI8LAP.#ZL.NLD.EURO
To  : PD2LT@

1515974462

WP updated :   249 total record(s)      
           :     0 updated record(s)    
           :     1 deleted records(s)   
           :     0 WP update line(s)    

Start computing     : 18-01-15 01:01
End computing       : 18-01-15 01:01

 

Forward from linbpq through uronode to fbb.

There were some problems getting the forward from linbpq through a uronode to a linfbb bbs. I spent a while testing to see if we could get things going. It actually works pretty well.

I have add the following connection script to linbpq

ATT 3
C 44.137.31.73 3694 NEEDLF PI8LAP pi8lap BBS

ATT 3 stands for attach port 3, and port 3 is in my system the telnet port.

Furthermore, in uronode.conf I have created an Alias with the name BBS. So if the command BBS is given in uronode, you will be connected with linfbb.

Alias           BBS     "c pi8lap"

We can test whether the forward script does what it is supposed to do. Let’s start the forward in Linbpq.

Log file of Linbpq

171209 05:36:28 >PI8LAP    ATT 3
171209 05:36:28 <PI8LAP    LAPBPQ:PI1LAP-9} Ok
171209 05:36:28 >PI8LAP    C 44.137.31.73 3694 NEEDLF PI8LAP pi8lap BBS
171209 05:36:28 <PI8LAP    *** Connected to Server
171209 05:36:28 <PI8LAP    ��"(uro.pd2lt.ampr.org:uronode) login: *** Password required!
171209 05:36:28 <PI8LAP    If you don't have a password please mail
171209 05:36:28 <PI8LAP    pd2lt (@) packet-radio.net for a password you wish to use.
171209 05:36:28 <PI8LAP    Password: ��^A��^A
171209 05:36:28 <PI8LAP    [URONode v2.8.1]
171209 05:36:28 <PI8LAP    Welcome pi8lap to the uro.pd2lt.ampr.org packet shell.
171209 05:36:28 <PI8LAP    Network node PI1LAP is located in Kortgene, Zeeland, JO11VN Regio 33
171209 05:36:28 <PI8LAP
171209 05:36:28 <PI8LAP    https://packet-radio.net / pd2lt@packet-radio.net
171209 05:36:28 <PI8LAP
171209 05:36:28 <PI8LAP    {BBS}  Linfbb V7.0.8-beta4 (pi8lap)
171209 05:36:28 <PI8LAP    {DX}   DXSpider V1.55 build 0.196 (pi1lap-4)
171209 05:36:28 <PI8LAP    {FPac} Fpac node 4.0.0 (pi1lap-7)
171209 05:36:28 <PI8LAP    {JNos} Jnos2.0k1 (pd2lt)
171209 05:36:28 <PI8LAP    {Xnet} Xnet v1.39 (pi1lap)
171209 05:36:28 <PI8LAP    {RMS}  Winlink Gateway 2.4.0-182 (pi1lap-10)
171209 05:36:28 <PI8LAP    {BPQ}  Linbpq 6.0.13.1 (pi1lap-9)
171209 05:36:28 <PI8LAP    {CHat} Linbpq chat (pi1lap-6)
171209 05:36:28 <PI8LAP    {COnv} WWconvers saup-1.62a
171209 05:36:28 <PI8LAP
171209 05:36:28 <PI8LAP    pi8lap@uro.pd2lt.ampr.org-IPv6: Trying pi8lap ... <Enter> aborts.
171209 05:36:28 <PI8LAP    *** connected to pi8lap
171209 05:36:29 <PI8LAP    [FBB-7.0.8-AB1FHMRX$]
171209 05:36:29 <PI8LAP    Hallo Niels, welkom.
171209 05:36:29 <PI8LAP    1:PI8LAP-BBS>
171209 05:36:29 >PI8LAP    [BPQ-6.0.13.1-B1FIHJM$]
171209 05:36:29 >PI8LAP    FF

Okay looks good.