Terminal command

irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 21:45

Terminal command

by irksomeduck » Sun Sep 23, 2012 12:49

Does anybody know what the terminal command(s) is/are to download and install minetest? Running Ubuntu 12.04
I love exploring minetest worlds :D
If you have a good seed let me know
--------------------------------------------------
My world/house pack- http://minetest.net/forum/viewtopic.php?id=3066
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Sep 23, 2012 13:04

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
Last edited by rubenwardy on Sun Sep 23, 2012 13:05, edited 1 time in total.
 

irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 21:45

by irksomeduck » Sun Sep 23, 2012 13:09

Thanks
I love exploring minetest worlds :D
If you have a good seed let me know
--------------------------------------------------
My world/house pack- http://minetest.net/forum/viewtopic.php?id=3066
 

irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 21:45

by irksomeduck » Sun Sep 23, 2012 13:16

0.o Takes a while to compile
I love exploring minetest worlds :D
If you have a good seed let me know
--------------------------------------------------
My world/house pack- http://minetest.net/forum/viewtopic.php?id=3066
 

irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 21:45

by irksomeduck » Sun Sep 23, 2012 17:38

I really don't get this. What if I don't have a cd drive?
I love exploring minetest worlds :D
If you have a good seed let me know
--------------------------------------------------
My world/house pack- http://minetest.net/forum/viewtopic.php?id=3066
 

User avatar
Feorth
Member
 
Posts: 27
Joined: Sat Sep 08, 2012 00:06

by Feorth » Sun Sep 23, 2012 17:58

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
Last edited by Feorth on Sun Sep 23, 2012 17:58, edited 1 time in total.
 

User avatar
Phitherek_
Member
 
Posts: 112
Joined: Thu Aug 23, 2012 16:17

by Phitherek_ » Sun Sep 23, 2012 19:58

You can try my gitinstall and gitupdate scripts from here: http://minetest.net/forum/viewtopic.php?id=2860
---
Posted by Phitherek_
 

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

by Topywo » Sun Sep 23, 2012 20:40

irksomeduck wrote:I really don't get this. What if I don't have a cd drive?


cd = change directory
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Sun Sep 23, 2012 21:36

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!
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sun Sep 23, 2012 21:49

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
Last edited by Menche on Sun Sep 23, 2012 21:51, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sun Sep 23, 2012 23:23

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
If you can think it, you can make it.
 

User avatar
Phitherek_
Member
 
Posts: 112
Joined: Thu Aug 23, 2012 16:17

by Phitherek_ » Mon Sep 24, 2012 08:54

ssh -> killall minetestserver ?
---
Posted by Phitherek_
 

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

by Calinou » Mon Sep 24, 2012 09:35

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.
 

User avatar
Phitherek_
Member
 
Posts: 112
Joined: Thu Aug 23, 2012 16:17

by Phitherek_ » Mon Sep 24, 2012 10:40

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 ~ $
Last edited by Phitherek_ on Mon Sep 24, 2012 10:42, edited 1 time in total.
---
Posted by Phitherek_
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Sep 24, 2012 16:45

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
If you can think it, you can make it.
 

User avatar
Phitherek_
Member
 
Posts: 112
Joined: Thu Aug 23, 2012 16:17

by Phitherek_ » Mon Sep 24, 2012 20:38

jordan4ibanez: You have it two posts up...
Last edited by Phitherek_ on Mon Sep 24, 2012 20:38, edited 1 time in total.
---
Posted by Phitherek_
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Sep 24, 2012 22:47

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
If you can think it, you can make it.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 64 guests

cron