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

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

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

by Calinou » Post

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.

User avatar
hb.operandi
Member
Posts: 24
Joined: Mon Sep 14, 2015 19:47
In-game: Belle

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

by hb.operandi » Post

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?
There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss. ... Clearly, it is this second part, the missing, that presents the difficulties."

my other life
http://hboperandi.blogspot.com/

User avatar
hb.operandi
Member
Posts: 24
Joined: Mon Sep 14, 2015 19:47
In-game: Belle

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

by hb.operandi » Post

Le sigh

I'm just gonna lobotomize and update.

See y'all on the other side.

<#3
There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss. ... Clearly, it is this second part, the missing, that presents the difficulties."

my other life
http://hboperandi.blogspot.com/

User avatar
hb.operandi
Member
Posts: 24
Joined: Mon Sep 14, 2015 19:47
In-game: Belle

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

by hb.operandi » Post

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
There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss. ... Clearly, it is this second part, the missing, that presents the difficulties."

my other life
http://hboperandi.blogspot.com/

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

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

by Hiradur » Post

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.

GreenIron7818
New member
Posts: 1
Joined: Thu Dec 17, 2015 00:07
GitHub: GreenIron7818
In-game: GreenIron7818

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

by GreenIron7818 » Post

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.

Ivà
Member
Posts: 115
Joined: Sun Feb 22, 2015 07:11
GitHub: melzua
IRC: melzua
In-game: melzua
Location: Catalonia

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

by Ivà » Post

@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).

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

Would it be possible to make one for Fedora?

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

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

by Calinou » Post

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.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

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+

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

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)


User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

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"

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

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

by octacian » Post

Thanks Calinou! This made everything easier!
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

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

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

by octacian » Post

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!
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

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

by Calinou » Post

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.

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

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

by octacian » Post

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
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

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

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

by firefox » Post

this needs a bump

*bump* :3
✨🏳️‍🌈♣️✨

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

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

by twoelk » Post

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.

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

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

by Lejo » Post

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.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

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

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

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

by Lejo » Post

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.

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

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

by Lejo » Post

The Problem is detached.

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 » Post

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 » Post

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.
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: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest