[Debian / Ubuntu] 1-line script: install Minetest Git

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

[Debian / Ubuntu] 1-line script: install Minetest Git

by Calinou » Fri Nov 23, 2012 10:14

This 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 AppImage 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):
Code: Select all
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"


For "portable" installs (puts user data in program data directory):
Code: Select all
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 . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1; make -j$(nproc); cd ../bin; ./minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by double-clicking \"minetest\" in the \"bin\" folder of the \"minetest\" folder in your home folder.\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
cd minetest; git pull; make -j$(nproc)


This automatically runs Minetest when done and tells you the Minetest binary can be found in ~/minetest/bin.
Last edited by Calinou on Sat Dec 28, 2013 21:27, edited 1 time in total.
 

OmniStudent
Member
 
Posts: 261
Joined: Sat Nov 03, 2012 06:40
 

User avatar
kaeza
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Nov 23, 2012 20:19

Cool thing. Gonna try it :)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19
Location: Estonia

by Ragnar » Thu Dec 27, 2012 21:26

nice ;)
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19
Location: Estonia

by Ragnar » Thu Dec 27, 2012 21:28

btw, will this take the latest version?
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Dec 27, 2012 21:30

2232 wrote:and how do you uninstall it??

Just remove the minetest folder.
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Thu Dec 27, 2012 21:33

Yes, I just tried Calinous version out, it installs 0.4.4. It makes a 'minetest'-folder without serial numbers.

edit: typo
Last edited by Topywo on Thu Dec 27, 2012 21:36, edited 1 time in total.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed Jan 02, 2013 17:20

Minor update about the "echo" command, which tells the user they can put mods in ~/.minetest/mods/minetest.
 

User avatar
rubenwardy
Moderator
 
Posts: 4761
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Jan 02, 2013 17:41

you forgot -DRUN_IN_PLACE

Code: Select all
sudo apt-get install git-core build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev;git clone git://github.com/celeron55/minetest.git;cd minetest/games;git clone git://github.com/celeron55/minetest_game.git;cd ..;cmake . -DRUN_IN_PLACE=1;cd src;make -j2;cd ../bin;./minetest;echo -e "\n\nYou can run Minetest again by double-clicking \"minetest\" in the \"bin\" folder of the \"minetest\" folder in your home folder.\nYou can install mods in ~/.minetest/mods/minetest, too."
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed Jan 02, 2013 17:49

rubenwardy wrote:you forgot -DRUN_IN_PLACE

Code: Select all
sudo apt-get install git-core build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev;git clone git://github.com/celeron55/minetest.git;cd minetest/games;git clone git://github.com/celeron55/minetest_game.git;cd ..;cmake . -DRUN_IN_PLACE=1;cd src;make -j2;cd ../bin;./minetest;echo -e "\n\nYou can run Minetest again by double-clicking "minetest" in the "bin" folder of the "minetest" folder in your home folder.\nYou can install mods in ~/.minetest/mods/minetest, too."


This is intended: this one-line script is not intended for "portable" installs. The user data goes to ~/.minetest, which means the whole minetest folder is cleaner.
Last edited by Calinou on Fri Jan 18, 2013 17:59, edited 1 time in total.
 

User avatar
pandaro
Member
 
Posts: 285
Joined: Sun Jan 08, 2012 21:34
Location: behind
GitHub: pandaro

by pandaro » Wed Jan 02, 2013 18:50

Beautiful
Yesterday I switched to debian wheezy, just to try.
But it was hard to install minetest through the package "deb" for ubuntu (missing dependencies, etc.).
Instead it seems to me that this script is perfect for debian, I would suggest you add it to the download page! so also those who use debian can be installed easily!
sorry for bad english
Linux debian 7 wheezy 64
kde
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Feb 26, 2013 19:11

Update: Freetype and gettext are now installed and used (for translations and a more complete character set).
 

dsalt
Member
 
Posts: 12
Joined: Wed Feb 20, 2013 13:13

by dsalt » Tue Feb 26, 2013 23:02

I've found it easier to use local git repositories with branches for packaging purposes. When I want to do a build, I merge the branches which I want (not necessarily committing the result) and then “debuild binary”. dpkg takes care of the rest.

As for missing dependencies, install using apt-get or aptitude or something similar (and, optionally, mark them as automatically installed).
 

User avatar
xyz
Member
 
Posts: 450
Joined: Thu Nov 10, 2011 14:25
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou
 

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Sat Mar 23, 2013 13:56

Code: Select all
Irrlicht Engine version 1.7.3
Linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64
Using renderer: OpenGL 2.1.2
GeForce 7025 / nForce 630a/integrated/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Loaded texture: /home/casimir/minetest/textures/base/pack/menuheader.png
14:55:28: ERROR[main]: ModError: Required common mods "bucket", "default", "doors", "fire", "stairs" could not be found.

This makes me sad. *sad*
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Sat Mar 23, 2013 15:12

I assume you dont have common in the games folder.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sat Mar 23, 2013 20:16

Edited the script so that it downloads the "common" mods.
 

User avatar
doyousketch2
Member
 
Posts: 82
Joined: Tue Feb 05, 2013 16:06
Location: Ohio
GitHub: doyousketch2
In-game: Sketch2

by doyousketch2 » Sat Mar 30, 2013 06:46

Using the latest Debian testing. Had to add libsm-dev to my apt-get line to get it to compile,
otherwise you get a libSM.so error.

You could also include libcurl4-openssl-dev in there if you so choose.

also git-core is considered an obsolete package, and they just call it git now.
Last edited by doyousketch2 on Sat Mar 30, 2013 06:55, edited 1 time in total.
 

ch98
Member
 
Posts: 463
Joined: Wed Jan 02, 2013 06:14

by ch98 » Fri May 10, 2013 02:35

can you do this for mac too? maybe both intel and ppc version.
I have stopped playing minetest, and may not come back to it again. I would like to thank everyone that made the amazing time I had playing it. This account is not in use anymore, and the email has been linked to a unused account. If any administrator reading this has time, feel free to delete my account. Thank you very much for the great experience.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri May 10, 2013 07:50

ch98 wrote:can you do this for mac too? maybe both intel and ppc version.


Nope.
 

keyxmakerx
Member
 
Posts: 104
Joined: Mon Apr 08, 2013 23:53

by keyxmakerx » Sat Jul 06, 2013 03:15

Would cmake work for every compiled program via linux? dis/ubuntu
 

User avatar
sfan5
Moderator
 
Posts: 3688
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat Jul 06, 2013 06:05

keyxmakerx wrote:Would cmake work for every compiled program via linux? dis/ubuntu

No, cmake only works for programs that have a special CMake file
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Neon
Member
 
Posts: 121
Joined: Thu Aug 15, 2013 02:03
In-game: Neon
 

Next

Return to Builds



Who is online

Users browsing this forum: No registered users and 1 guest