about-system

Cube Computer

System Setup

Storage

ZFS

Starting a server

There are lots of server instances in ~/minecraft. Included are the old servers from previously on the Cube, and 3 brand new up-todate servers. They all are configured for the same port so you can only run one at a time.

cd ~/minecraft/<instance-name>
sh run.sh

The server runs in the foreground in your tmux session. Detach without stopping: Ctrl-b d

Stopping a server

Type stop in the server console, or from any shell:

mc-stop

Key directories

~/minecraft/     — server instances go here
~/minecraft/.zfs - Historic snapshots of servers
~/bin/           — simple scripts and tools
~/public_html/   — web content (not snapshoted)
~/notes/          — these docs, get published to https://minecraft.locklin.science/notes
~/.zfs       - Historic snapshots of the rest of home folder
~/share          - Available to laptop via windows share (over tailscale)

Commands (shell scripts in ~/bin)

Anything in ~/bin can be run from anywhere, it is part of the shell’s $PATH like any other program on Linux. The scripts are extremely simple and can be easily modified.

mc-stop          stop the running server
mc-console       attach to the server console
mc-status        show server status
mc-render        rebuild world maps (done automatically)
make_web        rebuild the notes pages and index page from markdown files

Notes

Any markdown files in the ~/notes directory are used by make_web to generate the pages in https://minecraft.locklin.science/notes. Make a new markdown file and it will show up on the website. make_web was designed to be the world’s simplest static site generator -easy to understand how it works. It can be run as a command, but also runs periodically to keep things in sync.

Helpful tools