diff --git a/scripts/install-bbs-server.sh b/scripts/install-bbs-server.sh new file mode 100755 index 0000000..d1d0a25 --- /dev/null +++ b/scripts/install-bbs-server.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 8 November 2024 +# Updated : 28 November 2024 +# Purpose : Install Linbpq +# +# Notes: +# These build steps are partially based on an article by the Modern Ham (KN4MKB). +# https://themodernham.com/install-linbpq-bbs-packet-node-on-debian-ubuntu-and-raspbian/ + +VERSION=latest +FILE=linbpq +LINK_PATH=/opt/linbpq +INSTALL_DIR=/opt/linbpq-${VERSION} +INSTALL_BIN_DIR=${INSTALL_DIR}/bin + +et-log "Installing Dan Bernstein's tcpserver..." +apt install ucspi-tcp -y + +et-log "Installing Linbpq..." + +et-log "Installing 32-bit dependencies for Linbpq..." +dpkg --add-architecture i386 && apt update && apt install \ + libpcap0.8-dev:i386 \ + libasound2-dev:i386 \ + libz3-4:i386 \ + zlib1g:i386 \ + -y + +URL="https://www.cantab.net/users/john.wiseman/Downloads/${FILE}" + +if [ ! -e ${FILE} ]; then + et-log "Downloading Linbpq: ${URL}" + curl -s -L -o ${FILE} --fail ${URL} +fi + +[ ! -e ${INSTALL_BIN_DIR} ] && mkdir -v -p ${INSTALL_BIN_DIR} +chmod 755 ${FILE} && mv -v ${FILE} ${INSTALL_BIN_DIR} + +CWD_DIR=$(pwd) + +[ -e ${LINK_PATH} ] && rm ${LINK_PATH} +ln -s ${INSTALL_DIR} ${LINK_PATH} + +stow -v -d /opt linbpq -t /usr/local + +cd ${CWD_DIR} diff --git a/scripts/install.sh b/scripts/install.sh index 192fa06..8ba3757 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 22 November 2024 +# Updated : 28 November 2024 # Purpose : Main installer for EmComm Tools OS Community . ./env.sh @@ -39,6 +39,7 @@ exitIfNotRoot ./install-direwolf.sh ./install-yaac.sh ./install-bbs-client.sh +./install-bbs-server.sh # Install modems ./install-ardop.sh diff --git a/tests/test-linbpq.sh b/tests/test-linbpq.sh new file mode 100755 index 0000000..a747f10 --- /dev/null +++ b/tests/test-linbpq.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 28 November 2024 +# Purpose : Test linbpq installation + +OUT=$(which linbpq) +exit $?