Minetest Server aufsetzen

installieren, modifizeren, administrieren
Post Reply
User avatar
h3rb3rn
Administrator
Posts: 189
Joined: Mon 9. Feb 2015, 23:29

Minetest Server aufsetzen

Post by h3rb3rn »

aktualisierte Fassung vom 26.10.2022

Manuelle Installation mit Erklärung


In diesem Beispiel wird beschrieben, wie auf einem Ubuntu/Debian/Fedora based Server/vServer/Container ein 24/7 erreichbaren Minetest Server aufgesetzt und wie dieser erweitert wird.


Schritt 1:

Minetest auf dem Server installieren

Ubuntu

Code: Select all

apt-get install minetest screen
ab Debian 11 (bullseye)

Code: Select all

apt-get install -t bullseye-backports minetest screen
Fedora

Code: Select all

dnf -y install minetest-server screen


Schritt 2:

Minetest Server zum ersten mal laufen lassen, damit die neue Karte generiert wird

Wichtig: niemals als root!!! Legt euch einen extra Benutzer ohne root Rechte an um den Server laufen zu lassen!

Code: Select all

minetest --server
Wenn der Server fertig gestartet ist mit STRG + C beenden. Auch die Screen Session wird hiermit automatisch beendet




Schritt 3:

MODs installieren

Git und wget installieren

Debian/Ubuntu

Code: Select all

apt install wget git
Fedora

Code: Select all

dnf install wget git
minetest_mods.sh
Minetest Mods installieren
(5.63 KiB) Downloaded 208 times
In der Konsole ausführen

Code: Select all

cd ~;wget https://4noobs.de/download/file.php?id=247 -O minetest_mods.sh; chmod u+x minetest_mods; sh minetest_mods.sh
Hierfür hab ich eine Liste mit Git-Hub Quellen angelegt welche ich auch für das Update der MODs nutze.

Ihr in eurem Profilordner des Minetest Benutzerkontos den Ordner worldmods unter ~/.minetest/worlds/world/ anlegen.

Code: Select all

#!/bin/bash
#
# https://content.minetest.net/packages/?type=mod

#add minetest repository and install minetest and server dependencies
path=~/.minetest/worlds/world/worldmods

mkdir -p $path;

### Gameplay
cd $path;
git clone --recursive https://github.com/minetest-mods/unified_inventory.git unified_inventory;
cd unified_inventory;
git pull;

### alternativ inventory
#cd $path;
#git clone --recursive https://github.com/minetest-mods/i3.git i3_inventory;
#cd i3_inventory;
#git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/simple_skins.git simple_skin;
cd simple_skin;
git pull;

cd $path;
git clone --recursive https://github.com/appgurueu/epidermis.git epidermis;
cd episermis;
git pull;

cd $path;
git clone --recursive https://github.com/minetest-mods/3d_armor.git 3d_armor;
cd 3d_armor;
git pull;

#cd $path;
#git clone --recursive https://github.com/minetest-mods/drawers.git drawers;
#cd drawers;
#git pull;

### Mobs
cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_redo.git mobs_redo;
cd mobs_redo;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_water.git mobs_water;
cd mobs_water;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_animal.git mobs_animal;
cd mobs_animal;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mob_horse.git mob_horse;
cd mob_horse;
git pull;

cd $path;
git clone --recursive https://github.com/ElCeejo/animalia.git animalia;
cd animalia;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_sky.git mobs_sky;
cd mobs_sky;
git pull;

cd $path;
git clone --recursive https://github.com/APercy/motorboat.git farming;
cd farming;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_monster.git mobs_monster;
cd mobs_monster;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/creeper.git creeper;
cd creeper;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/mobs_npc.git mobs_npc;
cd mobs_npc;
git pull;

### Weapons
cd $path;
git clone --recursive https://notabug.org/TenPlus1/bows.git bows;
cd bows;
git pull;

### Nether
cd $path;
git clone --recursive https://github.com/minetest-mods/nether.git nether;
cd nether;
git pull;

cd $path;
git clone --recursive https://github.com/rael5/minetest-nether-monsters.git minetest-nether-monsters;
cd minetest-nether-monsters;
git pull;

