Browse Source

initial commit

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
48905aad2f
  1. 41
      README.md
  2. 36
      etc/archive-mts-debug
  3. 29
      etc/change_world_name_manually_first/WIP (DO NOT USE)/redis-mtredisalize-start
  4. 15
      etc/change_world_name_manually_first/also_change_username_manually_first/WIP (do not use)/nightly-cronjob
  5. 22
      etc/change_world_name_manually_first/also_change_username_manually_first/backup-mts-world_cron
  6. 20
      etc/change_world_name_manually_first/backup-mts-world
  7. 2
      etc/change_world_name_manually_first/eauth
  8. 8
      etc/change_world_name_manually_first/editmtsconf
  9. 1649
      etc/change_world_name_manually_first/game-install-ENLIVEN
  10. 1101
      etc/change_world_name_manually_first/minetest-mods-install-ENLIVEN.old
  11. 8
      etc/change_world_name_manually_first/mts-ENLIVEN
  12. 3
      etc/change_world_name_manually_first/mts-ENLIVEN.old
  13. 8
      etc/change_world_name_manually_first/nightly-sudoer-script
  14. 2
      etc/chat-history-mts
  15. 29
      etc/debugging/rm-minetest_game-mods-from-ENLIVEN
  16. 93
      etc/debugging/yelby
  17. 7
      etc/du-show-big
  18. 270
      etc/game-install-enliven-testing.sh
  19. 19
      etc/minetestserver-install-git-ENABLE_REDIS
  20. 19
      etc/minetestserver-install-git-ENABLE_REDIS.old
  21. 9
      etc/mounter
  22. BIN
      etc/network/Logon/Logon (change this link to point to your policy GUID).lnk
  23. 121
      etc/network/Logon/minetest_userscript_localENLIVEN_server_only.vbs
  24. 20
      etc/stop-mts
  25. 9
      etc/unmounter
  26. 7
      etc/unused/minetest-install VERY OLD release package (DO NOT USE).sh
  27. 6
      etc/unused/minetestserver-install-git (NO REDIS).old
  28. 14
      etc/unused/minetestserver-install-git (NO redis).sh
  29. 10
      etc/unused/minetestserver-update-from-git.sh
  30. 63
      etc/unused/throwing-change-to-Echoes91.sh
  31. 2
      etc/update-minetest_game-mods-in-ENLIVEN
  32. 14
      games/enliven/minetest.conf.enliven
  33. 77
      minetest.conf

41
README.md

