Sign inSign up

jaromaz/stws

By jaromaz

•Updated over 6 years ago

SyncTERM (BBS terminal program) as a Web Service.

Image
0

1.1K

jaromaz/stws repository overview

⁠SyncTERM Web Service

⁠Description

stws alows SyncTERM (BBS terminal program) to be accessible through a standard Web browser in a full screen mode. It also makes Telnet BBS Guide and files downloaded from BBSes available through the web interface in a full screen mode (recommended browser: Google Chrome).

⁠Usage

You can run the container by entering:

docker run -d -p 6080:6080 jaromaz/stws

then simply point your browser at:

http://YourDockerIP:6080

Default password : syncterm

To create your own password, run a container with the environment variable PASSWD:

docker run -e PASSWD=mypass -d -p 6080:6080 jaromaz/stws

You can also use a password file:

docker run --env-file ./passwd -d -p 6080:6080 jaromaz/stws

⁠Demo

This video presents file downloading via telnet and SyncTERM Web Service:

⁠Built with

⁠Build from source

If you want to make local modifications to this image for development purposes, just copy and run the following lines:

git clone https://github.com/jaromaz/stws.git && \
cd stws && \
docker build --tag stws:latest --no-cache . && \
echo y | docker image prune --filter "label=stage=builder-stws" && \
docker run -d -p 6080:6080 stws

⁠License

This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 - see the LICENSE file for details. I recommend to check the licenses assigned to the individual components of this project.

⁠Dockerfile

#   SyncTERM as a Web Service
#   Docker multi-stage build
#   by Jaromaz https://jm.iq.pl

# ---------- Builder ----------------- #

FROM debian:10.4-slim as builder-stws

LABEL stage=builder-stws

RUN apt-get update && apt-get install -y git patch

WORKDIR /tmp

RUN git clone https://github.com/novnc/noVNC.git && \
    ( \
        cd noVNC && \
        git checkout -b novnc 42e3b03 && \
        rm -r .git* \
    ) && \
    git clone https://github.com/novnc/websockify && \
    ( \
        cd websockify && \
        git checkout -b websockify 86a20b2 && \
        rm -r .git* \
    ) && \
    mv websockify noVNC/utils && \
    git clone https://github.com/robinparisi/tingle.git && \
    ( \
        cd tingle && \
        git checkout -b tingle 928dea3 && \
        rm -r .git* \
    ) && \
    mv tingle noVNC

COPY ./syncterm /tmp/syncterm

RUN patch noVNC/vnc.html < syncterm/stws.patch && \
    cp -r noVNC syncterm/stws/ && \
    mkdir syncterm/.vnc && \
    rm syncterm/stws.patch && \
    mkdir syncterm/stws/noVNC/files && \
    gzip -d syncterm/stws/bin/syncterm.gz



# -------- SyncTERM container -------- #

FROM debian:10.4-slim

LABEL maintainer="Jaromaz [https://jm.iq.pl]"

RUN adduser --disabled-password --gecos '' syncterm && \
    apt-get update && \
    apt-get install -y tightvncserver libncurses5 python3 python3-numpy procps && \
    ln -s /usr/bin/python3 /usr/bin/python && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

USER syncterm

ENV USER syncterm

WORKDIR /home/syncterm

COPY --chown=syncterm:syncterm --from=builder-stws /tmp/syncterm /home/syncterm

EXPOSE 6080

ENTRYPOINT ["./stws/bin/entrypoint.sh"]

For more information please visit my website: https://jm.iq.pl/bbs⁠.

Tag summary

Content type

Image

Digest

Size

113.5 MB

Last updated

over 6 years ago

docker pull jaromaz/stws