Page 4 of 5

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

PostPosted: Fri Apr 22, 2016 01:24
by octacian
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

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

PostPosted: Tue May 17, 2016 10:34
by firefox
this needs a bump

*bump* :3

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

PostPosted: Tue May 17, 2016 11:02
by twoelk
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.

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

PostPosted: Tue May 24, 2016 16:31
by Lejo
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.

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

PostPosted: Tue May 24, 2016 18:37
by ExeterDad
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

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

PostPosted: Thu May 26, 2016 09:20
by Lejo
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.

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

PostPosted: Thu May 26, 2016 13:44
by Lejo
The Problem is detached.

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

PostPosted: Sat May 28, 2016 20:43
by Mainpage
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.

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

PostPosted: Wed Jun 08, 2016 20:27
by Mainpage
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.

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

PostPosted: Wed Jun 08, 2016 22:24
by ExeterDad
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.

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

PostPosted: Wed Jun 08, 2016 23:58
by Mainpage
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.

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

PostPosted: Thu Jun 09, 2016 15:27
by Glorfindel
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?

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

PostPosted: Sun Jun 12, 2016 19:50
by Fixerol
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!

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

PostPosted: Mon Jun 13, 2016 02:10
by Wayward_One
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?

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

PostPosted: Mon Jun 13, 2016 14:26
by Glorfindel
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?

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

PostPosted: Mon Jun 13, 2016 17:53
by Mainpage
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.

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

PostPosted: Mon Jun 13, 2016 17:59
by Glorfindel
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...

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

PostPosted: Tue Oct 18, 2016 03:27
by XtremeHacker
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"

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

PostPosted: Tue Oct 18, 2016 16:14
by Hiradur
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).

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

PostPosted: Tue Oct 18, 2016 19:41
by XtremeHacker
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.

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

PostPosted: Wed Nov 09, 2016 03:26
by octacian
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)

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

PostPosted: Fri Nov 11, 2016 14:52
by DreamKeeper
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.

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

PostPosted: Fri Nov 11, 2016 19:18
by Calinou
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).

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

PostPosted: Fri Nov 11, 2016 19:33
by DreamKeeper
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.

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

PostPosted: Fri Nov 11, 2016 22:42
by DreamKeeper
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?

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

PostPosted: Sat Nov 12, 2016 00:08
by kaeza
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.

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

PostPosted: Sat Nov 12, 2016 07:13
by DreamKeeper
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!

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

PostPosted: Sat Nov 26, 2016 08:48
by Lejo
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.

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

PostPosted: Sat Nov 26, 2016 12:28
by Lejo
I now install libpng12-dev manual, but now i can't start minetest.

Lejo

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

PostPosted: Thu Dec 01, 2016 13:12
by Calinou
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.