Page 1 of 1

Terminal command

PostPosted: Sun Sep 23, 2012 12:49
by irksomeduck
Does anybody know what the terminal command(s) is/are to download and install minetest? Running Ubuntu 12.04

PostPosted: Sun Sep 23, 2012 13:04
by rubenwardy
See the README.md in celeron55/minetest on github

https://github.com/celeron55/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 cmake

$sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev

Download source, extract (this is the URL to the latest of source repository, which might not work at all times):
$ wget https://github.com/celeron55/minetest/tarball/master -O master.tar.gz
$ tar xf master.tar.gz
$ cd celeron55-minetest-286edd4 (or similar)

Download minetest_game (otherwise only the "Minimal development test" game is available)
$ cd games/
$ wget https://github.com/celeron55/minetest_game/tarball/master -O master.tar.gz
$ tar xf master.tar.gz
$ mv celeron55-minetest_game-* minetest_game
$ cd ..

Build a version that runs directly from the source directory:
$ cmake . -DRUN_IN_PLACE=1
$ make -j2

Run it:
$ cd bin
$ ./minetest

PostPosted: Sun Sep 23, 2012 13:09
by irksomeduck
Thanks

PostPosted: Sun Sep 23, 2012 13:16
by irksomeduck
0.o Takes a while to compile

PostPosted: Sun Sep 23, 2012 17:38
by irksomeduck
I really don't get this. What if I don't have a cd drive?

PostPosted: Sun Sep 23, 2012 17:58
by Feorth
I did it a little bit different

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 add-apt-repository ppa:minetestdevs/daily-builds


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 update


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 minetestc55

PostPosted: Sun Sep 23, 2012 19:58
by Phitherek_
You can try my gitinstall and gitupdate scripts from here: http://minetest.net/forum/viewtopic.php?id=2860

PostPosted: Sun Sep 23, 2012 20:40
by Topywo
irksomeduck wrote:I really don't get this. What if I don't have a cd drive?


cd = change directory

PostPosted: Sun Sep 23, 2012 21:36
by LazyJ
Here are some links that may help you get better acquainted with the command-line:

Ubuntu Forums (Lurk and learn but eventually you'll want to signup.)
http://ubuntuforums.org/index.php

5 Basic Commands Every Linux User Should Know
http://www.techerator.com/2011/09/5-basic-commands-every-linux-user-should-know/

YouTube - Basic Linux Terminal Commands (Look to the right, there are similar videos listed)
https://www.youtube.com/watch?v=ZaZQ5Gf8U2Y

Another command that is useful is "man" (for "manual"). It displays "manpage" or manual page for most commands on your system. (Usually written in two-pocket-protector-wearing, uber-geek; have a search engine's webpage loaded in your web browser to help translate.)

man cp

man rm

man mv

man ls

(For some reason "cd" doesn't have a man page on my system nor a "help" option either.)

The next thing is an even more summarized version of the manpages:

<command> -h

for others its:

<command> --help

Good luck!

PostPosted: Sun Sep 23, 2012 21:49
by Menche
This is what I do, cloning the repository instead of downloading the source archives allows easier updating. To do that,
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
git clone git://github.com/celeron55/minetest.git         #Download a copy of the repository
cd minetest                                               #Change directory to the folder of the repository
git checkout stable-0.4                                   #"Checks out" (switches to) the branch with the latest stable updates
                                                          #Only if you want stable

(Don't type the stuff after the #s)
Then to update,
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
git pull              #"pulls" the latest changes

Whenever you update the code, build it the way rubenwardy said. However, instead of "make -j2", replace the "2" with the number of CPU cores you have + 1. That number is the number of jobs the compiler does at once, and the more cores you have the more jobs it can do simultaneously. I have a quad-core, so I use "make -j5"; it makes a large program like minetest build much faster.
To find the number of cores you have (on linux):
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
grep -c processor /proc/cpuinfo

PostPosted: Sun Sep 23, 2012 23:23
by jordan4ibanez
i wish minetest had some real terminal commands, so you didn't have to log on to shut down the server, you could just ssh into the terminal and type stop to stop it per say

PostPosted: Mon Sep 24, 2012 08:54
by Phitherek_
ssh -> killall minetestserver ?

PostPosted: Mon Sep 24, 2012 09:35
by Calinou
jordan4ibanez wrote:i wish minetest had some real terminal commands, so you didn't have to log on to shut down the server, you could just ssh into the terminal and type stop to stop it per say


/shutdown (requires "server" privilege)

And to shutdown, just Ctrl+C. It is far better than killing it.

PostPosted: Mon Sep 24, 2012 10:40
by Phitherek_
killall -2 minetestserver = like Ctrl+C (with Signal 2: SIGINT)

EDIT: Here it is:
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
phitherek@phitherek-eee-pc ~ $ minetestserver --worldname multi &
[1] 25555
phitherek@phitherek-eee-pc ~ $ 12:39:39: ACTION[main]: [MOD]particles -- loaded from /home/phitherek/Pobrane/minetest/game_dev/minetest/bin/../mods/minetest/phmodpack_lite/particles
[MESEcons] Main mod Loaded!
Obsidian Mod Loaded!
[nature] Mod loaded!
mAdBlOcKs 12.7.17 loaded
[BobBlocks By minetest@rabbibob.com] Version 0.0.6 loaded!
Nether mod loaded!
12:39:41: ACTION[main]:         .__               __                   __   
12:39:41: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_
12:39:41: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
12:39:41: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  | 
12:39:41: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__| 
12:39:41: ACTION[main]:       \/        \/     \/          \/     \/       
12:39:41: ACTION[main]: World at [/home/phitherek/Pobrane/minetest/game_dev/minetest/bin/../worlds/multi]
12:39:41: ACTION[main]: Server for gameid="minetest" listening on port 30000.
creative inventory size: 413

phitherek@phitherek-eee-pc ~ $ killall -2 minetestserver
12:39:49: INFO: sigint_handler(): Ctrl-C pressed, shutting down.
phitherek@phitherek-eee-pc ~ $

PostPosted: Mon Sep 24, 2012 16:45
by jordan4ibanez
Calinou wrote:
jordan4ibanez wrote:i wish minetest had some real terminal commands, so you didn't have to log on to shut down the server, you could just ssh into the terminal and type stop to stop it per say


/shutdown (requires "server" privilege)

And to shutdown, just Ctrl+C. It is far better than killing it.

no, i wish you could just do it from the terminal, it'd be nicer and faster

PostPosted: Mon Sep 24, 2012 20:38
by Phitherek_
jordan4ibanez: You have it two posts up...

PostPosted: Mon Sep 24, 2012 22:47
by jordan4ibanez
Phitherek_ wrote:jordan4ibanez: You have it two posts up...

this isn't what i mean, i mean actually typing in the command, making the server do it from the terminal such as:
-kick
-ban
-rollback
-privs

like a bukkit server