Differences between revisions 5 and 6
Revision 5 as of 2018-02-28 15:04:49
Size: 5558
Editor: ccts
Comment:
Revision 6 as of 2019-08-10 17:20:11
Size: 4678
Editor: ccts
Comment: revamp of this page (version 5.0.x of minetest, systemd templated unit files...)
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from UpdateEnglish
Line 9: Line 8:
Recently a new game is available in the Debian repositories: '''Minetest''' (minetest - c55) under GPL v2 (or later) license.
Minetest is a minecraft-inspired game written from scratch and licensed under the LGPL (version 2.1 or later). It supports both survival and creative modes along with multiplayer support, dynamic lighting, and an "infinite" map generator.
Line 13: Line 13:
Minetest is inspired by the game Minecraft but unlike the latter, it is developed in C++. It currently has two modes:
  * Survival: with a inventory and the possibility of building.
  * Creative: all with unlimited blocks
== Packages ==
Line 17: Line 15:
Note that the package also includes a server version. Several Debian packages are available, which you can install depending on your needs.
Line 19: Line 17:
  * DebianPkg:minetest: installs the game and its data
  * DebianPkg:minetest-server: only installs the server part
  * DebianPkg:minetest-mods-*: optional mods
Line 20: Line 21:
== Installation ==
=== Download ===
With the package in the repositories, nothing is simpler:
{{{#!highlight bash
aptitude install minetest
}}}
If you run Debian Stable, you might want to install Minetest from the [[Backports|backports]]. In short, add backports repositories, then install with ''apt install -t buster-backports minetest''
Line 27: Line 23:
=== Compiling sources ===
Because it is a game in constant development, the version in the repository will not be the latest. But fortunately it is possible to get the latest sources and to compile.
  * Start by installing the dependencies:
  {{{#!highlight bash
aptitude install build-essential cmake libbz2-dev libirrlicht-dev libpng12-dev libjpeg8 libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev
  }}}
  * Get the latest archive:
  {{{#!highlight bash
wget https://github.com/minetest/minetest/tarball/master -O master.tar.gz
tar xf master.tar.gz
rm -f master.tar.gz
cd celeron55-minetest-*
  }}}
  * Compile:
  {{{#!highlight bash
cmake . -DRUN_IN_PLACE=1
make -j2
  }}}
  * Launch the game :
  {{{#!highlight bash
cd bin
./minetest
  }}}
