Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

apt-get install openssh-server


Install telnetd

apt-get install telnetd


Install vncserver if needed for remote admin.

...

Code Block
#!/bin/bash

set -e

MAXNODE=${BBSNODES:-`cat /dos/numnodes`}
FOUNDNODE=""

for NODE in `seq 1 $MAXNODE`; do
  if ! check-dosemu-session node$NODE &> /dev/null; then
    FOUNDNODE="$NODE"
    break
  fi
done

if [ -z "$FOUNDNODE" ]; then
  echo "All nodes are busy now; please try again later."
  exit 1
fi

SESSNAME=node$FOUNDNODE
STARTUP=/dos/drive_h/STARTUP/NODE$FOUNDNODE.BAT

# Hook to let node prep happen
if [ -e /dos/nodeprephook.sh ]; then
  . /dos/nodeprephook.sh
fi

printf "Welcome to node $FOUNDNODE.  Please stand by while we connect you...\r\n"
exec startdossession $SESSNAME "H:\\STARTUP\\NODE$FOUNDNODE"

chmod +x /usr/local/bin/startnode


Add startdossession script

...

Code Block
#!/bin/bash

export DISPLAY=:1
SESSNAME="console"

set -e
set -x

if [ "`cat /dos/startconsole`" = 0 ]; then
  echo "$0 startup disabled by /dos/startconsole; not starting."
  sleep 900d
  exit 0
fi


waitfordaemon#waitfordaemon vncserver true
waitfordaemon#waitfordaemon tcpsercon true

exec socat TCP4:localhost:7000 EXEC:"startdossession console",pty

...