### Magie
cd $path;
git clone --recursive https://github.com/appgurueu/modlib.git modlib;
cd modlib;
git pull;

cd $path;
git clone --recursive https://github.com/AidanLCB/overpowered.git overpowered;
cd overpowered;
git pull;

### eat and food
#cd $path;
#git clone --recursive https://notabug.org/TenPlus1/wine.git wine;
#cd wine;
#git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/bonemeal.git bonemeal;
cd bonemeal;
git pull;

### Village
cd $path;
git clone --recursive https://github.com/Sokomine/handle_schematics.git handle_schematics;
cd handle_schematics;
git pull;

cd $path;
git clone --recursive https://github.com/theFox6/working_villages.git working_villages;
cd working_villages;
git pull;

#cd $path;
#git clone --recursive https://gitlab.com/freelikegnu/witches.git witches;
#cd witches;
#git pull;

cd $path;
git clone --recursive https://github.com/mt-mods/pipeworks.git pipeworks;
cd pipeworks;
git pull;

cd $path;
git clone --recursive https://github.com/minetest-mods/mesecons.git mesecons;
cd mesecons;
git pull;

cd $path;
git clone --recursive https://github.com/joe7575/techage_modpack.git techage;
cd techage;
git pull;

cd $path;
git clone --recursive https://notabug.org/TenPlus1/protector.git protector;
cd protector;
git pull;

cd $path;
git clone --recursive https://git.bananach.space/advtrains.git advtrains;
cd advtrains;
git pull;

cd $path;
git clone --recursive https://github.com/Marnack/dlxtrains_modpack.git dlxtrains;
cd dlxtrains;
git pull;

cd $path;
git clone --recursive https://github.com/mt-mods/basic_materials.git basic_materials;
cd basic_materials;
git pull;

cd $path;
git clone --recursive https://github.com/APercy/hidroplane.git hidroplane;
cd hidroplane;
git pull;

cd $path;
git clone --recursive https://github.com/mt-mods/homedecor_modpack.git homedecor;
cd homedecor;
git pull;

cd $path;
git clone --recursive https://github.com/mt-mods/unifieddyes unifieddyes;
cd unifieddyes;
git pull;

cd $path;
git clone --recursive https://github.com/ElCeejo/creatura.git creatura;
cd creatura;
git pull;

cd $path;
git clone --recursive https://github.com/appgurueu/fslib.git fslib;
cd fslib;
git pull;

cd $path;
git clone --recursive https://github.com/appgurueu/modlib.git modlib;
cd modlib;
git pull;

cd $path;
git clone --recursive https://github.com/Lokrates/Biofuel.git biofuel;
cd biofuel;
git pull;

cd $path;
git clone --recursive https://github.com/TheTermos/mobkit.git mobkit;
cd mobkit;
git pull;

cd $path;
git clone --recursive https://github.com/appgurueu/moblib.git moblib;
cd moblib;
git pull;

cd $path;
git clone --recursive https://github.com/APercy/airutils.git airutils;
cd airutils;
git pull;
Datei speichern und ausführen

Code: Select all

chmod 750 git_mod.sh; ./git_mod.sh



Schritt 4:

Screen installieren um den Minetest Server permanent laufen lassen zu können, auch nach verlassen der SSH Session

Code: Select all

sudo apt install screen



Schritt 5:

Minetest Server in Screen starten

Code: Select all

screen minetest --server
Vergewissern das der vollständig geladen wurde und mit STRG + A + D die Screen Session verlassen. Die Session selbst und somit der Minetest Server laufen weiter, auch wenn Ihr die Session verlassen habt.

Nun könnt Ihr auch die SSH Session schließen.

Aufrufen könnt Ihr die Session jederzeit mit

Code: Select all

screen -r
Wenn Ihr mehrere Session laufen habt müsst Ihr noch den Session Namen eingeben mit

Code: Select all

screen SESSIONNAME -r
CLI Install Skript finish
CLI Install Skript finish
CLI Minetest Server running
CLI Minetest Server running
Game Client is running
Game Client is running
Post Reply