[Raspberry PI] Server

[Raspberry PI] Server

Postby DoyleChris » Fri Jan 04, 2019 2:14 am

My son wanted to start playing Minetest, so i created a server on my laptop. But I was not able to run it all the time. But I did have a Raspberry PI 3B and i knew you could run Minetest on it. So I set out to get a server running, but it was a little harder then I thought.

Then I hopped onto the Minetest IRC channel, and NathanS was nice enough to help me. And he was able to compile a Stable 4.17.1 version and a 5.0 Dev version.

So requirements that you need (what I am running):
Raspberry PI 3B
Raspbian (command line if possible)
libhiredis-dev package (sudo apt-get install libhiredis-dev)
Able to share the game folder to install worlds and mods

Download corresponding build you want. Extract it. And run /EXTRACTEDFOLDER/bin/./minetestserver (i had to run sudo ./minetestserver)

Stable http://www.nathansalapat.com/downloads/0.4.17.1.tar.gz
Dev http://www.nathansalapat.com/downloads/5.0.tar.gz

Thank you to NathanS for the help and building the program.
DoyleChris
Member
 
Posts: 224
Joined: Sat Jul 25, 2015 7:54 pm
In-game: DoyleChris

Re: [Raspberry PI] Server

Postby Nathan.S » Sat Jan 05, 2019 4:33 pm

It shouldn't be necessary to run minetestserver with sudo. I never needed to in any of my testing, and I was able to connect to the server from other computers on the home network.
Nathan.S
Member
 
Posts: 873
Joined: Wed Sep 24, 2014 5:47 pm
GitHub: NathanSalapat
In-game: NathanS21

Re: [Raspberry PI] Server

Postby BBmine » Mon Jan 07, 2019 3:14 am

Nathan.S wrote:It shouldn't be necessary to run minetestserver with sudo. I never needed to in any of my testing, and I was able to connect to the server from other computers on the home network.

I believe he had to use sudo because it was throwing an error about not have permission. Run the following command to fix it:
Code: Select all
sudo chmod a+w /var/log/minetest
BBmine
Member
 
Posts: 3474
Joined: Sun Jul 12, 2015 10:51 pm
GitHub: BBmine
In-game: Baggins

Re: [Raspberry PI] Server

Postby Miniontoby » Mon Apr 08, 2019 1:25 pm

hello,

I have a Raspberry Pi 3B and I try to start a server with this bash script
Code: Select all
cd /home/pi/.minetest/bin
./minetestserver --gameid minetest --worldname bestforall --console
(It stay in /home/pi/Desktop/minetestserver.sh) but I got an Error:

Code: Select all
2019-03-30 11:34:08: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2019-03-30 11:34:08: ERROR[Main]: ModError: Failed to load and run script from /home/pi/.minetest/games/minetest_game/mods/default/init.lua:
2019-03-30 11:34:08: ERROR[Main]: ....minetest/games/minetest_game/mods/default/functions.lua:134: attempt to index field 'settings' (a nil value)
2019-03-30 11:34:08: ERROR[Main]: stack traceback:
2019-03-30 11:34:08: ERROR[Main]:    ....minetest/games/minetest_game/mods/default/functions.lua:134: in main chunk
2019-03-30 11:34:08: ERROR[Main]:    [C]: in function 'dofile'
2019-03-30 11:34:08: ERROR[Main]:    ...e/pi/.minetest/games/minetest_game/mods/default/init.lua:40: in main chunk


Does anyone have a solution
Miniontoby
New member
 
Posts: 8
Joined: Fri Mar 01, 2019 7:25 pm
In-game: Miniontoby

Re: [Raspberry PI] Server

Postby sfan5 » Wed Apr 10, 2019 3:59 pm

It looks like you are trying to run a newer minetest_game version (5.0) on an older Minetest (0.4.17.1). These two are obviously incompatible, so you end up with an error somewhere.
sfan5
Moderator
 
Posts: 3786
Joined: Wed Aug 24, 2011 9:44 am
GitHub: sfan5



Return to Builds



Who is online

Users browsing this forum: Yandex Bot [Bot] and 0 guests