[xfbb] ubuntu 7.10 upgrade , xfbb now using 98% CPU

Ray Wells vk2tv at exemail.com.au
Fri May 16 07:14:45 CEST 2008


Danny Moss wrote:

>Ray Wells wrote:
>  
>
>>Danny,
>>
>>There was a ZL who reported this problem many months ago = Peter Mallet, 
>>I think it was. Given that there has been no reported satisfactory 
>>solution I've been recommending steering clear of 7.10.
>>
>>I compiled the 7.10 kernel at the time on both 7.04 Kubuntu and v4.0 
>>Debian but couldn't duplicate the situation, leading me to suspect it 
>>was 7.10 specific.
>>
>>Ray vk2tv
>>  
>>    
>>
>HI Ray & Bo,
>
>I have just upgraded to Ubuntu 8.04   and now have broken it,   all the 
>ax25 stuff has loaded and the tns are beaconing but fbb will not start
>
>if I issue xfbbd of fbb &    it starts then comes up with 
>/usr/sbin/fbb   line 365 6628 aborted $FBB -i  Configureation error ! 
>giving up.
>
>Thank you both for your help
>Danny Moss
>VK7HDM
>
>
>  
>
Danny,

A problem I've encountered over the last year or so is, I've found that 
running /..../sbin/fbb & won't create the initial files required. I 
found that if the initial run is from /....../fbbsrc/install_sh the 
files are created and fbb then runs fine from /.../sbin/fbb & The only 
snag may be that install_sh may not exist if fbb is installed from a 
package. Here's a copy of install_sh for you to try. Copy it to a 
convenient location and I'd run it as root. If you have a packaged 
version of fbb you'll likely need to remove /usr/local and /local/ in 
the lines below.

Ray vk2tv

#!/bin/sh

CONFDIR=/usr/local/etc/ax25/fbb
DATADIR=/usr/local/var/ax25/fbb
DOSDIR=$DATADIR/fbbdos
LIBDIR=/usr/local/lib/fbb
SBINDIR=/usr/local/sbin

fbb_tree()
{
    echo
    echo "creating configuration tree ..."
    echo "  $CONFDIR"
    echo "  $CONFDIR/lang"
    mkdir -p $CONFDIR/lang
    echo "  $CONDIR/fwd"
    mkdir -p $CONFDIR/fwd

    echo "creating pg directory ..."
    echo "  $LIBDIR/pg"
    mkdir -p $LIBDIR/pg

    echo "creating script directory ..."
    echo "  $LIBDIR/script"
    mkdir -p $LIBDIR/script
   
    for hk in maintenance rerun end_session stop_system error_return 
sig_segv reset
    do
        echo "    $LIBDIR/script/$hk"
        if [ -e $LIBDIR/script/$hk ] ; then
            if [ ! -d $LIBDIR/script/$hk ] ; then
                echo "file $LIBDIR/script/$hk found and renamed 
$LIBDIR/script/$hk.old"
                mv $LIBDIR/script/$hk $LIBDIR/script/$hk.old
                mkdir $LIBDIR/script/$hk
            fi
        else
            mkdir -p $LIBDIR/script/$hk
        fi
    done

    echo "creating filters directory ..."
    echo "  $LIBDIR/filter"
    mkdir -p $LIBDIR/filter

    echo "creating servers directory ..."
    echo "  $LIBDIR/server"
    mkdir -p $LIBDIR/server

    echo "creating tools directory ..."
    echo "  $LIBDIR/tool"
    mkdir -p $LIBDIR/tool

    echo "creating fbbdos directory ..."
    echo "  $DOSDIR"
    echo "  $DOSDIR/yapp"
    mkdir -p $DOSDIR/yapp

    if [ ! -d $SBINDIR ] ; then
        echo "creating sbin directory ..."
        echo "  $SBINDIR"
        mkdir -p $SBINDIR
    fi
   
    echo "creating data tree ..."
    echo "  $DATADIR"
    for n in 0 1 2 3 4 5 6 7 8 9 ; do
        echo "  $DATADIR/mail/mail$n"
        mkdir -p $DATADIR/mail/mail$n
    done

    for n in 0 1 2 3 4 5 6 7 8 9 ; do
        echo "  $DATADIR/binmail/mail$n"
        mkdir -p $DATADIR/binmail/mail$n
    done

    echo "  $DATADIR/docs"
    mkdir -p $DATADIR/docs
    mkdir -p $DATADIR/docs/html
    echo "  $DATADIR/sat"
    mkdir -p $DATADIR/sat
    echo "  $DATADIR/wp"
    mkdir -p $DATADIR/wp
    echo "  $DATADIR/log"
    mkdir -p $DATADIR/log
    echo "  $DATADIR/oldmail"
    mkdir -p $DATADIR/oldmail
   
    echo "Done"
}

