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

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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. 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):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

by OmniStudent » Fri Nov 23, 2012 10:22

VERY NICE!!!
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
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

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

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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Dec 27, 2012 21:30

Ragnar wrote:btw, will this take the latest version?

Seems so.
 

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
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Jan 02, 2013 17:41

you forgot -DRUN_IN_PLACE

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed Jan 02, 2013 17:49

rubenwardy wrote:you forgot -DRUN_IN_PLACE

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 266
Joined: Sun Jan 08, 2012 21:34
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
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Wed Feb 27, 2013 12:01

Minetest repos have moved to https://github.com/minetest
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed Feb 27, 2013 12:08

Edited.
 

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

by Casimir » Sat Mar 23, 2013 13:56

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

by Traxie21 » Sat Mar 23, 2013 15:12

I assume you dont have common in the games folder.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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
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.
 

User avatar
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.
Mudslide mod Click Here
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
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: 119
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

by Neon » Fri Aug 23, 2013 04:35

 

proller
Member
 
Posts: 185
Joined: Sat Jan 26, 2013 15:22

by proller » Tue Sep 17, 2013 12:17

add for nef features:
for ubuntu precise - libcurl-dev libluajit-5.1-dev libleveldb-dev
for ubuntu raring - libcurl4-openssl-dev libluajit-5.1-dev libleveldb-dev
Last edited by proller on Tue Jan 14, 2014 12:12, edited 1 time in total.
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Thu Sep 19, 2013 14:13

nice! thanks!
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Fri Nov 01, 2013 02:35

my chain is:
git clone git://github.com/minetest/minetest.git
cd minetest
cd games
git clone git://github.com/minetest/minetest_game.git
git pull
cd ..
git pull
cmake . -DRUN_IN_PLACE=1
make -j2
cd bin
./minetest
#11 lines to happiness
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

thecole44
New member
 
Posts: 1
Joined: Wed Feb 19, 2014 20:28

by thecole44 » Thu Feb 20, 2014 19:05

going to try it out.
 

grey
Member
 
Posts: 19
Joined: Fri Jan 03, 2014 18:51

by grey » Fri Feb 21, 2014 01:12

I am happy to say that this worked pefrectly in Elementary OS Linux as well! Fixing the problem of the repos always being terribly outdated.

Though I found that is did not work under Raspbian, it gave the following error:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
pi@groundbase ~/minetest-minetest-3da5669/bin $ ./minetest
Irrlicht Engine version 1.7.3
Linux 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l
No GLX support available. OpenGL driver will not work.
Fatal error, could not get visual.
Segmentation fault
pi@groundbase ~/minetest-minetest-3da5669/bin $





Normally the Raspberry Pi is more than capable of running 3D games, including Minecraft. Though I like Minetest a whole lot better than Minecraft. If anyone know's what I should do here, please tell me!
Last edited by grey on Fri Feb 21, 2014 01:14, edited 1 time in total.
Lay back and feel the wind on your skin ~ http://afternoon.heliohost.org
 

Next

Return to Minetest Builds

Who is online

Users browsing this forum: No registered users and 4 guests

cron