Page 4 of 7

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

Posted: Sun Sep 20, 2015 09:32
by Calinou
hb.operandi wrote:From what I can tell, it's not installing it as /.minetest but just /minetest :/
This is intended. Else, you wouldn't be able to start the game without displaying hidden folders to access the game folder.

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

Posted: Sun Sep 20, 2015 09:40
by hb.operandi
I had a problem similiar to that before...what I mean to say is that NO /.minetest was installed.


the error I keep getting is
EDIT: found the terminal error:

Code: Select all

[ 14%] Built target GenerateVersion
Is there a way I can change the version. It says that it's 0.4.13-dev-452dflc

is there something newer? or more stable?

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

Posted: Sun Sep 20, 2015 10:38
by hb.operandi
Le sigh

I'm just gonna lobotomize and update.

See y'all on the other side.

<#3

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

Posted: Sun Sep 20, 2015 12:54
by hb.operandi
oh sweet merciful Calinou. Thank you for this code. My original post rings true once more.

Had to completely wipe my precise and go for trusty, but that also could just be coincidental. I had been messing around with stuff (nothing too bad but close enough for me to realize I skirted danger) and ended up with a 1 program not fully installed or removed and realized I probably messed around too much. It was just an easier solution to break it to the floor and start fresh.

I'm a smash it against the wall kinda girl Used to study architecture so this statement was literal at times.

So if nothing else I can say on a Samsung Chromebook armf 64-bit this code works like a dream.

Sincerely,
Belle

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

Posted: Thu Oct 22, 2015 15:11
by Hiradur
On Debian 8.2 I got this:

Code: Select all

Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libjpeg62-turbo-dev
After replacing libjpeg8-dev with libjpeg62-turbo-dev I was able to build Minetest.

EDIT: Oops, has already been mentioned on the page before, sorry.

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

Posted: Thu Dec 17, 2015 01:13
by GreenIron7818
Hello All,
I must say in advance I am sorry if this post is out of order.
I am new to your forum and very new to linux.
I am running Ubuntu 14.04 LTS in 64-bit on an AMD x4 640 CPU with 15gb ram.
I have installed and played with the game Minetest for a few days and have fell in love with it (I have had Minecraft for all most 4 years). Now since the switch to Ubuntu from windows my minecraft is so laggy but Minetest runs super, here is where my problems start.
1. My software center will only offers version 4.9 of minetest and I would like to get the newest version 4.13.
2. most of the code work I have found is dated and not working as listed, with me having no knowledge of how to work with on in linux I am so lost, but willing to learn.

What I need is someone to show (teach) me how to do things step by step.
Or show me where the information is already. Like I said I am very new to linux and now just enough to get in some deep water fast. LOL.

Thank you for your help.

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

Posted: Thu Dec 17, 2015 19:27
by IvĂ 
@GreenIron7817, take a look here and ask anything that you don't understand:

https://launchpad.net/~minetestdevs/+ar ... ntu/stable

This page explains far better than I how to add a PPA in your system and how to upgrade it.
With this PPA installed on your system you'll get the last minetest stable release (0.4.13 at this moment).

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

Posted: Sun Mar 27, 2016 21:55
by benrob0329
Would it be possible to make one for Fedora?

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

Posted: Sun Mar 27, 2016 22:40
by Calinou
benrob0329 wrote:Would it be possible to make one for Fedora?
Sure, I just need to have a reliable dependency list for Fedora. Simply put, I need to know which set of packages needs to be installed to make Minetest build, starting from a "bare" Fedora install.

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

Posted: Sun Mar 27, 2016 23:29
by benrob0329
https://apps.fedoraproject.org/packages/ is a handy tool for finding packages.

Most lib* or *-dev packages end in -devel, and

Code: Select all

sudo dnf install -y <packages>
Will work for Fedora 22+

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

Posted: Mon Mar 28, 2016 03:11
by benrob0329
I got this:

Code: Select all

sudo dnf install -y gcc g++ irrlicht gettext freetype cmake bzip2 libpng libjpeg-turbo libXxf86vm mesa-libGLU libsqlite3x libogg libvorbis openal openal-soft openssl curl luajit lua leveldb; 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"
However is throws this at me:

Code: Select all

-- Could NOT find OpenAL (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR) 
-- Could NOT find VORBIS (missing:  OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY) 
-- Sound enabled, but OpenAL not found!
-- Sound enabled, but Vorbis libraries not found!
CMake Error at src/CMakeLists.txt:98 (message):
  Sound enabled, but cannot be used.

  To continue, either fill in the required paths or disable sound.
  (-DENABLE_SOUND=0)


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

Posted: Mon Mar 28, 2016 03:36
by benrob0329
Nvm, figured it out!

Code: Select all

sudo dnf install -y gcc-c++ irrlicht-devel gettext freetype cmake bzip2-devel libpng libjpeg-turbo libXxf86vm mesa-libGLU libsqlite3x-devel libogg-devel libvorbis-devel openal-devel curl-devel luajit-devel lua-devel leveldb-devel ncurses-devel redis hiredis-devel gmp-devel; 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"

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

Posted: Sun Apr 10, 2016 22:47
by octacian
Thanks Calinou! This made everything easier!

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

Posted: Tue Apr 12, 2016 02:12
by octacian
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!

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

Posted: Tue Apr 12, 2016 09:38
by Calinou
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.

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

Posted: 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:

Code: Select all

/usr/local/share/minetest

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

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

*bump* :3

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

Posted: 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

Posted: 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

Posted: 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:

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

Posted: 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

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

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

Posted: 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

Posted: 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

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

Posted: 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.