copy_files()
{   
    if [ -d $SRC ] ; then
        echo
        echo "Copying binary files"
        echo -n "  Copying fbb ... "
        cp fbb $SBINDIR
        if [ $? -eq 0 ] ; then
            echo "OK"
        else
            echo "Error copying fbb. Giving up !"
            echo
            exit 1
        fi
        chmod +x $SBINDIR/fbb
        for FILE in xfbbC xfbbd fbbgetconf satdoc satupdat ajoursat
        do
            echo -n "  Copying $FILE ... "
             cp $SRC/$FILE $SBINDIR
            if [ $? -eq 0 ] ; then
                echo "OK"
            else
                echo "Error copying src/$FILE. Giving up !"
                echo
                exit 1
            fi
            chmod +x $SBINDIR/$FILE
        done
    fi
   
    if [ -d $DATADIR/docs ] ; then
        for FILE in $DOCS/* ; do
            cp $FILE $DATADIR/docs
        done
        chmod +x $DATADIR/docs
        for FILE in $DOCS/html/* ; do
            cp $FILE $DATADIR/docs/html
        done
    fi

    for FILE in 20_epurmess 20_epurwp 20_epursat ; do
        if [ -f $LIBDIR/script/maintenance/$FILE ] ; then
            echo "  Skipping $FILE ... OK"
        else
            cp $FILE $LIBDIR/script/maintenance/$FILE
            chmod +x $LIBDIR/script/maintenance/$FILE
        fi
    done
    if [ -d $LIBDIR/tool ] ; then
        for FILE in clr_user epurmess epurwp maintinf ; do
            cp $SRC/$FILE $LIBDIR/tool
            chmod +x $LIBDIR/tool/$FILE
        done
    fi
    if [ -d $LIBDIR/server ] ; then
        for FILE in reqdir ; do
            cp $SRC/$FILE $LIBDIR/server
            chmod +x $LIBDIR/server/$FILE
        done
    fi
    if [ -d $CONF ] ; then
        echo
        echo "Copying configuration files"
        for FILE in \
                bbs.sys cron.sys forward.sys \
                langue.sys passwd.sys protect.sys \
                redist.sys reject.sys swapp.sys themes.sys
        do
            if [ ! -f $CONFDIR/$FILE ] ; then
                echo -n "  Copying $FILE ... "
                 cp $CONF/$FILE $CONFDIR
                if [ $? -eq 0 ] ; then
                    echo "OK"
                else
                    echo "Error !!"
                fi
            else
                echo "  Skipping $FILE ... OK"
            fi
        done
        echo "Copying forward file"
        for FILE in $FWD/*
        do
            F=`basename $FILE`
            if [ ! -f $CONFDIR/fwd/$F ] ; then
                echo -n "  Copying `basename $F` ... "
                 cp $FILE $CONFDIR/fwd
                if [ $? -eq 0 ] ; then
                    echo "OK"
                else
                    echo "Error !!"
                fi
            else
                echo "  Skipping $F ... OK"
            fi
        done
        for FILE in $CONF/lang/*
        do
            F=`basename $FILE`
            if [ ! -f $CONFDIR/lang/$F ] ; then
                echo -n "  Copying `basename $F` ... "
                 cp $FILE $CONFDIR/lang
                if [ $? -eq 0 ] ; then
                    echo "OK"
                else
                    echo "Error !!"
                fi
            else
                echo "  Skipping $F ... OK"
            fi
        done
        echo "Done"
    else
        echo
        echo "Warning : original configuration files not found in $CONF"
    fi
}

echo
echo "FBB installation tool"
echo
echo "Warning ! This will replace binaries. Configuration files will not 
be replaced."
echo -n "Go on anyway ? (Y/N) "
read REP
if [ "$REP" = "N" -o "$REP" = "n" ] ; then
       exit 0
fi

echo

CONF=`dirname $0`/conf
SRC=`dirname $0`/src
FWD=`dirname $0`/fwd
DOCS=`dirname $0`/docs

fbb_tree
copy_files

echo
echo "Installation done"
echo

exit 0
 


More information about the xfbb mailing list