Changes

From SME Server
Jump to navigationJump to search
1,949 bytes added ,  21:55, 24 June 2023
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..."
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<syntaxhighlight lang="bash">
yum install java-1.7.0-openjdk
</syntaxhighlight>then run the script and fill the questions the same way<syntaxhighlight lang="bash">
# 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
[...]
</syntaxhighlight>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.<syntaxhighlight lang="bash">
db accounts set minecraft system
config set msm service TCPPort 25565 status enabled

</syntaxhighlight>also need to add the scripts for systemd<syntaxhighlight lang="bash">
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
</syntaxhighlight>
[[Category:Howto]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu