Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eduardgomezescandell/minecraft-server
Systemd-managed Minecraft server
https://github.com/eduardgomezescandell/minecraft-server
Last synced: 13 days ago
JSON representation
Systemd-managed Minecraft server
- Host: GitHub
- URL: https://github.com/eduardgomezescandell/minecraft-server
- Owner: EduardGomezEscandell
- Created: 2024-08-04T00:00:34.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-01T18:30:17.000Z (4 months ago)
- Last Synced: 2024-11-07T10:53:27.448Z (2 months ago)
- Language: Makefile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Systemd-managed Minecraft service
This repository contains tools to manage a Minecraft server via systemd.
## Option 1: Running on the hosted machine
To run the Minecraft server on the current machine, just go `cd minecraft-server` and use the Makefile there.
This should do it:
```bash
cd minecraft-server
make dependencies
make install
make start
```## Option 2: Running on some other machine
This is useful if you have an Azure/AWS/GCP, etc. machine. Obtain your SSH host and user and do:
```bash
SSH_TARGET="user@hostname" ./deploy.sh
```Alternatively, it is worth adding the host to your `.ssh/config` file. Run the following command
with the proper user and hostname.
```bash
cat << EOF >> .ssh/config
Host minecraft
HostName HOSTNAME
User USER
Port 22
IdentityFile ~/.ssh/YOUR_SSH_KEY
```