Just paste this in a terminal, type your password when it's required – this assumes you use sudo to use administrator commands (which is the default in Ubuntu/Mint), the password is required only once:
If you don't know which one to use, use the non-portable one: the portable one is meant to be put on a USB drive or similar to play on several PCs with only one installation.
These scripts will built the latest development versions. Consider either:
- The Luanti Flatpak; or
- the developers PPA.
These scripts automatically run Luanti when done and tells you where to find the program to run it the next time.
For system-wide installs (puts user data in ~/.minetest, program data into /usr/local/):
Code: Select all
sudo apt-get update && sudo apt-get install -y git g++ make libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext & git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/luanti" && cd "$HOME/luanti/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . && make -j$(nproc) && sudo cpack -G DEB && sudo dpkg -i luanti-*.deb && luanti; echo -e "\n\n\e[1;33mYou can run Luanti again by typing \"luanti\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"
Code: Select all
sudo apt-get update && sudo apt-get install -y git g++ make libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext && git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/luanti" && cd "$HOME/luanti/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . -DRUN_IN_PLACE=1 && make -j$(nproc) && bin/luanti; echo -e "\n\n\e[1;33mYou can run Luanti again by \"cd\"ing into this directory and typing \"bin/luanti\" in a terminal. You can create a shortcut and place it in an applications menu.\nYou can install mods in \"mods/\" inside this directory, too.\e[0m"
Code: Select all
cd luanti; git pull; make -j$(nproc)
Code: Select all
cpack -G DEB; sudo dpkg -i $(ls *.deb -t | head -n1)
Spoiler
Calinou wrote: ↑Fri Nov 23, 2012 10:14This is an 1-line script that downloads and compiles Minetest and minetest_game.
Just paste this in a terminal, type your password when it's required – this assumes you use sudo to use administrator commands (which is the default in Ubuntu/Mint), the password is required only once:
If you don't know which one to use, use the non-portable one: the portable one is meant to be put on an USB drive or similar to play on several PCs with only one installation.
NOTE: This script may not work immediately on Ubuntu 16.10 and 17.04. You may need to swap libpng and libjpeg for more recent versions, which have different package names. Consider the Minetest Flatpak as a simpler way to run latest Minetest versions, that doesn't require root rights as well.
For non-portable installs (puts user data in ~/.minetest):For "portable" installs (puts user data in program data directory):Code: Select all
sudo apt-get update && 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 && git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/minetest" && cd "$HOME/minetest/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . && 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"
You can update your existing (portable or not) Minetest installation by typing this after opening a terminal, provided you haven't moved the directory:Code: Select all
sudo apt-get update && 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 && git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/minetest" && cd "$HOME/minetest/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . -DRUN_IN_PLACE=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"
This automatically runs Minetest when done and tells you the Minetest binary can be found in ~/minetest/bin.Code: Select all
cd minetest; git pull; make -j$(nproc)