MinetestStartup/README.md

36 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2022-07-01 10:42:43 -07:00
# Minetest Startup Scripts (2.3)
2018-02-25 00:11:57 -08:00
Startup scripts for the Minetest sandbox software - uses the "screen" command to manage session. This also restarts the Minetest process if it crashes.
2018-02-24 23:45:15 -08:00
2018-02-25 00:11:57 -08:00
Official support sites: [Official Github Repo](https://github.com/fstltna/MinetestStartup) - [Official Forum](https://minecity.online/index.php/forum/startup-scripts) - [Official Download Area](https://minecity.online/index.php/downloads/category/5-server-tools)
![Minetest Sample Screen](https://MineCity.online/minetest_demo.png)
2018-02-24 23:45:15 -08:00
---
2018-02-25 00:11:57 -08:00
These start up the Minetest server at boot time with a "screen" process.
2018-02-24 23:45:15 -08:00
2020-05-29 14:59:35 -07:00
1. Copy **minetest** into **/home/mtowner/bin** - make sure it is executable
2. Copy **startminetest** into **/home/mtowner/minetest** - make sure it is executable
3. Put **@reboot /home/mtowner/bin/minetest start** into your crontab
4. Put **@reboot /home/mtowner/bin/startrelay** into your crontab
5. Run the relay setup:
2020-06-15 20:13:04 -07:00
pip install aiohttp
2022-07-01 11:50:04 -07:00
pip install discord.py
cd /home/mtowner
unzip MinetestStartup/MyRelay.zip
cd /home/mtowner/minetest/mods/discordmt
vi relay.conf # Set the discord bot info where needed
2022-07-01 10:47:29 -07:00
Activate the bot with: https://discordapp.com/oauth2/authorize?client_id=CLIENTID&scope=bot
Run startrelay
Restart the minetest server, and enable the discordmt
2020-06-15 20:13:04 -07:00
2018-02-25 00:11:57 -08:00
When you want to view the Minetest console, just enter "**screen -r**" in your shell.
2018-02-24 23:45:15 -08:00
2018-02-25 00:11:57 -08:00
To disconnect from the Minetest console just press **CTRL-A CTRL-D**. This will leave it running and you can reconnect to it again.
2018-02-24 23:45:15 -08:00
I have only tested this on a Ubuntu 16.04 server...
2020-06-06 03:37:05 -07:00
If you want to turn off the server respawning type "**touch /home/mtowner/minetest/nostart**". To reenable it type "**rm /home/mtowner/minetest/nostart**".
2018-02-24 23:45:15 -08:00
---
Note: If you don't already have the "screen" tool installed you will need to install it by "**sudo apt-get install screen**".