@ -1,2 +1,41 @@
# EnlivenMinetest
Subgame for minetest
Subgame for minetest with the goals of creating immersion and lessons for humanity.
This collection of scripts includes some scripts to help install and manage your git version of Minetest Server on Ubuntu Server or various *buntu flavors (a gui distro neither required nor recommended).
## How to use:
The installer script (in the "etc/change_world_name_manually_first" folder) downloads the git versions of all of the mods to the ENLIVEN folder which will be placed in your minetest games folder (one of the two folders listed below, otherwise fails).
* (optionally) place the enliven folder in the games folder here into the games folder on your server such as:
/usr/local/share/minetest/games/
(If you're not using the git version of Minetest on Ubuntu Server, try something like:
/usr/share/games/minetest/games/ )
although the installer script should create the initial version of the minetest.conf in there (NOTE: there is a different version of minetest.conf for clients, as described below)
* BEFORE running game-install-enliven.sh, make sure you FIRST CHANGE the value after "MT_MYWORLD_NAME="
Do not expect the mods from game-install-enliven-testing.sh to work. Also, do not run the file directly -- instead, paste the variables (before backup process) in game-install-enliven.sh into a terminal window, then paste the contents of game-install-enliven-test.sh
* mts-ENLIVEN starts server (place it in $HOME normally), but requires you to FIRST CHANGE the value after worldname to the name of your world
* Recommend your users download the minetest.conf from this folder and put it in their minetest folder for better graphics (opengl 3.0 shaders, smooth lighting)
## Customization
* Before using anything in the change_world_name_manually_first and subfolders, change the values of the variables in the folder name as noted before using.
* If you have a dedicated server, the value server_dedicated = false should be changed to server_dedicated = true in your SERVER's minetest.conf in the ENLIVEN folder that the installer creates.
## Security and Performance Notes
* The installer script changes owner and group for ENLIVEN's world.mt and world.mt.1st if present to $USER
* The included minetest.conf recommended for your clients includes the line enable_local_map_saving = true, which will cache the world locally on their machines. You can feel free to change that according to your preference.
## Naming conventions:
* The filenames without extensions
* The abbreviation "mts" is for minetest server-specific scripts or variables
* du-show-big searches your hard drive for big files, in case $HOME/.minetest/debug.txt fills your drive, or a log rotate utility fails (going into a cumulative copy loop, or not) in regard to debug.txt, filling up your drive
* The network folder contains some stuff for networks, which is usually only useful for using Minetest in a network cafe or school.
(The purpose of minetest_userscript_localENLIVEN_server_only.vbs is to make sure the user only uses the hostname localENLIVEN, however this only changes the default, and cannot be enforced in any way as far as I know without recompiling the client.)
## Known issues:
* Installer script does not copy certain stuff to the config files due to permissions unless runs as root (the rest is designed to run as sudoer, and use sudo only as needed)
* minetestserver-update-from-git.sh usually doesn't work right. Normally just rename your minetest folder then clone it from git instead.
* make sure always cd $HOME/Downloads before downloading stuff (double check installer script)
* minetest_userscript_localENLIVEN_server_only.vbs logon script in network folder only works if you make C:\games\Minetest writable to Authenticated Users, in order for minetest.conf to be created via this script (feel free to offer comments on how to avoid making the entire Minetest folder writable to Authenticated Users [I haven't experimented with which of the files and subfolders can be set to do not inherit])
* minetest_userscript_localENLIVEN_server_only.vbs does not read the recommended minetest.conf, so it echoes the lines manually. Ideally it would analyze the recommended one and change the server settings.
### Known issues in mods:
* compassgps crashes server for some players upon use--see yelby in etc/debugging (wrap sorting in "if player~=nil then...end" to avoid)

36
etc/archive-mts-debug

@ -0,0 +1,36 @@
#!/bin/sh
echo ""
minetest_data_path=$HOME/.minetest
logs_folder_name=debug_archived
logs_folder_path=$minetest_data_path/$logs_folder_name
year_string=`date +%Y`
if [ -f "$minetest_data_path/debug.txt" ];
then
#date_string=`date +%Y-%m-%d`
month_string=`date +%m`
day_string=`date +%d`
if [ ! -d "$logs_folder_path" ];
then
mkdir "$logs_folder_path"
fi
if [ ! -d "$logs_folder_path/$year_string" ];
then
mkdir "$logs_folder_path/$year_string"
fi
if [ ! -d "$logs_folder_path/$year_string/$month_string" ];
then
mkdir "$logs_folder_path/$year_string/$month_string"
fi
mts_log_archive_today_file_path=$logs_folder_path/$year_string/$month_string/$day_string.txt
mv "$minetest_data_path/debug.txt" "$mts_log_archive_today_file_path"
if [ -f "$mts_log_archive_today_file_path" ]; then
echo "log saved to $mts_log_archive_today_file_path"
else
echo "Failed to save log to $mts_log_archive_today_file_path"
fi
else
echo "nothing to do (no $minetest_data_path/debug.txt is present--perhaps it was already archived--check $year_string folder (perhaps this month's $year_string/$month_string folder) in $logs_folder_path/"
fi

29
etc/change_world_name_manually_first/WIP (DO NOT USE)/redis-mtredisalize-start

@ -0,0 +1,29 @@
#!/bin/sh
USR_SHARE_MINETEST=/usr/share/games/minetest
#IF git version is installed:
if [ -d "/usr/local/share/minetest" ];
then
USR_SHARE_MINETEST=/usr/local/share/minetest
fi
#UNUSED (unknown use): MT_GAMES_DIR=$HOME/.minetest/mods
#intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one:
MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games
MT_GAMES_DIR=$USR_SHARE_MINETEST/games
MT_MYGAME_NAME=ENLIVEN
MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME
MT_MYGAME_MODDIR=$MT_MYGAME_DIR/mods
MT_MYWORLD_NAME=FCAGameAWorld
MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME
if [ ! -d "$MT_MYGAME_DIR" ]; then
sudo mkdir "$MT_MYGAME_DIR"
fi
mtredisalize \
-host=localhost \
-interleaved=true \
-change-url=http://localhost:8808/update \
-change-duration=10s \
$MT_MYWORLD_DIR/map.db

15
etc/change_world_name_manually_first/also_change_username_manually_first/WIP (do not use)/nightly-cronjob

@ -0,0 +1,15 @@
#!/bin/sh
#To add this, type:
# sudo crontab -e
# #Go to bottom, then to run at 9pm daily:
# * 21 * * * /home/owner/nightly-cronjob
# #Press Ctrl-X
# #Press y
killall --signal SIGINT minetestserver
#chunkymap, if present, must run as root.
python chunkymap/singleimage.py
cd /home/owner
# NOTE: sudo -u owner doesn't work, since $HOME is still root in that case ($HOME is used extensively by the scripts and programs below)
su - owner ./archive-mts-debug
su - owner ./backup-mts-world
su - owner /home/owner/mts-ENLIVEN

22
etc/change_world_name_manually_first/also_change_username_manually_first/backup-mts-world_cron

@ -0,0 +1,22 @@
#!/bin/sh
date_string=`date +%Y-%m-%d`
MT_WORLDS_PATH=/home/owner/.minetest/worlds
cd $MT_WORLDS_PATH
ls
dest_name=FCAGameAWorld-$date_string.tar.gz
dest_path=$MT_WORLDS_PATH/$dest_name
echo "Attempting to create $name_string"
if [ ! -f "$name_string" ]
then
cd "$MT_WORLDS_PATH"
tar -czvf "$dest_name" FCAGameAWorld
if [ -f "$dest_path" ]
then
echo "Successfully created $dest_path" > $HOME/backup-FCAGAW-result.txt >> /var/log/minetestserver-scripts.log
else
echo "Failed to create $dest_path" > $HOME/backup-FCAGAW-result.txt >> /var/log/minetestserver/scripts.log
fi
else
echo "Nothing to do. Already saved $MT_WORLDS_PATH/$name_string" >> /var/log/minetestserver-scripts.log
fi

20
etc/change_world_name_manually_first/backup-mts-world

@ -0,0 +1,20 @@
#!/bin/sh
date_string=`date +%Y-%m-%d`
MT_WORLDS_PATH=$HOME/.minetest/worlds
cd $MT_WORLDS_PATH
ls
name_string=FCAGameAWorld-$date_string.tar.gz
echo "Attempting to create $name_string"
if [ ! -f "$name_string" ]
then
tar -czvf "$name_string" FCAGameAWorld
if [ -f "$name_string" ]
then
echo "Successfully created $MT_WORLDS_PATH/$name_string"
else
echo "Failed to create $MT_WORLDS_PATH/$name_string"
fi
else
echo "Nothing to do. Already saved $MT_WORLDS_PATH/$name_string"
fi

2
etc/change_world_name_manually_first/eauth

@ -0,0 +1,2 @@
#!/bin/sh
nano ~/.minetest/worlds/FCAGameAWorld/auth.txt

8
etc/change_world_name_manually_first/editmtsconf

@ -0,0 +1,8 @@
#!/bin/sh
USR_SHARE_MINETEST=/usr/share/games/minetest
if [ -d "/usr/local/share/minetest" ];
then
USR_SHARE_MINETEST=/usr/local/share/minetest
fi
MT_MYGAME_NAME=ENLIVEN
sudo nano "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf"

1649
etc/change_world_name_manually_first/game-install-ENLIVEN

File diff suppressed because it is too large

1101
etc/change_world_name_manually_first/minetest-mods-install-ENLIVEN.old

File diff suppressed because it is too large

8
etc/change_world_name_manually_first/mts-ENLIVEN

@ -0,0 +1,8 @@
#!/bin/sh
#BROKEN: screen -t MinetestServer minetestserver --gameid minetest_next --draworigin --drawplayers --world FCAWorldMTNext
#BROKEN: screen -t MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
#NOTE: if only title is set, screen -x must be used to resume, so use -S <name> to resume with -r <name>
#screen -S MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
#screen -S MinetestServer /home/owner/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
screen -S MinetestServer $HOME/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld

3
etc/change_world_name_manually_first/mts-ENLIVEN.old

@ -0,0 +1,3 @@
#!/bin/sh
#BROKEN: screen -t MinetestServer minetestserver --gameid minetest_next --draworigin --drawplayers --world FCAWorldMTNext
screen -t MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld

8
etc/change_world_name_manually_first/nightly-sudoer-script

@ -0,0 +1,8 @@
#!/bin/sh
#run this as sudoer
killall --signal SIGINT minetestserver
sudo python chunkymap/singleimage.py
./archive-mts-debug
./backup-mts-world
./mts-ENLIVEN
#su - owner /home/owner/mts-ENLIVEN

2
etc/chat-history-mts

@ -0,0 +1,2 @@
#!/bin/sh
grep $HOME/.minetest/debug.txt | grep CHAT

29
etc/debugging/rm-minetest_game-mods-from-ENLIVEN

@ -0,0 +1,29 @@
#!/bin/sh
USR_SHARE_MINETEST=/usr/share/games/minetest
#IF git version is installed:
if [ -d "/usr/local/share/minetest" ]; then
USR_SHARE_MINETEST=/usr/local/share/minetest
fi
#UNUSED (unknown use): MT_GAMES_DIR=$HOME/.minetest/mods
#intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one:
MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games
MT_GAMES_DIR=$USR_SHARE_MINETEST/games
MT_MYGAME_NAME=ENLIVEN
MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME
MT_MYGAME_MODDIR=$MT_MYGAME_DIR/mods
MT_MYWORLD_NAME=FCAGameAWorld
MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME
#sudo mkdir "$MT_MYGAME_DIR"
if [ -d "$MT_MYGAME_DIR/mods" ]; then
cd "$MT_MYGAME_DIR/mods"
MT_VANILLA_PATH="$USR_SHARE_MINETEST/games/minetest_game"
MT_VANILLA_MODS_PATH=$MT_VANILLA_PATH/mods
if [ ! -d "$MT_VANILLA_MODS_PATH" ]; then
echo "missing $MT_VANILLA_MODS_PATH"
else
ls "$MT_VANILLA_MODS_PATH" | xargs rm -Rf
#ls "$MT_VANILLA_MODS_PATH" | xargs echo
fi
fi

93
etc/debugging/yelby

@ -0,0 +1,93 @@
breath = 11
hp = 20
name = yelby
pitch = 12.09
position = (-3364.43,175,526.13)
version = 1
yaw = 93.43
PlayerArgsEnd
List main 32
Width 0
Item default:sword_diamond
Item default:pick_diamond
Item mobs_animal:kitten
Item default:sign_wall_wood 2
Empty
Empty
Item compassgps:b6
Item farming:bread 74
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
EndInventoryList
List craft 9
Width 3
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
EndInventoryList
List craftpreview 1
Width 0
Empty
EndInventoryList
List craftresult 1
Width 0
Empty
EndInventoryList
List bag1 1
Width 0
Empty
EndInventoryList
List bag2 1
Width 0
Empty
EndInventoryList
List bag3 1
Width 0
Empty
EndInventoryList
List bag4 1
Width 0
Empty
EndInventoryList
List armor 6
Width 0
Item 3d_armor:helmet_diamond 1 1600
Item 3d_armor:chestplate_diamond 1 1600
Empty
Item 3d_armor:leggings_diamond 1 1600
Item shields:shield_diamond 1 1600
Item 3d_armor:boots_diamond 1 1600
EndInventoryList
List hunger 1
Width 0
Item : 16
EndInventoryList
EndInventory

7
etc/du-show-big

@ -0,0 +1,7 @@
#!/bin/sh
#du -hsx * | sort -rh | head -10
#including hidden, but excluding . and ..:
du -hsx .[^.]* * | sort -rh | head -10
#see also /var/lib/logrotate for possible HUGE files if logrotate malfunctions

270
etc/game-install-enliven-testing.sh

@ -0,0 +1,270 @@
echo "Installing Enliven TESTING patch (run this after game-install-enliven.sh)"
echo "* You have to manually paste the environment variable settings from the beginning of game-install-enliven.sh here, so you have them."
echo "* Only install these mods if you know what you are doing! These mods may become part of enliven later, but are not thoroughly tested for stability and compatibility. Thanks, expertmm."
echo "Known issues:"
echo "* advanced_npc: 0.4.15 git (Jan 2017) has error with advanced_npc even with secure.enable_security = false ()"
echo "* torches: removes ceiling torches"
#TODO:
# * possibly add aliases for mobf_traders--Sokomine seems to indicate that this worldgen mod spawns the villagers manually: https://github.com/Sokomine/mg_villages/issues/5
# * add splash icon AND splash background for Enliven subgame
# * clicking barrel just rotates it (destroying watever you had left in it)
# * try https://github.com/Sokomine/mines_with_shafts and see if has treasure
# * try https://github.com/Sokomine/village_gambit additional village type for mg_villages
# * merge /home and unifiedinventory home (and make both require home priv)
#TODO for enliven main branch:
# * shift click to pull out maximum number of items you can create (such as multiple stacks of stairs from wood)
# * kick players at certain time intervals (if play span when logged in is not current play span, then kick) such as for schools
# * remove recipe for flint&steel (obsidian shard+Wrought Iron Ingot [default:steel_ingot])
# * detect whether tnt is disabled, and make obtaining it obtain a note or something (or somehow disable spawning of item in rail corridor chests where I found some)
# * rename minetest-chunkymap to minetestoffline or something
# * add recommended minetest.conf settings (provide python script to test, requiring minetestoffline)
# * analyze game-install-enliven-testing-FULLDEBUG.txt
# * possibly disable fire:flint_and_steel usage other than fake fire (fake fire fork used is in homedecor_modpack)
# * make spawners have drops -- similar drops as [cme] creatures:*_spawner
# * test whether abandoned mines will still be littered with empty chests if CHESTS_GENERATE or SPAWNERS_GENERATE instead of both are on in settings.txt in spawners mod folder (mine chests had stuff before adding spawners mod [mobs mod had been added])
# * make bones write where&whose bones were placed to log (see "dungeon spawner placed at" in spawners for lua example)
# * resolve mg_villages error:
#2017-01-30 03:08:37: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback item_OnPlace(): ...e/minetest/games/enliven/mods/mg_villages/protection.lua:215: attempt to concatenate field 'mts_path' (a nil value)
#2017-01-30 03:08:37: ERROR[Main]: stack traceback:
#2017-01-30 03:08:37: ERROR[Main]: ...e/minetest/games/enliven/mods/mg_villages/protection.lua:215: in function 'on_rightclick'
#2017-01-30 03:08:37: ERROR[Main]: ...ocal/share/minetest/games/enliven/mods/default/torch.lua:67: in function <...ocal/share/minetest/games/enliven/mods/default/#torch.lua:61>
#2017-01-30 03:08:37: ACTION[Server]: singleplayer leaves game. List of players:
#2017-01-30 03:08:37: ACTION[Main]: [fishing] Server shuts down. saving trophies table
# * resolve issue where signslib uses small Helvetica Narrow font even if extrafonts is used properly by 31px/* (largest) being copied to signslib/textures/ (see below)
# * check whether special_picks large picks can break protection
# * change uses of maxwear=x to uses=1/x as per minetest server startup warnings: plantlife_modpack/vines/shear.lua and worldedit_commands/wand.lua
# * sometimes sorting compassgps by location crashes (only on the included user file named yelby in the etc folder)
#used by mg_villages fork by Sokomine
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=handle_schematics.zip
MTMOD_UNZ_NAME=handle_schematics-master
MTMOD_DEST_NAME=handle_schematics
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/Sokomine/handle_schematics/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=torches.zip
MTMOD_UNZ_NAME=torches-master
MTMOD_DEST_NAME=torches
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/BlockMen/torches/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=moresnow.zip
MTMOD_UNZ_NAME=moresnow-master
MTMOD_DEST_NAME=moresnow
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/Sokomine/moresnow/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
echo "Installing adrido's (NOT MasterGollum's which is incompatible with moreblocks) darkage..."
#linked from MasterGollum's: https://forum.minetest.net/viewtopic.php?id=3213
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=darkage.zip
MTMOD_UNZ_NAME=darkage-master
MTMOD_DEST_NAME=darkage
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/adrido/darkage/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=cottages.zip
MTMOD_UNZ_NAME=cottages-master
MTMOD_DEST_NAME=cottages
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/Sokomine/cottages/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
#forum post (Sokomine's mg_villages provides villages for all mapgens and is based on is fork of Nores mg mapgen): https://forum.minetest.net/viewtopic.php?f=9&t=13116
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=mg_villages.zip
MTMOD_UNZ_NAME=mg_villages-master
MTMOD_DEST_NAME=mg_villages
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/Sokomine/mg_villages/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=advanced_npc.zip
MTMOD_UNZ_NAME=advanced_npc-master
MTMOD_DEST_NAME=advanced_npc
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/hkzorman/advanced_npc/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi
#forum post (special_picks by cx384): https://forum.minetest.net/viewtopic.php?f=11&t=9574
cd $HOME/Downloads
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=special_picks.zip
MTMOD_UNZ_NAME=special_picks-master
MTMOD_DEST_NAME=special_picks
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f $MTMOD_DL_ZIP ]; then
rm -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
wget https://github.com/cx384/special_picks/archive/master.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi

19
etc/minetestserver-install-git-ENABLE_REDIS

@ -0,0 +1,19 @@
#sudo apt-get install libncurses5-dev libgettextpo-dev doxygen libspatialindex-dev lua-redis-dev gettext
sudo apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev
#above is from http://dev.minetest.net/Compiling_Minetest#Compiling_on_GNU.2FLinux
#as per <https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04>:
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
#if you skip the above, the below says missing: GetText, Curses, ncurses, Redis, SpatialIndex, Doxygen
#cd "$HOME" #done below by parameterless "cd" command
sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install;
# minetest;
echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m"
echo "Remember to add requirepass to /etc/redis/redis.conf -- a long password since redis is fast and can be bruteforced quickly"
# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below)
# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"

19
etc/minetestserver-install-git-ENABLE_REDIS.old

@ -0,0 +1,19 @@
#sudo apt-get install libncurses5-dev libgettextpo-dev doxygen libspatialindex-dev lua-redis-dev gettext
sudo apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev
#above is from http://dev.minetest.net/Compiling_Minetest#Compiling_on_GNU.2FLinux
#as per <https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04>:
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
#if you skip the above, the below says missing: GetText, Curses, ncurses, Redis, SpatialIndex, Doxygen
#cd "$HOME" #done below by parameterless "cd" command
sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install;
# minetest;
echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m"
echo "Remember to add requirepass to /etc/redis/redis.conf -- a long password since redis is fast and can be bruteforced quickly"
# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below)
# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"

9
etc/mounter

@ -0,0 +1,9 @@
#!/bin/sh
mountpoint=/media/flash
if [ ! -d "$mountpoint" ]; then
sudo mkdir "$mountpoint"
sudo mount /dev/sdb1 "$mountpoint"
df -H
else
echo "FAILED since already mounted at $mountpoint"
fi

BIN
etc/network/Logon/Logon (change this link to point to your policy GUID).lnk

Binary file not shown.

121
etc/network/Logon/minetest_userscript_localENLIVEN_server_only.vbs

@ -0,0 +1,121 @@
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
' How to write file
Minetest_folder_path = "C:\games\Minetest"
If objFSO.FolderExists(Minetest_folder_path) Then
outFile = Minetest_folder_path & "\minetest.conf"
If objFSO.FileExists(outFile) Then
objFSO.DeleteFile(outFile)
End If
If Err.Number <> 0 Then
MsgBox "ERROR deleting file: " & Err.Description
Err.Clear
End If
Set objFile = objFSO.CreateTextFile(outFile,True)
If Err.Number <> 0 Then
MsgBox "ERROR opening " & outFile & " for writing: " & Err.Description
Err.Clear
End If
objFile.Write "address = localENLIVEN" & vbCrLf
objFile.Write "maintab_LAST = multiplayer" & vbCrLf
objFile.Write "menu_last_game = minetest" & vbCrLf
strUserName = CreateObject("WScript.Network").UserName
If Err.Number <> 0 Then
MsgBox "ERROR getting username: " & Err.Description
Err.Clear
End If
strMinetestUser = strUserName
If strUserName = "jgustafson" Then
Set wshShell = CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
If Err.Number <> 0 Then
MsgBox "ERROR getting COMPUTERNAME: " & Err.Description
Err.Clear
End If
strSuffix = strComputerName
iDelimA = InStr(1,strSuffix,"-",vbTextCompare)
If iDelimA > 0 Then
iDelimB = InStr(iDelimA+1,strSuffix,"-",vbTextCompare)
If iDelimB > 0 Then
'MsgBox "iDelimA:" & iDelimA & " iDelimB:" & iDelimB
'MsgBox "Mid(strSuffix,1,iDelimA):" & Mid(strSuffix,1,iDelimA) & " Mid(strSuffix,iDelimB+1):" & Mid(strSuffix,iDelimB+1)
strSuffix = Mid(strSuffix,1,iDelimA) & Mid(strSuffix,iDelimB+1)
Else
strSuffix = Mid(strSuffix,iDelimA)
End If
End If
If Err.Number <> 0 Then
MsgBox "ERROR truncating suffix: " & Err.Description
Err.Clear
End If
iMineTestUserNameMaxLen = 19
strMinetestUser = strUserName & "-" & strSuffix
If Len(strMinetestUser) > iMineTestUserNameMaxLen Then
' this cuts of the beginning, so operate on strSuffix but use difference of Len of strMinetestUser
strSuffix = Mid(strSuffix, Len(strMinetestUser)-iMineTestUserNameMaxLen+1)
End If
strMinetestUser = strUserName & "-" & strSuffix
If Err.Number <> 0 Then
MsgBox "ERROR concatenating: " & Err.Description
Err.Clear
End If
End If
'see more settings above
objFile.Write "name = " & strMinetestUser & vbCrLf
objFile.Write "remote_port = 30000" & vbCrLf
objFile.Write "server_dedicated = false" & vbCrLf
objFile.Write "mg_name = v7" & vbCrLf
objFile.Write "creative_mode = false" & vbCrLf
objFile.Write "enable_damage = true" & vbCrLf
objFile.Write "server_announce = false" & vbCrLf
objFile.Write "cinematic = true" & vbCrLf
objFile.Write "cinematic_camera_smoothing = 0.7" & vbCrLf
objFile.Write "serverlist_file = favoriteservers.txt" & vbCrLf
objFile.Write "font_size = 22" & vbCrLf
objFile.Write "font_shadow = 1" & vbCrLf
objFile.Write "mono_font_size = 22" & vbCrLf
objFile.Write "fallback_font_size = 22" & vbCrLf
objFile.Write "fallback_font_shadow = 1" & vbCrLf
objFile.Write "public_serverlist = false" & vbCrLf
objFile.Write "serverlist_url = localhost" & vbCrLf 'intentional
objFile.Write "font_shadow_alpha = 255" & vbCrLf
objFile.Write "fallback_font_shadow_alpha = 255" & vbCrLf
objFile.Write "connected_glass = true" & vbCrLf
objFile.Write "smooth_lighting = true" & vbCrLf
objFile.Write "enable_clouds = true" & vbCrLf
objFile.Write "enable_3d_clouds = true" & vbCrLf
objFile.Write vbCrLf
objFile.Write "anisotropic_filter = true" & vbCrLf
objFile.Write "texture_clean_transparent = true" & vbCrLf
objFile.Write "#texture_min_size = 64" & vbCrLf
objFile.Write "enable_shaders = true" & vbCrLf
objFile.Write "tone_mapping = true" & vbCrLf
objFile.Write "enable_bumpmapping = true" & vbCrLf
objFile.Write "#as of 0.4.15 dev Jan 2017, generate_normalmaps leaves tiny steps outside of each pixel and the pixels themselves are flat" & vbCrLf
objFile.Write "#generate_normalmaps = true" & vbCrLf
objFile.Write "enable_waving_water = true" & vbCrLf
objFile.Write "water_wave_height = 1.0" & vbCrLf
objFile.Write "water_wave_length = 20.0" & vbCrLf
objFile.Write "water_wave_speed = 5.0" & vbCrLf
objFile.Write "enable_waving_leaves = true" & vbCrLf
objFile.Write "enable_waving_plants = true" & vbCrLf
objFile.Write "pause_fps_max = 20" & vbCrLf
objFile.Write "vsync = true" & vbCrLf
'objFile.Write "display_gamma = 2.2" & vbCrLf
objFile.Write "video_driver = opengl" & vbCrLf
objFile.Write "cloud_height = 120" & vbCrLf
objFile.Write "cloud_radius = 12" & vbCrLf
objFile.Write "enable_minimap = true" & vbCrLf
objFile.Write "minimap_shape_round = true" & vbCrLf
objFile.Write "directional_colored_fog = true" & vbCrLf
objFile.Write "ambient_occlusion_gamma = 2.2" & vbCrLf
objFile.Write "inventory_items_animations = true" & vbCrLf
objFile.Write "menu_clouds = true" & vbCrLf
objFile.Close
End If

20
etc/stop-mts

@ -0,0 +1,20 @@
#!/bin/sh
MTS_HAYSTACK_PATH=/tmp/mts_haystack
# the space in the sed param means search for a space. The result is all characters before the space.
ps -e | grep minetestserver | sed 's/ .*//' > "$MTS_HAYSTACK_PATH"
#ps -e | grep minetestserver > "$MTS_HAYSTACK_PATH"
# as per TheOther1. linuxquestions.org.
# <http://www.linuxquestions.org/questions/programming-9/bash-shell-script-read-file-line-by-line-136784/>.
# 20 Jan 2004. 19 Feb 2016.
a=0
while read line
do a=$(($a+1));
pid=$line
#echo $pid
#echo $line | sed 's/ .*//'
kill -TERM $pid
done < "$MTS_HAYSTACK_PATH"
echo "Final line count is: $a";
rm "$MTS_HAYSTACK_PATH"
#TODO someday (?):
# ssh hostname 'kill -TERM $pid'

9
etc/unmounter

@ -0,0 +1,9 @@
#!/bin/sh
mountpoint=/media/flash
if [ -d /media/flash ]; then
sudo umount /media/flash
#ok since does NOT remove unless empty:
sudo rmdir "$mountpoint"
else
echo "Nothing to do: nothing was mounted at $mountpoint"
fi

7
etc/unused/minetest-install VERY OLD release package (DO NOT USE).sh

@ -0,0 +1,7 @@
#!/bin/sh
#deb http://ppa.launchpad.net/minetestdevs/stable/ubuntu trusty main
#deb-src http://ppa.launchpad.net/minetestdevs/stable/ubuntu trusty main
sudo add-apt-repository ppa:minetestdevs/stable
sudo apt-get update
sudo apt-get install minetest-server
sudo ufw allow 30000

6
etc/unused/minetestserver-install-git (NO REDIS).old

@ -0,0 +1,6 @@
sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install;
# minetest;
echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m"
# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below)
# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"

14
etc/unused/minetestserver-install-git (NO redis).sh

@ -0,0 +1,14 @@
#remove non-git version first:
echo "Removing the non-git (packaged) version first..."
echo "If you want to install the client on your server (not normal practice), change -DBUILD_CLIENT=FALSE to -DBUILD_CLIENT=TRUE before continuing this script."
sudo apt-get remove minetest-server
sudo apt-get remove minetest
sudo apt-get install libncurses5-dev libgettextpo-dev doxygen libspatialindex-dev
#if you skip the above, the below says missing: GetText, Curses, ncurses, Redis, SpatialIndex, Doxygen
sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install;
# minetest;
echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m"
# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below)
# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"

10
etc/unused/minetestserver-update-from-git.sh

@ -0,0 +1,10 @@
#!/bin/sh
cd
cd minetest; sudo git pull; sudo make -j$(nproc)
#cd games; sudo git pull; sudo make -j$(nproc)
#git config global user.email "tertiary@axlemedia.net"
#git config global user.name "Expert Multimedia"
sudo git pull https://github.com/minetest/minetest_game.git
#sudo git fetch
#sudo git checkout HEAD games/minetest_game
#sudo make install

63
etc/unused/throwing-change-to-Echoes91.sh

@ -0,0 +1,63 @@
#!/bin/sh
#First make sure all folders in $HOME/.minetest are created (I am not sure whether this is required!):
# minetestserver
# Mods were found at https://forum.minetest.net/viewforum.php?f=11
# * Git version uses /home/*/minetest/games and /usr/local/share/minetest/games but the latter is used for minetestserver (minetest-server package)
#(Ubuntu 14.04 Trusty Tahr Server) folders were found using:
# cd /
# sudo find -name 'worlds' (worlds folder is in $HOME/.minetest)
# sudo find -name 'minimal' (stable build [such as 0.4.9 games folder is /usr/share/games/minetest/games, but git version games folder is /usr/local/share/minetest/games)
#NOTE: minetest mods are ALWAYS ONLY installed on server
USR_SHARE_MINETEST=/usr/share/games/minetest
#IF git version is installed:
if [ -d "/usr/local/share/minetest" ]; then
USR_SHARE_MINETEST=/usr/local/share/minetest
fi
#UNUSED (unknown use): MT_GAMES_DIR=$HOME/.minetest/mods
#intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one:
MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games
MT_GAMES_DIR=$USR_SHARE_MINETEST/games
MT_MYGAME_NAME=ENLIVEN
MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME
#formerly MT_MYGAME_MODDIR:
MT_MYGAME_MODS_PATH=$MT_MYGAME_DIR/mods
MT_MYWORLD_NAME=FCAGameAWorld
MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME
cd "$HOME/Downloads"
MTMOD_DL_ZIP=archive.zip
MTMOD_SRC_ZIP=throwing_Echoes91.zip
MTMOD_UNZ_NAME=throwing-master-*
MTMOD_DEST_NAME=throwing
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
if [ -d "$MTMOD_DEST_PATH" ]; then
echo "Removing old version of throwing..."
sudo rm -Rf $MTMOD_DEST_PATH
fi
echo "Installing Echoes91's (NOT PilzAdam's NOT Jeija's) Throwing enhanced <https://forum.minetest.net/viewtopic.php?f=11&t=11437>"
#if [ -d "$MTMOD_UNZ_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
#fi
if [ -f "$MTMOD_DL_ZIP" ]; then
rm "$MTMOD_DL_ZIP"
fi
if [ -f "$MTMOD_SRC_ZIP" ]; then
rm "$MTMOD_SRC_ZIP"
fi
#wget https://github.com/PilzAdam/throwing/zipball/master
wget https://gitlab.com/echoes91/throwing/repository/archive.zip
mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP"
unzip "$MTMOD_SRC_ZIP"
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1
fi

2
etc/update-minetest_game-mods-in-ENLIVEN

@ -0,0 +1,2 @@
#!/bin/sh
sudo cp -Rf $HOME/minetest/games/minetest_game/mods/* /usr/local/share/minetest/games/ENLIVEN/mods/

14
games/enliven/minetest.conf.enliven

@ -0,0 +1,14 @@
protector_radius = 7
protector_pvp = true
protector_pvp_spawn = 10
protector_drop = true
protector_hurt = 1
default_privs = interact,shout,home
max_users = 50
motd = "Actions and chat messages are logged. Visit website for recipes and live map."
disallow_empty_passwords = true
#not all settings can be changed in this minetest.conf (see
#minetest.conf.example in THIS folder) some settings can only be changed
#in client's local copy of minetest.conf (see login scripts on network)

77
minetest.conf

@ -0,0 +1,77 @@
# In case user of an Enliven server wants to start their own server via the graphical user interface:
protector_radius = 7
protector_pvp = true
protector_pvp_spawn = 10
protector_drop = true
protector_hurt = 1
default_privs = interact,shout,home
max_users = 50
motd = "Actions and chat messages are logged. Visit website for recipes and live map if available, otherwise see http://wiki.minetest.net/Main_Page and https://github.com/minetest-technic/technic/wiki"
disallow_empty_passwords = true
# Client configuration for improved graphics:
# address = fcalocal
# maintab_LAST = singleplayer
# menu_last_game = ENLIVEN
# name =
remote_port = 30000
server_dedicated = false
mg_name = v7
creative_mode = false
enable_damage = true
server_announce = false
cinematic = true
cinematic_camera_smoothing = 0.7
serverlist_file = favoriteservers.txt
font_size = 22
font_shadow = 1
mono_font_size = 22
fallback_font_size = 22
fallback_font_shadow = 1
# public_serverlist = false
enable_local_map_saving = true
public_serverlist = true
enable_remote_media_server = true
serverlist_url = servers.minetest.net
font_shadow_alpha = 255
fallback_font_shadow_alpha = 255
connected_glass = true
smooth_lighting = true
enable_clouds = true
enable_3d_clouds = true
anisotropic_filter = true
texture_clean_transparent = true
#texture_min_size = 64
enable_shaders = true
tone_mapping = true
enable_bumpmapping = true
#generate_normalmaps = true
enable_waving_water = true
water_wave_height = 1.0
water_wave_length = 20.0
water_wave_speed = 5.0
enable_waving_leaves = true
enable_waving_plants = true
pause_fps_max = 20
vsync = true
video_driver = opengl
cloud_height = 120
cloud_radius = 12
enable_minimap = true
minimap_shape_round = true
directional_colored_fog = true
ambient_occlusion_gamma = 2.2
inventory_items_animations = true
menu_clouds = true
fast_move = true
free_move = true
noclip = true
fixed_map_seed = Enliven20170203v7
mainmenu_last_selected_world = 2
selected_world_path = C:\games\Minetest\bin\..\worlds\charredplanet
wieldview_node_tiles = false
wieldview_update_time = 2
Loading…
Cancel
Save