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

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

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

by octacian » Fri Apr 22, 2016 01:24

Calinou wrote:
endev15 wrote:This worked on both my laptop and my server, but I cannot figure out where to put mods. I have tried putting them in ~/.minetest/mods but this did not work, and on my server there is no longer a /usr/share/games/minetest directory. I have tried putting mods in the old directory which is showing on my laptop, but that does not work either.

Help would be greatly appreciated - my server depends heavily on mods and has now been down for almost 2 days.

My server is running Ubuntu Server 15.10 if that helps.

Thanks in advance for your help!


If you used the portable method, you should put mods in the Minetest installation folder itself, that is, if you didn't change anything in the script, ~/minetest/mods (note the lack of a period before "minetest").

If you used the non-portable method, you can use ~/.minetest/mods for an user-wide mod or /usr/share/games/minetest/mods (or /usr/share/minetest/mods, I don't remember) for a system-wide mod.


Got it working. Turns out that by default the Minetest root folder on non-portable installation is in the local folder instead:
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
/usr/local/share/minetest
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

User avatar
firefox
Member
 
Posts: 1185
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox

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

by firefox » Tue May 17, 2016 10:34

this needs a bump

*bump* :3
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

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

by twoelk » Tue May 17, 2016 11:02

strange if I run the complete build script on a clean xubuntu system I get a 0.4.13dev version if I then run the update script I get the current 0.4.14dev version.
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

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

by Lejo » Tue May 24, 2016 16:31

It is possible to make a server with this Build?
Or is that only possible in the non-portable Build?
It would me nice if it is possible.
Please help.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

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

by ExeterDad » Tue May 24, 2016 18:37

Lejo wrote:It is possible to make a server with this Build?
Or is that only possible in the non-portable Build?
It would me nice if it is possible.
Please help.

Editing the one liner with these cmake flags:
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
-DBUILD_CLIENT=0   -DBUILD_SERVER=1.

will build the server only.
If you run a headless server you can cut out many dep packages as well. See here for more information.
http://dev.minetest.net/Compiling_Minetest
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

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

by Lejo » Thu May 26, 2016 09:20

I installed the new portable 0.4.14 Version, but there won't work the shift click to take stuff in other Inventors.
Is that only a Problem of the portable Version or is that a Problem from all Linux Versions.
I test the ctf Game there isn't the Problem.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

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

by Lejo » Thu May 26, 2016 13:44

The Problem is detached.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
Mainpage
Member
 
Posts: 61
Joined: Fri Nov 13, 2015 01:12
GitHub: mainfolio
IRC: mainpage
In-game: mainpage

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

by Mainpage » Sat May 28, 2016 20:43

I tired this on my laptop and it worked until i had top fix a broken package via grub. I then tried unistalling it and reinstalling it and also updating it, none of the above worked. When i type minetest into terminal it throws this error at me:
2016-05-28 16:17:24: [Main]: Automatically selecting world at [/home/hello/.minetest/worlds/new]
Loaded texture: /usr/local/share/minetest/games/minetest_game/menu/header.png
Loaded texture: /usr/local/share/minetest/games/minetest_game/menu/icon.png
Loaded texture: /usr/local/share/minetest/games/minimal/menu/icon.png
Segmentation fault (core dumped)

I also cant find the worlds folder
EDIT:
I think i have to delete it via terminal then reinstall I just deleted it the first time i tried to fix it
EDIT: Nevermind, I fixed it, though i have some orphaned files now.
EDIT: I think i got it, i just deleted the hidden .minetest folder and minetest, then i'll re-build it.
I eat baby seals
 

User avatar
Mainpage
Member
 
Posts: 61
Joined: Fri Nov 13, 2015 01:12
GitHub: mainfolio
IRC: mainpage
In-game: mainpage

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

by Mainpage » Wed Jun 08, 2016 20:27

Okay I used this on a Lenovo B570 running Ubuntu 16.04, no problems so far.
But I was wondering whether
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 --purge remove minetest
would actually work, or whether it would say something like "minetest package not installed".
Also I tried building a .deb package with the "portable" install, IDK if it actually works though. Although I'd like to know all the essential program folders and files I need to package.
Thanks!
EDIT: It seems to work expect the only minetest folder I can find is in /usr/share/games/minetest and there is no mods folder, ie I don't know where to put my mods.
EDIT: Never mind this was a version downloaded from the Ubuntu reps.
Last edited by Mainpage on Wed Jun 08, 2016 23:50, edited 2 times in total.
I eat baby seals
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

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

by ExeterDad » Wed Jun 08, 2016 22:24

I made a script that you can pass options to. It creates a deb package that is installable, removable and likely to be shared. It also works out needed deps according to what you want to build. And offers to install them and continue. It's inspired by the Debian one liner in this topic and by studying the real packages.
I'll release when I've tested it and polished it up more.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Mainpage
Member
 
Posts: 61
Joined: Fri Nov 13, 2015 01:12
GitHub: mainfolio
IRC: mainpage
In-game: mainpage

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

by Mainpage » Wed Jun 08, 2016 23:58

Thanks Exterdad, now I think I'll just wait till you finish polishing your script instead of building it myself.
I'm not actually sure if my build even works!
Edit: I just realized there are official Ubuntu daily builds on the download page, lol.
I eat baby seals
 

User avatar
Glorfindel
Member
 
Posts: 129
Joined: Tue Jul 07, 2015 20:05
GitHub: the1glorfindel
IRC: Glorfindel DoomWeaver
In-game: Glorfindel

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

by Glorfindel » Thu Jun 09, 2016 15:27

This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

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

by Fixerol » Sun Jun 12, 2016 19:50

Didn't know where to post, but this can be very handy for linux people who need to log their compilation (if you use script)
So you do like this:

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
#!/bin/bash
{
your usual commands
} |& tee build.log


This will show output as usual, but also record everything in build.log file, very useful!
 

User avatar
Wayward_One
Member
 
Posts: 93
Joined: Tue Jun 10, 2014 18:44
GitHub: Wayward1
IRC: Wayward_One Wayward1
In-game: Wayward_One

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

by Wayward_One » Mon Jun 13, 2016 02:10

Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?


Actually,

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 https://github.com/minetest/minetest.git

will always install the latest HEAD (0.4.14-dev), as that is the main repository where all the latest commits end up. Perhaps try a fresh clone?
"When life becomes a play and I don't know the role I'm cast..."

Latest Minetest builds for Android
 

User avatar
Glorfindel
Member
 
Posts: 129
Joined: Tue Jul 07, 2015 20:05
GitHub: the1glorfindel
IRC: Glorfindel DoomWeaver
In-game: Glorfindel

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

by Glorfindel » Mon Jun 13, 2016 14:26

Wayward_One wrote:
Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?


Actually,

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 https://github.com/minetest/minetest.git

will always install the latest HEAD (0.4.14-dev), as that is the main repository where all the latest commits end up. Perhaps try a fresh clone?

How would I do that? Doesn't the script download a new clone every time I run it?
 

User avatar
Mainpage
Member
 
Posts: 61
Joined: Fri Nov 13, 2015 01:12
GitHub: mainfolio
IRC: mainpage
In-game: mainpage

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

by Mainpage » Mon Jun 13, 2016 17:53

Glorfindel wrote:
Wayward_One wrote:
Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?


Actually,

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 https://github.com/minetest/minetest.git

will always install the latest HEAD (0.4.14-dev), as that is the main repository where all the latest commits end up. Perhaps try a fresh clone?

How would I do that? Doesn't the script download a new clone every time I run it?

IDK much but what I do is delete the old clone then just clone again.
I eat baby seals
 

User avatar
Glorfindel
Member
 
Posts: 129
Joined: Tue Jul 07, 2015 20:05
GitHub: the1glorfindel
IRC: Glorfindel DoomWeaver
In-game: Glorfindel

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

by Glorfindel » Mon Jun 13, 2016 17:59

Hmmmm... looking at my original post, I forgot to mention that I was talking about the shorter update script :o
I guess that may be a wee bit important...
 

User avatar
XtremeHacker
Member
 
Posts: 89
Joined: Mon Aug 01, 2016 04:15
GitHub: XtremeHacker
In-game: XtremeHacker

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

by XtremeHacker » Tue Oct 18, 2016 03:27

I used the non-portable install script, and had issues with sudo not be used in the right place, and libjpeg8 got replaced in Debian 8, so I removed it from being installed, and added It's replacement (I tested the the original, and revised script on Debian 8, A.K.A. "Jessie".
Here is my revised version.

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 cmake libjpeg62-turbo-dev libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-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; sudo mkdir /minetest; cd; sudo git clone https://github.com/minetest/minetest.git; cd minetest/games; sudo git clone https://github.com/minetest/minetest_game.git; cd ..; sudo 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"
If you say 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
function.name_of_thing_to_do
is impossible, then you didn't try hard enough. :P

Mods I work on: MicroExpansion
 

Hiradur
Member
 
Posts: 26
Joined: Sat Feb 22, 2014 17:44

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

by Hiradur » Tue Oct 18, 2016 16:14

XtremeHacker wrote:Here is my revised version.


sudo should not be put before every command. It's a security risk and possibly breaks permissions for files. The 1-line script works fine on Debian 8 without these added sudos (only needs a replacement for libjpeg8).
 

User avatar
XtremeHacker
Member
 
Posts: 89
Joined: Mon Aug 01, 2016 04:15
GitHub: XtremeHacker
In-game: XtremeHacker

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

by XtremeHacker » Tue Oct 18, 2016 19:41

Hiradur wrote:
XtremeHacker wrote:Here is my revised version.


sudo should not be put before every command. It's a security risk and possibly breaks permissions for files. The 1-line script works fine on Debian 8 without these added sudos (only needs a replacement for libjpeg8).

OK, it seems you were right, maybe I didn't setup sudo right, thanks.
If you say 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
function.name_of_thing_to_do
is impossible, then you didn't try hard enough. :P

Mods I work on: MicroExpansion
 

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

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

by octacian » Wed Nov 09, 2016 03:26

On latest Debian 8, libjpeg does not appear to be valid. Maybe it's just my repo configuration. Instead, as Debian suggested, I simply used libjpeg62-turbo-dev.

Edit: Just noticed XtremeHacker pointed this out as well. Oh well, it should be more than clear now for newb Debian users :D

(newb as in people who don't read what Debian suggests as a replacement package, and instead have a mental breakdown)
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

User avatar
DreamKeeper
Member
 
Posts: 20
Joined: Mon Oct 24, 2016 17:37

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

by DreamKeeper » Fri Nov 11, 2016 14:52

Hello, friends!

Please be kind to answer the question:

I have Debian Wheezy, so.... do I need to get better OS version (config)... or... I can install minetest fresh version without any negative effetcts on my Debian Wheezy?

I appreciate your help.
 

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

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

by Calinou » Fri Nov 11, 2016 19:18

DreamKeeper wrote:Hello, friends!

Please be kind to answer the question:

I have Debian Wheezy, so.... do I need to get better OS version (config)... or... I can install minetest fresh version without any negative effetcts on my Debian Wheezy?

I appreciate your help.


This script might work on Debian wheezy, but I'm not sure. In any case, at the time of writing, you can still build Minetest yourself on Debian wheezy (or even Ubuntu 12.04, which is almost 5 years old now).
 

User avatar
DreamKeeper
Member
 
Posts: 20
Joined: Mon Oct 24, 2016 17:37

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

by DreamKeeper » Fri Nov 11, 2016 19:33

Calinou wrote:
DreamKeeper wrote:Hello, friends!

Please be kind to answer the question:

I have Debian Wheezy, so.... do I need to get better OS version (config)... or... I can install minetest fresh version without any negative effetcts on my Debian Wheezy?

I appreciate your help.


This script might work on Debian wheezy, but I'm not sure. In any case, at the time of writing, you can still build Minetest yourself on Debian wheezy (or even Ubuntu 12.04, which is almost 5 years old now).



Thank you very much.
 

User avatar
DreamKeeper
Member
 
Posts: 20
Joined: Mon Oct 24, 2016 17:37

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

by DreamKeeper » Fri Nov 11, 2016 22:42

Oh my.... I have almost running my own server.....

Only one bug (of feature?) I've got: I see nothing (black screen) when authorized as admin.
But, when authorized as normal user - I can see world and all is OK and perfect.

What's wrong with admin's view?
Do I need some mod to be installed? Or is this some sort of bug?
Attachments
cut2.PNG
cut2.PNG (327.68 KiB) Viewed 8193 times
cut1.PNG
cut1.PNG (10 KiB) Viewed 8193 times
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Sat Nov 12, 2016 00:08

DreamKeeper wrote:Oh my.... I have almost running my own server.....

Only one bug (of feature?) I've got: I see nothing (black screen) when authorized as admin.
But, when authorized as normal user - I can see world and all is OK and perfect.

What's wrong with admin's view?
Do I need some mod to be installed? Or is this some sort of bug?

Your "admin" player may be buried underground. Try enabling noclip (H key) and fly (K key), and fly up.
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
 

User avatar
DreamKeeper
Member
 
Posts: 20
Joined: Mon Oct 24, 2016 17:37

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

by DreamKeeper » Sat Nov 12, 2016 07:13

kaeza wrote:
DreamKeeper wrote:Oh my.... I have almost running my own server.....

Only one bug (of feature?) I've got: I see nothing (black screen) when authorized as admin.
But, when authorized as normal user - I can see world and all is OK and perfect.

What's wrong with admin's view?
Do I need some mod to be installed? Or is this some sort of bug?

Your "admin" player may be buried underground. Try enabling noclip (H key) and fly (K key), and fly up.



Absolutely correct. Now it's ok.
Thank you all!
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

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

by Lejo » Sat Nov 26, 2016 08:48

I can't install minetest with my new Ubuntu 16.10 Version.
It allways says:
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
E: Für Paket »libpng12-dev« existiert kein Installationskandidat.

And then I don't get the bin folder.

Please Help.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

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

by Lejo » Sat Nov 26, 2016 12:28

I now install libpng12-dev manual, but now i can't start minetest.

Lejo
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

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

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

by Calinou » Thu Dec 01, 2016 13:12

Lejo wrote:I now install libpng12-dev manual, but now i can't start minetest.

Lejo


Ubuntu 16.10 has upgraded to libpng16 instead of libpng12, you should both compile and run using that version.
 

PreviousNext

Return to Minetest Builds

Who is online

Users browsing this forum: No registered users and 6 guests

cron