Compare commits

...

4 Commits

5 changed files with 51 additions and 45 deletions

View File

@ -58,8 +58,8 @@ if [ -f $MY_PATH/ipfs-update.tar.gz ]; then
sudo ./install.sh || err "Install ipfs-update" sudo ./install.sh || err "Install ipfs-update"
cd $MY_PATH cd $MY_PATH
echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>" echo "INSTALL ipfs 0.9.1 >>>>>>>>>>>>>>>>>>>>>>>>>>"
sudo ipfs-update install 0.7.0 || err "Install IPFS" sudo ipfs-update install 0.9.1 || err "Install IPFS"
else else
## TERRAPI4 aarch64 install ipfs_aarch64_v0.9.1 ## TERRAPI4 aarch64 install ipfs_aarch64_v0.9.1
sudo tar -xvzf /tmp/ipfs_aarch64_v0.9.1.tar.gz -C /usr/src/ || err "Untar ipfs_aarch64" sudo tar -xvzf /tmp/ipfs_aarch64_v0.9.1.tar.gz -C /usr/src/ || err "Untar ipfs_aarch64"
@ -128,7 +128,7 @@ ipfs bootstrap rm --all
# BOOTSTRAP NODES ARE ADDED LATER # BOOTSTRAP NODES ARE ADDED LATER
########################################### ###########################################
# AVOID CONFLICT WITH KODI REMOTE # AVOID CONFLICT WITH KODI REMOTE
ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181" # ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181"
[[ "$USER" != "xbian" ]] && sudo systemctl restart ipfs [[ "$USER" != "xbian" ]] && sudo systemctl restart ipfs

BIN
minetest/map.sqlite Normal file

Binary file not shown.

View File

@ -40,10 +40,6 @@ default_privs = interact, shout, fly, fast
# type: string # type: string
basic_privs = interact, shout, fly, fast basic_privs = interact, shout, fly, fast
# If this is set, players will always (re)spawn at the given position.
# type: string
static_spawnpoint = (0, 24, 0)
# Where the map generator stops. # Where the map generator stops.
# Please note: # Please note:
# - Limited to 31000 (setting above has no effect) # - Limited to 31000 (setting above has no effect)
@ -51,8 +47,17 @@ static_spawnpoint = (0, 24, 0)
# - Those groups have an offset of -32, -32 nodes from the origin. # - Those groups have an offset of -32, -32 nodes from the origin.
# - Only groups which are within the map_generation_limit are generated # - Only groups which are within the map_generation_limit are generated
# type: int min: 0 max: 31000 # type: int min: 0 max: 31000
mapgen_limit = 216 #mapgen_limit = 216
mapgen_limit = 31000
# If this is set, players will always (re)spawn at the given position.
# type: string
static_spawnpoint = (0, 0, 0)
# magpen flags
mg_flags = trees,decorations mg_flags = trees,decorations
# mapgen v6
mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,noflat,trees mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,noflat,trees
mgv6_freq_desert = 0.05 mgv6_freq_desert = 0.05
mgv6_freq_beach = 0.95 mgv6_freq_beach = 0.95

View File

@ -8,6 +8,7 @@ rm -R $WORLD_PATH
mkdir $WORLD_PATH mkdir $WORLD_PATH
cp map.sqlite $WORLD_PATH/
echo " echo "
gameid = minetest gameid = minetest
@ -17,7 +18,7 @@ backend = sqlite3
" > $WORLD_PATH/world.mt " > $WORLD_PATH/world.mt
cd ~/.zen/astrXbian/minetest cd ~/.zen/astrXbian/minetest
cat ./minetest-common.conf > ./minetest.conf cat ./minetest-common.conf > /home/pi/.minetest/worlds/astroport/minetest.conf
echo " echo "
server_name = Astroport "$XZUID" server_name = Astroport "$XZUID"
@ -43,14 +44,14 @@ server_announce = false
# Network port to listen (UDP). # Network port to listen (UDP).
# This value will be overridden when starting from the main menu. # This value will be overridden when starting from the main menu.
# type: int # type: int
port = 30010 port = 30001
# The network interface that the server listens on. # The network interface that the server listens on.
# type: string # type: string
# bind_address = # bind_address =
" >> ./minetest.conf " >> /home/pi/.minetest/worlds/astroport/minetest.conf
mkdir $WORLD_PATH/worldmods mkdir $WORLD_PATH/worldmods
@ -73,41 +74,41 @@ fi
## startanode ## startanode
if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
fi
unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
fi
cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
# ## Spawnbuilder
# #
# if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
#
# if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
# wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
# fi
#
# unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
# fi
#
# cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
## Spawnbuilder
#
# spawnBuilderLocation=`find $MINETEST_PATH/mods -type d -name spawnbuilder` # spawnBuilderLocation=`find $MINETEST_PATH/mods -type d -name spawnbuilder`
# if [ -z $spawnBuilderLocation ]; then # if [ -z $spawnBuilderLocation ]; then
#  #
#  if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then # if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then
#  wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip # wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip
#  fi # fi
#  #
#  unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/ # unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/
# fi # fi
#  #
# mkdir $WORLD_PATH/worldmods/spawnbuilder # mkdir $WORLD_PATH/worldmods/spawnbuilder
# cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder # cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder
#  #
# echo " # echo "
# #Side length of the surface area of the spawn platform # #Side length of the surface area of the spawn platform
# #If the number is odd, the platform will be centered at spawn. # #If the number is odd, the platform will be centered at spawn.
# #Using a width lower than 3 is not recommended. # #Using a width lower than 3 is not recommended.
# spawnbuilder_width (Spawn platform width) int 5 1 # spawnbuilder_width (Spawn platform width) int 5 1
# " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf # " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
/usr/lib/minetest/minetestserver --port 30010 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.zen/astrXbian/minetest/minetest.conf /usr/lib/minetest/minetestserver --port 30001 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.minetest/worlds/astroport/minetest.conf