Setting up a server/OpenSUSE

From Minetest Wiki
Revision as of 09:50, 14 June 2013 by Twoelk (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If using a VPS, download the following additional tools:

  • PuTTY -- SSH client for Windows (OS X and Linux do not need this)
  • FileZilla -- (S)FTP client
These instructions are written for the root user; if not root, use the root shell with
su -
  • forward the port on your router to your computer

For openSUSE Tumbleweed run the following as root:

zypper addrepo http://download.opensuse.org/repositories/games/openSUSE_Tumbleweed/games.repo


For openSUSE Factory run the following as root:

zypper addrepo http://download.opensuse.org/repositories/games/openSUSE_Factory/games.repo


For openSUSE 12.2 run the following as root:

zypper addrepo http://download.opensuse.org/repositories/games/openSUSE_12.2/games.repo


For openSUSE 12.1 run the following as root:

zypper addrepo http://download.opensuse.org/repositories/games/openSUSE_12.1/games.repo


For openSUSE 11.4 run the following as root:

zypper addrepo http://download.opensuse.org/repositories/games/openSUSE_11.4/games.repo

For Other openSUSE

hxxp://software.opensuse.org/download.html?project=games&package=minetest


  • zypper refresh; zypper install minetest; minetest --server


Your server is up, you can stop here, or continue to create daily backups:

  • mkdir -p /root/.minetest/backups; nano /etc/cron.daily/backup
  • Enter:
#!/bin/sh
####################################

# Stop server
killall minetest

# What to backup:
backup_files="/root/.minetest/worlds"

# Where to backup to:
dest="/root/.minetest/backups/"

# Create archive filename.
archive_file="worlds_$(date +%y%m%d).tar.xz"

# Backup the files using tar.
tar cJf $dest/$archive_file $backup_files

#restart server
nohup minetest --server &
  • chmod 755 /etc/cron.daily/backup
Personal tools
Namespaces
Variants
Actions
Navigation
Resources
Toolbox