Note: you cannot connect to a minetest 5.0.x server with a 0.4.x client.
Line 51: Line 25:
For problems or more compiler options, see [[https://github.com/minetest/minetest/blob/master/README.txt|readme]]. == Play ==
Line 53: Line 27:
== Client ==
To start the game, just run ''Applications/Games/Minetest'' (Gnome) or run:
{{{#!highlight bash
To start the game, just run Applications/Games/Minetest (Gnome) or run:  
{{{
Line 60: Line 34:
Line 66: Line 41:
=== Customization ===
At the moment only textures are customizable. We can find more on the [[https://forum.minetest.net/viewforum.php?f=4|official forum]]. To apply a new texture, you must modify the configuration file and add the following variable:
{{{#!highlight bash
texture_path = /path/to/textures
}}}
=== In-game Commands ===
Line 72: Line 43:
== Server ==
Minetest also offers a server version to experience the immense number of maps. To start, run in a shell:
{{{#!highlight bash
minetestserver
}}}
For a web server, it is necessary that the specified port (30000 UDP by default) is open on the internet box/gateway.
Display the in-game console with F10 key.

The available in-game commands are:

  * ''/status'' - Get the status of the server: roster, message of the day.
  * ''/privs'' - View privileges.
  * ''/privs <player>'' - See privileges 'player'. Requires privilege 'privs'.
  * ''/grant <player> <priv>'' - Leave a privilege to 'player'. Requires privilege 'privs'.
  * ''/revoke <player> <priv>'' - Remove a privilege to 'player'. Requires privilege 'privs'.
  * ''/time <time>'' - Set the time of day. 0 and 24000 correspond to midnight, 12000 and 5000 at noon at dawn. (time * 1000) . Requires privilege 'time'.
  * ''/shutdown'' - Turn off the server.
  * ''/setting <name> = <value>'' - Adds or replaces a parameter in the configuration file. The parameter can not be applied properly before restarting the server.
  * ''/teleport <x>,<y>,<z>'' - Teleport to the indicated position. Requires privilege 'teleport'.
Line 80: Line 58:
The file ''~/.minetest/world/auth.txt'' defines the privileges of each player.
Line 89: Line 66:
The file looks like this:
{{{#!highlight bash
test::build,shout
NOM_DU_JOUEUR:MOT_DE_PASSE_HASHÉ:LISTE_DES_PRIVILÈGES
== Setting up a server ==

=== Network ===

For a public internet server, it is necessary that the specified port (30000 UDP by default) is open on the internet box/gateway.

=== Systemd ===

DebianPkg:minetest-server package comes with the systemd unit files, available as a template format if you plan to run several servers on the same host.

A Debian-minetest system user is set up right after installation of the package, which is used to run minetest servers. User home is in /var/games/minetest-server.

If you use the default systemd unit, server config file is located at /etc/minetest/minetest.conf. This unit is enabled right after package installation.

{{{
systemctl status minetest-server.service
Line 95: Line 84:
The file ''auth.txt'' is frequently written by the server and also during shutdown. It is better to edit when the server is down or use the commands /#grant and /#revoke privileges to change players. If you plan to use the templated unit, server config file will be located at /etc/minetest/$MYSERVERNAME.conf. You have to enable the corresponding unit.
Line 97: Line 86:
It is also possible to define the default privileges by modifying the configuration file with the parameter:
{{{#!highlight bash
default_privs = build, shout
{{{
systemctl enable minetest-server@myservername.service
Line 102: Line 90:
=== Comands ===
The available in-game commands are:
=== Server files ===
Line 105: Line 92:
  * ''/#status'' - Get the status of the server: roster, message of the day.
  * ''/#privs'' - View privileges.
  * ''/#privs <player>'' - See privileges 'player'. Requires privilege 'privs'.
  * ''/#grant <player> <priv>'' - Leave a privilege to 'player'. Requires privilege 'privs'.
  * ''/#revoke <player> <priv>'' - Remove a privilege to 'player'. Requires privilege 'privs'.
  * ''/#time <time>'' - Set the time of day. 0 and 24000 correspond to midnight, 12000 and 5000 at noon at dawn. (time * 1000) . Requires privilege 'time'.
  * ''/#shutdown'' - Turn off the server.
  * ''/#setting <name> = <value>'' - Adds or replaces a parameter in the configuration file. The parameter can not be applied properly before restarting the server.
  * ''/#teleport <x>,<y>,<z>'' - Teleport to the indicated position. Requires privilege 'teleport'.
Server files, including worlds and their configuration (users registered, world specific settings...) are saved under /var/games/minetest-server/.minetest
Line 115: Line 94:
=== Configuration ===
Line 116: Line 96:
== Game ==
Given the current video game right now, it's pretty easy to compare Minetest to Minecraft. Without going in to details (which are available on the wiki/blog/forum of Minetest), we can try to include the advantages and disadvantages of current Minetest:
  * Benefits:
    * GPL V2 License
    * C++ language
    * Literally huge Map
    * Multi-platform
  * Cons:
    * Community fairly small (for now!)
    * No sound yet
You can find a commented server configuration file on ''/usr/share/doc/minetest/minetest.conf.example.gz''.

{{{
zcat /usr/share/doc/minetest/minetest.conf.example.gz > /etc/minetest/myservername.conf
}}}

Interesting parameters start with the Server / Singleplayer section, you may delete client parameters prior to that.
Line 128: Line 105:
  * [[DebianPkg:minetest|Package details]]
  * [[DebianBug:minetest|Bug reports]]

Translation(s): English - Français


Minetest

Minetest is a minecraft-inspired game written from scratch and licensed under the LGPL (version 2.1 or later). It supports both survival and creative modes along with multiplayer support, dynamic lighting, and an "infinite" map generator.

fr/Games/Minetest/minetest_01.png

fr/Games/Minetest/minetest_02.png

Packages

Several Debian packages are available, which you can install depending on your needs.

If you run Debian Stable, you might want to install Minetest from the backports. In short, add backports repositories, then install with apt install -t buster-backports minetest

Note: you cannot connect to a minetest 5.0.x server with a 0.4.x client.

Play

To start the game, just run Applications/Games/Minetest (Gnome) or run:

minetest

Configuration

The location of the configuration files is ~/.minetest (created during the first start of the game).

The configuration file contains minetest.conf player preferences (key, name, server address, ...), it is possible to change these settings in the file or directly from the game.

More details on the page on the minetest wiki.

In-game Commands

Display the in-game console with F10 key.

The available in-game commands are:

  • /status - Get the status of the server: roster, message of the day.

  • /privs - View privileges.

  • /privs <player> - See privileges 'player'. Requires privilege 'privs'.

  • /grant <player> <priv> - Leave a privilege to 'player'. Requires privilege 'privs'.

  • /revoke <player> <priv> - Remove a privilege to 'player'. Requires privilege 'privs'.

  • /time <time> - Set the time of day. 0 and 24000 correspond to midnight, 12000 and 5000 at noon at dawn. (time * 1000) . Requires privilege 'time'.

  • /shutdown - Turn off the server.

  • /setting <name> = <value> - Adds or replaces a parameter in the configuration file. The parameter can not be applied properly before restarting the server.

  • /teleport <x>,<y>,<z> - Teleport to the indicated position. Requires privilege 'teleport'.

Privileges

List of privileges:

  • Build - build/dig
  • Teleport - allow command /#teleport to teleport
  • Settime - authorize the /#time command to set the time
  • Privs - allow commands /#grant and /#revoke to add and remove privileges
  • Shout - to talk with other players.

Setting up a server

Network

For a public internet server, it is necessary that the specified port (30000 UDP by default) is open on the internet box/gateway.

Systemd

minetest-server package comes with the systemd unit files, available as a template format if you plan to run several servers on the same host.

A Debian-minetest system user is set up right after installation of the package, which is used to run minetest servers. User home is in /var/games/minetest-server.

If you use the default systemd unit, server config file is located at /etc/minetest/minetest.conf. This unit is enabled right after package installation.

systemctl status minetest-server.service

If you plan to use the templated unit, server config file will be located at /etc/minetest/$MYSERVERNAME.conf. You have to enable the corresponding unit.

systemctl enable minetest-server@myservername.service

Server files

Server files, including worlds and their configuration (users registered, world specific settings...) are saved under /var/games/minetest-server/.minetest

Configuration

You can find a commented server configuration file on /usr/share/doc/minetest/minetest.conf.example.gz.

zcat /usr/share/doc/minetest/minetest.conf.example.gz > /etc/minetest/myservername.conf

Interesting parameters start with the Server / Singleplayer section, you may delete client parameters prior to that.

See also


CategoryGame | CategoryGameSimulation