This is an old revision of the document!


Test & Verify

Need More Data

  • If you have problems please run the following 2 scripts and compose a message like this:
./pluchk1.sh
 
# using what ever mail client you have compose a mail message to yourself and n7nix
 
./pluchk2.sh
  • Now compose a regular e-mail message and attach all these files:
    • ~/tmp/pluchk
    • /etc/postfix/man.cf
    • /etc/postfix/master.cf
    • /etc/postfix/transport

pluchk1.sh

#!/bin/bash
#
# File : pluch1.sh
#
# Verify paclink-unix install, part 1


scriptname="`basename $0`"
user=$(whoami)

VERSION="1.0"

TMPDIR="/home/$user/tmp"
DEBUGFILE="$TMPDIR/pluchk.txt"

WL2KDIR="/usr/local/var/wl2k"
OUTBOXDIR="$WL2KDIR/outbox"

MAILDIR1="/home/$user/Mail"
MAILDIR2="/home/$user/mail"
MAILDIR3="/var/mail"

# Verify NOT running as root
if [[ $EUID -eq 0 ]] ; then
  echo "*** Do NOT run as root ***" 2>&1
  exit 1
fi

# check for existence of a local tmp directory
if [ ! -d "$TMPDIR" ] ; then
  mkdir $TMPDIR
fi

# Collect some data
{
echo "=== Debug log file $(date) ==="
echo "=== local Mail dir ==="
if [ -e $MAILDIR1 ] ; then
  ls -alt $MAILDIR1
fi
if [ -e $MAILDIR2 ] ; then
  ls -alt $MAILDIR2
fi
echo "=== /var/mail ==="
if [ -e $MAILDIR3 ] ; then
  ls -alt $MAILDIR3
fi

echo
echo "=== $WL2KDIR ==="

if [ -d $WL2KDIR ] ; then

  filecount=$(ls -1 $OUTBOXDIR | wc -l)
  ls -alt $WL2KDIR
  echo
  echo "=== $OUTBOXDIR (count $filecount) ==="
  ls -alt $OUTBOXDIR
else
  echo "$WL2KDIR not found"
fi

echo
echo "=== mail log #1 ==="
tail -n 6 /var/log/mail.log
echo
echo "=== sys log #1 ==="
tail -n 6 /var/log/syslog
} > $DEBUGFILE

echo "$scriptname done"
exit 0

pluchk2.sh

#!/bin/bash
#
# File : pluch2.sh
#
# Verify paclink-unix install, part 2


scriptname="`basename $0`"
user=$(whoami)
wait_time=10

VERSION="1.0"

TMPDIR="/home/$user/tmp"
DEBUGFILE="$TMPDIR/pluchk.txt"

WL2KDIR="/usr/local/var/wl2k"
OUTBOXDIR="$WL2KDIR/outbox"

MAILDIR1="/home/$user/Mail"
MAILDIR2="/home/$user/mail"
MAILDIR3="/var/mail"

# ==== Function telnet call ====
# arg1 = iteration identifier

do_telnet()
{
  {
    wl2ktelnet 2>&1
    echo
    echo "=== mail log $1 ==="
    tail -n 10 /var/log/mail.log
    echo
    echo "=== sys log $1 ==="
    tail -n 10 /var/log/syslog
    echo
    filecount=$(ls -1 $OUTBOXDIR | wc -l)
    echo "=== finished $1 with outgoing count $filecount ==="
    echo
  } >> $DEBUGFILE
}

#==== Main ====
# Verify NOT running as root
if [[ $EUID -eq 0 ]] ; then
  echo "*** Do NOT run as root ***" 2>&1
  exit 1
fi

# collect some data
do_telnet 2

echo "waiting for $wait_time seconds ..."
sleep $wait_time

do_telnet 3

echo "$scriptname done"
exit 0

AX.25 to TNC connection

  • Verify that the AX.25 config & TNC to radio & TNC to computer connections are working properly.
  • Receive tests

mheard

  • mheard is found in the ax25-tools package or tar ball
  • Display information about most recently heard AX.25 calls
mheard
man mheard

listen

  • listen is found in the ax25-apps package or tar ball
  • Monitor network AX.25 traffic heard by the system.
listen -a
man listen

E-mail client & MTA (postfix) config

  • Compose an e-mail with your e-mail client & send e-mail
  • A file should appear in the paclink-unix outbox waiting for a pending transport operation via wl2ktelnet, wl2kax25 or wl2kserial
ls -salt /usr/local/var/wl2k/outbox
  • Verify that the permissions in your wl2k directory are OK ie. user username and group mail
  • For example for user gunn and group mail:
     Directory of /usr/local/var/wl2k
  drwxrwsr-x    3 gunn     mail         4096 Nov  2  2013 ./
  drwxr-sr-x    4 root     staff        4096 Nov  2  2013 ../
  drwxrwsr-x    2 gunn     mail         4096 Dec  7  2013 outbox/
  -rw-------    1 gunn     mail        12288 Jan  5 14:55 mid.db
  • verify that user is in group mail by executing:
groups
  • or
id

wl2ktelnet test

  • wl2ktelnet will test your mail & paclink-unix config and does not touch your TNC or radio.
    • You must have an internet connection to make this work as it uses the telnet internet protocol
  • Compose a message addressed to your callsign, verify that a file appears in the outbox and send with telnet.
wl2ktelnet
man wl2ktelnet
  • Run the wl2ktelnet program again, you should receive the message you just composed to yourself.
    • Receiving mail addressed to yourself only works if the mail.wl2k program uses the '-m' argument.

wl2kax25 test

  • Repeat the above test but use the wl2kax25 program instead of wl2ktelnet.
    • This uses your radio and TNC rather than the internet.
  • locate a nearby RMS gateway by using mheard, listen or the Winlink Universal RMS Map
  • <someRMSGateway> will be a valid ham callsign with usually but not always having a sid of 10
    • ie. n7nix-10
  • <someDigitpeater> will be any alphanumberic restricted to 8 characters in length
    • ie. digi
    • digipeater callsigns are sometimes aliases & will not necessarily look like valid callsigns.
wl2kax25 -c <someRMSGateway>
# or
wl2kax25 -c <someRMSGateway> <someDigipeater>
man wl2kax25
plu/test_verify.1399230310.txt.gz · Last modified: 2014/05/04 12:05 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0