Mise à jour de 'services/minetest.libre-service.eu.md'
This commit is contained in:
parent
2795a0fbc1
commit
04fb5f0a82
1 changed files with 26 additions and 21 deletions
|
@ -30,6 +30,7 @@ mv mineclone2 /usr/share/games/minetest/games/
|
|||
```
|
||||
|
||||
## Création d'un monde
|
||||
|
||||
Créer un fichier de configuration vierge :
|
||||
```
|
||||
cp /etc/minetest/minetest.conf /etc/minetest/fooland.conf
|
||||
|
@ -52,6 +53,9 @@ cp /etc/minetest/minetest.conf /etc/minetest/fooland.conf
|
|||
- motd = Welcome to Minetest. Enjoy your stay!
|
||||
+ motd = Bienvenue sur le Minetest de Libre-service.eu \o/
|
||||
|
||||
-# map-dir =
|
||||
+map-dir = /srv/minetest.libre-service.eu/worlds/fooland
|
||||
|
||||
- max_users = 15
|
||||
+ max_users = 64
|
||||
|
||||
|
@ -62,29 +66,20 @@ cp /etc/minetest/minetest.conf /etc/minetest/fooland.conf
|
|||
+ disallow_empty_password = true
|
||||
```
|
||||
|
||||
Créer le dossier des mondes dans l'espace du service :
|
||||
```
|
||||
mkdir -p /srv/minetest.libre-service.eu/worlds
|
||||
```
|
||||
|
||||
Créer le nouveau monde :
|
||||
```
|
||||
systemctl start minetest-server@fooland.service
|
||||
```
|
||||
Tester le nouveau monde en se connectant avec un client Minetest.
|
||||
|
||||
Déplacer les fichiers du nouveau monde dans l'espace de travail du service :
|
||||
Créer un compte Postgreql :
|
||||
```
|
||||
systemctl stop minetest-server@fooland.service
|
||||
mkdir -p /srv/minetest.libre-service.eu/worlds
|
||||
mv /var/games/minetest-server/.minetest/worlds/world /srv/minetest.libre-service.eu/worlds/
|
||||
```
|
||||
|
||||
Indiquer dans nouveau chemin dans le fichier de configuration ̀/etc/minetest/fooland.conf` :
|
||||
```
|
||||
-# map-dir =
|
||||
+map-dir = /srv/minetest.libre-service.eu/worlds/fooland
|
||||
```
|
||||
|
||||
Migrer le nouveau monde vers le backend Postgres :
|
||||
```
|
||||
systemctl stop minetest-server@fooland.service
|
||||
minetestserver --migrate postgresql --world /srv/minetest.libre-service.eu/worlds/fooland
|
||||
su - postgres 'psql -c "CREATE DATABASE minetestdb OWNER minetestdba; GRANT ALL PRIVILEGES ON DATABASE minetestdb TO minetestdba;"'
|
||||
```
|
||||
|
||||
Optimiser Postgresql :
|
||||
|
@ -95,18 +90,28 @@ Optimiser Postgresql :
|
|||
```
|
||||
- avoir au moins 512MB de mémoire disponible pour Minetest hors Postgresql.
|
||||
|
||||
Vérifier les réglages du backend dans `/TODO` :
|
||||
Définir la base de données dans `/srv/minetest.libre-service.eu/worlds/fooland/world.mt` :
|
||||
```
|
||||
backend = postgresql
|
||||
pgsql_connection = host=127.0.0.1 port=5432 user=minetest password=XXXXX dbname=minetest-fooland-db
|
||||
pgsql_connection = host=127.0.0.1 port=5432 user=minetestdba password=XXXXX dbname=minetestdb-fooland
|
||||
|
||||
auth_backend = postgresql
|
||||
pgsql_auth_connection = host=127.0.0.1 port=5432 user=minetest password=XXXXXX dbname=minetest-fooland-auth
|
||||
pgsql_auth_connection = host=127.0.0.1 port=5432 user=minetestdba password=XXXXXX dbname=minetestdb-fooland
|
||||
|
||||
player_backend = postgresql
|
||||
pgsql_player_connection = host=127.0.0.1 port=5432 user=minetest password=XXXXXX dbname=minetest-fooland-users
|
||||
pgsql_player_connection = host=127.0.0.1 port=5432 user=minetestdba password=XXXXXX dbname=minetestdb-fooland
|
||||
```
|
||||
|
||||
Migrer le nouveau monde vers le backend Postgres :
|
||||
```
|
||||
systemctl stop minetest-server@fooland.service
|
||||
minetestserver --migrate postgresql --world /srv/minetest.libre-service.eu/worlds/fooland
|
||||
minetestserver --migrate-auth postgresql --world /srv/minetest.libre-service.eu/worlds/fooland
|
||||
minetestserver --migrate-players postgresql --world /srv/minetest.libre-service.eu/worlds/fooland
|
||||
systemctl stop minetest-server@fooland.service
|
||||
```
|
||||
|
||||
|
||||
## Play
|
||||
|
||||
## Jouer
|
||||
Information about Mineclone2 : https://wiki.minetest.net/Games/MineClone_2/Differences_from_Minetest_Game
|
||||
|
|
Loading…
Reference in a new issue