Skip to content

Instantly share code, notes, and snippets.

@gitawego
Last active November 13, 2021 22:59
Show Gist options
  • Save gitawego/7bdf42007fda72b7098cd6b6bcdf04f8 to your computer and use it in GitHub Desktop.
Save gitawego/7bdf42007fda72b7098cd6b6bcdf04f8 to your computer and use it in GitHub Desktop.
raspberry pi

MineTest

install in raspberry pi

sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub net.minetest.Minetest

run server with flatpak

 flatpak run net.minetest.Minetest --server

where is the location of configs with flatpak version

  • worlds: ~/.var/app/net.minetest.Minetest/.minetest/worlds
  • mods: ~/.var/app/net.minetest.Minetest/.minetest/mods/

Running the server on boot

create file /etc/systemd/system/minetest.service

[Unit]
Description=Minetest Server
After=network.target

[Service]
Type=simple
User=minetest
Group=minetest
WorkingDirectory=/home/pi
ExecStart=/usr/bin/flatpak run net.minetest.Minetest --server
Restart=on-abort

[Install]
WantedBy=multi-user.target

then enable and start service

sudo systemctl enable minetest.service
sudo systemctl start minetest.service

how to install textures

https://wiki.minetest.net/Installing_Texture_Packs

raspberry

setup x-server in rapsberry os lit

sudo apt install xserver-xorg xinit x11-xserver-utils -y
sudo apt install libpulse-dev libpulse-dev osspd -y

how to enable ssh

after created the usb, insert the usb in any pc, open boot partition (fat32), create an empty file "ssh", this will let ssh start upon reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment