portable-mc-server/README.md

81 lines
3.4 KiB
Markdown
Raw Normal View History

2024-01-30 20:39:50 +03:00
# Your Portable Minecraft Server
This is a project that allows you to easily install and configure a minecraft server on your Raspberry Pi or other similar device.
## Advantages
- Easy and very fast installation
- Does not require any knowledge
- Portable (you can bring your Raspberry Pi wherever you want)
- It is cheap (No need to pay for anything other than electricity if you already have a Raspberry Pi)
- Runs on Raspberry Pi 4 and Raspberry Pi 5 (4G and 8GB model)
- You'll look cool in front of your friends if you run a server on the board (if they don't know what Raspberry Pi is)
- Does not load your computer
- You can control and configure everything (as long as your board has enough power)
## Setup
... ToDo...?
## Connecting to the server
... ToDo...?
## Configuring
You can configure nearly everything by setting up the following Enviroment Variables:
| Variable | Description | Value |
|---|---|---|
| `RAM` | How much RAM do you want to allocate to the server? | `1G` (default) |
2024-01-31 16:23:12 +03:00
| `MC_VERSION` | What version of Minecraft do you want to install? | `1.20.4` (default) |
2024-01-31 19:29:11 +03:00
| `MC_SERVER` | Which server should be installed automatically? (only `pufferfish`, `purpur`, `patina`, `paper` are supported) | `purpur` (default) |
2024-01-30 20:39:50 +03:00
| `SSH_PASSWORD` | SSH password | `admin` (default) |
2024-01-31 16:23:12 +03:00
| `FORCE_REINSTALL` | Would you like to reinstall your server? `1` - yes; `0` - no | `0` (default) |
2024-01-30 20:39:50 +03:00
**NOTE:** You can set Environment Variable within balenaCloud. On the left, simply click on “Device Variables” and then click the “Add Variable” button. Give it a name, and set the value.
2024-01-31 16:23:12 +03:00
**NOTE:** You can also delete everything on the server and automatically reinstall it. On the left, simply click on “Actions” and then click the “Purge Data” button. Insert `1` and click “Purge Data”.
2024-01-30 20:39:50 +03:00
![set variable demonstration](https://cdn.arbuz.icu/img/balena/balenaSetVariables.png)
2024-01-31 16:23:12 +03:00
## Using RCON
2024-01-31 19:29:11 +03:00
You can connect to your server console using Minecraft RCON. You only need server IP-address, RCON port (usually default) and RCON password (you should change it in server.properties, but default is admin).
If you are using Windows 10 (11) system, you can use [my simple batch script](https://gist.github.com/grey-cat-1908/6aa7894ae94588886aa5a1c7e786b5e4) to install and use Minecraft RCON.
2024-01-31 16:23:12 +03:00
2024-01-30 20:39:50 +03:00
## Connecting to the server using SFTP
I recommend using FileZilla to connect to the server via SFTP.
### FileZilla User Guide
... ToDo...?
2024-01-30 21:08:09 +03:00
Once the connection is established, remember to navigate to the `/usr/src/mcfiles` directory.
2024-01-30 20:39:50 +03:00
2024-01-31 16:23:12 +03:00
## Changing server
Purpur is automatically installed the first time you run it. If you want to change it, you can set the environment variable `MC_SERVER`. (See the configuration section for more details.) Remember to reinstall the server afterwards (set `FORCE_REINSTALL` environment variable to `1`).
**NOTE:** Please note that `pufferfish` versions can only take integer values, i.e.: `1.19`, `1.20` can be specified; `1.20.4` cannot be specified, the game will not start. If you specify version `1.20`, you will be able to play with `1.20.4`.
| Server | `MC_SERVER` value |
| --- | --- |
| [Pufferfish](https://github.com/pufferfish-gg/Pufferfish) | `pufferfish`
| [Patina](https://github.com/PatinaMC/Patina) | `patina`
| [Purpur](https://purpurmc.org/) | `purpur`
2024-01-31 19:29:11 +03:00
| [Paper](https://papermc.io/) | `paper`
2024-01-31 16:23:12 +03:00
2024-01-30 20:39:50 +03:00
## Installing plugins
... ToDo...?
## Mods...?
2024-01-30 21:08:09 +03:00
... ToDo...?
2024-01-31 17:41:58 +03:00
## Bedrock Support
... ToDo...?