Difference between revisions of "Minecraft"
Unnilennium (talk | contribs) (Created page with "How-To: Install a Minecraft server and map system on SME Server 10. == Introduction == we assume you have a SME Server in server-gateway mode fully functional, including, dom...") |
Unnilennium (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
== Install MSM Minecraft Server Manager == | == Install MSM Minecraft Server Manager == | ||
− | install prerequisite<syntaxhighlight lang="bash"> | + | install prerequisite: '''Java 8 is required to run Minecraft versions 1.12 through 1.17'''. Java 17 is required to run Minecraft version 1.18 and up<syntaxhighlight lang="bash"> |
yum install java-1.7.0-openjdk | yum install java-1.7.0-openjdk | ||
</syntaxhighlight>then run the script and fill the questions the same way<syntaxhighlight lang="bash"> | </syntaxhighlight>then run the script and fill the questions the same way<syntaxhighlight lang="bash"> | ||
Line 23: | Line 23: | ||
you will need to sync config db and accounts db to sync in order to have service to be enabled and to avoid use of the systemname.<syntaxhighlight lang="bash"> | you will need to sync config db and accounts db to sync in order to have service to be enabled and to avoid use of the systemname.<syntaxhighlight lang="bash"> | ||
db accounts set minecraft system | db accounts set minecraft system | ||
− | config set msm service TCPPort 25565 status enabled | + | config set msm service TCPPort 25565 status enabled access public |
</syntaxhighlight>also need to add the scripts for systemd<syntaxhighlight lang="bash"> | </syntaxhighlight>also need to add the scripts for systemd<syntaxhighlight lang="bash"> | ||
Line 40: | Line 40: | ||
/etc/e-smith/events/actions/systemd-default | /etc/e-smith/events/actions/systemd-default | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == Install dynmap == | ||
+ | we assume you configured dynmap plugin to point to /opt/msm/dymap | ||
+ | |||
[[Category:Howto]] | [[Category:Howto]] |
Latest revision as of 18:29, 25 June 2023
How-To: Install a Minecraft server and map system on SME Server 10.
Introduction
we assume you have a SME Server in server-gateway mode fully functional, including, domains DNS, IP, ports and SSL certificate using Letsencrypt.
we assume also that your servers will live in /opt/msm. You can add a dedicated drive mounted there.
Install MSM Minecraft Server Manager
install prerequisite: Java 8 is required to run Minecraft versions 1.12 through 1.17. Java 17 is required to run Minecraft version 1.18 and up
yum install java-1.7.0-openjdk
then run the script and fill the questions the same way
# wget -q http://git.io/lu0ULA -O /tmp/msm && bash /tmp/msm
MSM INSTALL: Configure installation
Install directory [/opt/msm]:
New server user to be created [minecraft]:
Add new user as system account? [y/N]: y
Complete installation with these values? [y/N]: y
MSM INSTALL: Updating sources
[...]
This will install all the needed element for MSM to work and create a user. It will also update your server and install deps: jq, oniguruma you will need to sync config db and accounts db to sync in order to have service to be enabled and to avoid use of the systemname.
db accounts set minecraft system
config set msm service TCPPort 25565 status enabled access public
also need to add the scripts for systemd
mkdir -p /etc/e-smith/templates-custom//etc/systemd/system-preset/49-koozali.preset/
echo '{
# we need to force because the script lives in init.d
$status = $msm{status} || "disabled";
$OUT .= "";
if ($status eq "enabled") {
$OUT .= "enable msm.service\n"
}
}
' > /etc/e-smith/templates-custom//etc/systemd/system-preset/49-koozali.preset/80msm
cd /usr/lib/systemd/system ; wget https://github.com/msmhq/msm/raw/master/init/msm%40.service https://github.com/msmhq/msm/raw/master/init/msm.service
/etc/e-smith/events/actions/systemd-default
Install dynmap
we assume you configured dynmap plugin to point to /opt/msm/dymap