]> git.r.bdr.sh - rbdr/mobius/blame - README.md
Update goreleaser config
[rbdr/mobius] / README.md
CommitLineData
6e16e926 1<picture>
a3ca1960 2 <source media="(prefers-color-scheme: dark)" srcset="dark_logo.png">
3 <source media="(prefers-color-scheme: light)" srcset="light_logo.png">
4fad3266 4 <img src="dark_logo.png" alt="Mobius Logo">
6e16e926 5</picture>
6
6988a057
JH
7# Mobius
8
2a46179f 9Mobius is a cross-platform command line [Hotline](https://en.wikipedia.org/wiki/Hotline_Communications) client and server implemented in Golang.
6988a057 10
2a46179f 11The goal of Mobius server is to make it simple to run a Hotline server on macOS, Linux, and Windows, with full compatibility for all popular Hotline clients.
6988a057 12
2a46179f 13The goal of the Mobius client is to make it fun and easy to connect to multiple Hotline servers through a [cool retro terminal UI](https://github.com/jhalter/mobius/wiki/Mobius-Client-Screenshot-Gallery).
6988a057 14
2a46179f 15## Getting started
69fceb2e 16
2a46179f
JH
17### Docker
18
19If you run Docker, you can quickly try out the Mobius server with the official image from Docker hub:
20
c2f62e9d 21 docker run --pull=always --rm -p 5500:5500 -p 5501:5501 jhalter/mobius-hotline-server:latest
2a46179f
JH
22
23This will start the Mobius server with the Hotline ports 5500 and 5501 exposed on localhost using a default configuration from the image.
24
25To edit the configuration and serve files from your host OS, include the `-v` option to setup a Docker [bind mount](https://docs.docker.com/storage/bind-mounts/):
69fceb2e 26
2a46179f
JH
27 export HLFILES=/Users/foo/HotlineFiles #
28 docker run --rm -p 5500:5500 -p 5501:5501 -v $HLFILES:/usr/local/var/mobius/config jhalter/mobius-hotline-server:latest -init
69fceb2e 29
2a46179f
JH
30You'll now find a configuration directory on your host OS populated with a default configuration:
31
32```
33❯ ls -al $HLFILES
34total 32
35drwxr-xr-x 8 jhalter staff 256 Jun 12 17:11 .
36drwxr-x---+ 49 jhalter staff 1568 Jun 12 17:11 ..
37-rw-r--r-- 1 jhalter staff 38 Jun 12 17:11 Agreement.txt
38drwxr-xr-x 3 jhalter staff 96 Jun 12 17:11 Files
39-rw-r--r-- 1 jhalter staff 19 Jun 12 17:11 MessageBoard.txt
40-rw-r--r-- 1 jhalter staff 15 Jun 12 17:11 ThreadedNews.yaml
41drwxr-xr-x 4 jhalter staff 128 Jun 12 17:11 Users
42-rw-r--r-- 1 jhalter staff 313 Jun 12 17:11 config.yaml
43```
44
45Edit `config.yaml` to get started personalizing your server.
69fceb2e 46
69fceb2e
JH
47
48### Mac OS
49
2a46179f 50For Mac OS the easiest path to installation is through Homebrew.
6988a057
JH
51
52#### Client
53
2a46179f 54To install the client:
69fceb2e 55
2a46179f 56 brew install jhalter/mobius-hotline-client/mobius-hotline-client
69fceb2e 57
2a46179f 58Then run `mobius-hotline-client` to get started.
69fceb2e 59
6988a057
JH
60#### Server
61
2a46179f
JH
62To install the server:
63
bbecef95 64 brew install jhalter/mobius-hotline-server/mobius-hotline-server
6988a057 65
2a46179f 66After installation `mobius-hotline-server` will be installed at `$HOMEBREW_PREFIX/bin/mobius-hotline-server` and should be in your $PATH.
69fceb2e 67
2a46179f 68The server config file directory is under `$HOMEBREW_PREFIX/var/mobius` which by default contains:
69fceb2e 69
2a46179f
JH
70 /opt/homebrew/mobius/config/MessageBoard.txt
71 /opt/homebrew/var/mobius/config/config.yaml
72 /opt/homebrew/var/mobius/config/ThreadedNews.yaml
73 /opt/homebrew/var/mobius/config/Agreement.txt
74 /opt/homebrew/var/mobius/config/Users/guest.yaml
75 /opt/homebrew/var/mobius/config/Users/admin.yaml
69fceb2e
JH
76
77Edit `/usr/local/var/mobius/config/config.yaml` to change your server name and other settings.
78
79Edit `/usr/local/var/mobius/config/Agreement.txt` to set your server agreement.
80
81Run `mobius-hotline-server -help` for usage options.
82
6988a057
JH
83### Linux
84
d8e28ebc 85Download a compiled release for your architecture from the Releases page or follow build from source instructions
6988a057
JH
86
87### Windows
88
89 TODO
90
69fceb2e 91### Build from source
6988a057 92
69fceb2e 93To build from source, run:
6988a057 94
2a46179f
JH
95 make all
96
97Then grab your desired build from `dist`