pythoninthegrass / ascii-movie

🌌 Star Wars telnet server written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ascii-movie

ascii-movie logo

Build Artifact Hub

The original Star Wars telnet server is currently down, so why not implement it in Go? This server will open a TCP server on 0.0.0.0:23 and an SSH server on 0.0.0.0:22 which stream the original Star Wars ASCII movie to command line clients.

See it in action:

  • SSH: Run ssh gabecook.com
  • Telnet: Run telnet gabecook.com or nc gabecook.com 23

Demo

ascii-movie.mp4
Also available on asciinema

Usage

The app can play a movie directly on your terminal with the play subcommand, or it can host an SSH and Telnet stream server with the serve subcommand.

See generated docs for command line usage information.

Docker (Suggested)

An image is available at ghcr.io/gabe565/ascii-movie.

Watch Locally

The following command will run a container that plays the movie directly in your terminal.

docker run --rm -it ghcr.io/gabe565/ascii-movie play

Serve Movie over Telnet and SSH

The following command will run a Telnet server on port 23 and an SSH server on port 2222.

docker run --rm -it -p 23:23 -p 2222:22 ghcr.io/gabe565/ascii-movie serve

Kubernetes

A Helm chart is available for Kubernetes deployments. See charts.gabe565.com or gabe565/charts for details.

Local Build

# Compile the app
go install github.com/gabe565/ascii-movie@latest

# Run the app in your terminal
ascii-movie play

# Or run it as a server
ascii-movie serve

# Now, run `telnet localhost` or `nc localhost 23` to watch the movie!

About

🌌 Star Wars telnet server written in Go

License:GNU General Public License v3.0


Languages

Language:Go 97.7%Language:Dockerfile 2.3%