[Linux] luk3yx's unofficial Minetest snap.

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

[Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

luk3yx's unofficial Minetest snap

This is my unofficial Minetest snap package, derived from the Minetest snap in the snappy playpen.

Deprecation notice

I no longer maintain or update this snap, I recommend using the Flatpak instead.

How to install

Using sudo: (Ubuntu & Derivatives)

Code: Select all

$ sudo snap install minetest-luk3yx
Using su:

Code: Select all

$ su -c 'snap install minetest-luk3yx'
Note: Make sure that snapd is installed before running the above commands.

Related snaps

You can replace minetest-luk3yx in the above commands to install one of these instead.
  • minetest-luk3yx-4: A fork of Minetest 0.4, will not be updated to Minetest 5.0.
  • minetest-luk3yx-dev: Recent development build of Minetest.

FAQ

What is a snap?
snapcraft.io wrote:Snaps are universal Linux packages.
Where can I find snapcraft.yaml?
You can find it here, on GitHub. Remember it is also licensed under LGPL 2.1+.

How do I install snapd?
Debian, Ubuntu, and Ubuntu derivatives:

Code: Select all

sudo apt install snapd
OpenSuse:

Code: Select all

sudo zypper addrepo http://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy
sudo zypper install snapd
Arch Linux:

Code: Select all

sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
More:
http://snapcraft.io/docs/core/install

Credit to http://snapcraft.io for the resources shown in the FAQ.
Last edited by luk3yx on Wed Mar 15, 2023 22:58, edited 7 times in total.
git_undo() { [ -e .git ] || return 1; local r=$(git remote get-url origin); cd ..; rm -rf "$OLDPWD"; git clone "$r" "$OLDPWD"; cd "$OLDPWD"; }

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

Thank you for your minetest snap app. Unforutunately without irrlicht 1.8.4 or greater, the copy/paste from LinuxMint 18.x does not work. See my posts in this thread for more details: https://github.com/minetest/minetest/issues/373
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:Thank you for your minetest snap app. Unforutunately without irrlicht 1.8.4 or greater, the copy/paste from LinuxMint 18.x does not work. See my posts in this thread for more details: https://github.com/minetest/minetest/issues/373
Thank you for notifying me of this issue. Unfortunately, I am using Ubuntu 16.04 to compile the builds, that only provides 1.8.3. If there is any way I can upgrade this library, preferably without destroying my system, please let me know. Also note that the official Minetest builds for Ubuntu 16.04 also seem to have this issue.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:Thank you for notifying me of this issue. Unfortunately, I am using Ubuntu 16.04 to compile the builds, that only provides 1.8.3. If there is any way I can upgrade this library, preferably without destroying my system, please let me know. Also note that the official Minetest builds for Ubuntu 16.04 also seem to have this issue.
The only thing that comes to mind is to use VirtualBox or some other VM to run Ubuntu 16.10 and compile with the newer library.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:The only thing that comes to mind is to use VirtualBox or some other VM to run Ubuntu 16.10 and compile with the newer library.
I'll try a couple of boot USBs.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:I'll try a couple of boot USBs.
Thank you! I look forward to hearing what your results were.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:Thank you! I look forward to hearing what your results were.
I have released an update that fixes this bug. Thank you ClaudiusMinimus for notifying me that this bug affected my snap.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:I have released an update that fixes this bug. Thank you ClaudiusMinimus for notifying me that this bug affected my snap.
Thank you for fixing this bug. Unfortunately, I cannot update the snap

Code: Select all

sudo snap refresh minetest-luk3yx
error: cannot refresh "minetest-luk3yx": snap "minetest-luk3yx" has no updates available
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote: Thank you for fixing this bug. Unfortunately, I cannot update the snap

Code: Select all

sudo snap refresh minetest-luk3yx
error: cannot refresh "minetest-luk3yx": snap "minetest-luk3yx" has no updates available
That's strange. Maybe it updated automatically. Try this:

Code: Select all

snap list | grep minetest-luk3yx
You should get something like this:

Code: Select all

minetest-luk3yx  0.4.15       5    luk3yx     -
The number, in this example '5', should be at least 5. If it is 4 or under, you are still affected by this bug.
Last edited by luk3yx on Wed Dec 28, 2016 18:27, edited 1 time in total.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:That's strange. Maybe it updated automatically. Try this:

Code: Select all

minetest-luk3yx --version
If you get a few lines beginning with '+', the update hasn't been applied.
Thank you for your reply. I added the --version flag and this was the output:

Code: Select all

sudo snap refresh minetest-luk3yx --version 
...
snap       2.17.1ubuntu1
snapd      2.17.1ubuntu1
series     16
linuxmint  18.1
And it worked! Thank you very much for your studious attention to this issue.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:Thank you for your reply. I added the --version flag and this was the output:

Code: Select all

sudo snap refresh minetest-luk3yx --version 
...
snap       2.17.1ubuntu1
snapd      2.17.1ubuntu1
series     16
linuxmint  18.1
And it worked! Thank you very much for your studious attention to this issue.
I am sorry, but I think you misunderstood my instructions.
In that example, I meant to omit 'sudo snap refresh'. I have modified the instructions so they are more straight-forward.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

After getting your snap to work on a test machine, I then tried to install it on my regular pc and minetest would not open. When I ran the following in a terminal it output the following:

Code: Select all

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/minetest-luk3yx_minetest.desktop /snap/bin/minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory
This system has a working copy of 0.4.15 from the dev ppa, but I would rather use yours since it includes irrlicht 1.8.4. I have tried removing your snap and the ppa install, then reinstall your snap, but I still get the error.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:After getting your snap to work on a test machine, I then tried to install it on my regular pc and minetest would not open. When I ran the following in a terminal it output the following:

Code: Select all

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/minetest-luk3yx_minetest.desktop /snap/bin/minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory
This system has a working copy of 0.4.15 from the dev ppa, but I would rather use yours since it includes irrlicht 1.8.4. I have tried removing your snap and the ppa install, then reinstall your snap, but I still get the error.
For future reference, just run:

Code: Select all

minetest-luk3yx
You could try updating ubuntu-core, and checking if that has worked.

Code: Select all

sudo snap refresh ubuntu-core

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [Linux] luk3yx's unofficial Minetest snap.

by BBmine » Post

Hi, I have Debian testing. I followed the directions and got this:

Code: Select all

error: cannot install "minetest-luk3yz": snap not found

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

BBmine wrote:Hi, I have Debian testing. I followed the directions and got this:

Code: Select all

error: cannot install "minetest-luk3yz": snap not found
Hello BBmine,

Try doing "minetest-luk3yx", not "minetest-luk3yz"

Thanks,

luk3yx

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [Linux] luk3yx's unofficial Minetest snap.

by BBmine » Post

luk3yx wrote:
BBmine wrote:Hi, I have Debian testing. I followed the directions and got this:

Code: Select all

error: cannot install "minetest-luk3yz": snap not found
Hello BBmine,

Try doing "minetest-luk3yx", not "minetest-luk3yz"

Thanks,

luk3yx
Oh, got your name wrong :P/

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

You suggested i refresh ubuntu-core, which I did

Code: Select all

$ sudo snap refresh ubuntu-core
error: cannot refresh "ubuntu-core": cannot find snap "ubuntu-core"
I then checked to see if it was installed and found it appears to be broken:

Code: Select all

$ snap list
Name             Version  Rev  Developer  Notes
core                      641  canonical  broken
minetest-luk3yx  0.4.15   6    luk3yx     devmode
I then added the --version flag and the output was:

Code: Select all

sudo snap refresh ubuntu-core --version 
snap       2.17.1ubuntu1
snapd      2.17.1ubuntu1
series     16
linuxmint  18.1
I've tried running the launcher directly and found this:

Code: Select all

 /snap/minetest-luk3yx/6 $ ./launcher 
./launcher: 16: cd: can't cd to .
./launcher: 40: exec: /bin/minetest: not found
minetest is in fact not in the bin directory
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote:You suggested i refresh ubuntu-core, which I did

Code: Select all

$ sudo snap refresh ubuntu-core
error: cannot refresh "ubuntu-core": cannot find snap "ubuntu-core"
I then checked to see if it was installed and found it appears to be broken:

Code: Select all

$ snap list
Name             Version  Rev  Developer  Notes
core                      641  canonical  broken
minetest-luk3yx  0.4.15   6    luk3yx     devmode
I then added the --version flag and the output was:

Code: Select all

sudo snap refresh ubuntu-core --version 
snap       2.17.1ubuntu1
snapd      2.17.1ubuntu1
series     16
linuxmint  18.1
I've tried running the launcher directly and found this:

Code: Select all

 /snap/minetest-luk3yx/6 $ ./launcher 
./launcher: 16: cd: can't cd to .
./launcher: 40: exec: /bin/minetest: not found
minetest is in fact not in the bin directory
I'm sorry, but Minetest won't launch like that. It needs the snappy environment variables.
If you get confused, please refer to https://snapcraft.io
Just launch it by running

Code: Select all

minetest-luk3yx

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:I'm sorry, but Minetest won't launch like that. It needs the snappy environment variables.
If you get confused, please refer to https://snapcraft.io
Just launch it by running

Code: Select all

minetest-luk3yx
I have tried launching as you suggest, and I'm not confused. Everything else is trying to find out what is happening. I had hoped I was providing information to help find the cause. If have any suggestions of how to debug this I would appreciate it. The main thing I have noticed is that there is no:

Code: Select all

/bin/minetest
I tried making a symbolic link to the snap /bin/minetest and it did not help.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

ClaudiusMinimus wrote: I have tried launching as you suggest, and I'm not confused. Everything else is trying to find out what is happening. I had hoped I was providing information to help find the cause. If have any suggestions of how to debug this I would appreciate it. The main thing I have noticed is that there is no:

Code: Select all

/bin/minetest
I tried making a symbolic link to the snap /bin/minetest and it did not help.
To try and fix the underlying issue, try this:

Code: Select all

sudo snap refresh
...then launch the snap using the GUI.

For the issue about /bin/minetest (try the above first):
Can you please read up on snappy's environment variables, confinement, and the source of the launcher script. There is not intended to be /bin/minetest, as everything is contained within /snap/minetest-luk3yx. If you have errors because of /bin/minetest not existing, you may not be launching the snap correctly.

I am trying to help you understand this issue, I'm sorry if you don't. All my Minetest builds are tested before publishing them. You are providing enough information at the moment, I'm struggling to try and explain the issue.

User avatar
ClaudiusMinimus
Member
Posts: 42
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus
Location: Rocky Mountiains in the Western USA
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by ClaudiusMinimus » Post

luk3yx wrote:Can you please read up on snappy's environment variables, confinement, and the source of the launcher script. There is not intended to be /bin/minetest, as everything is contained within /snap/minetest-luk3yx. If you have errors because of /bin/minetest not existing, you may not be launching the snap correctly.

I am trying to help you understand this issue, I'm sorry if you don't. All my Minetest builds are tested before publishing them. You are providing enough information at the moment, I'm struggling to try and explain the issue.
Your points are well taken and I greatly appreciate the effort you have placed in trying to help me. I have attempted to launch the snap as you have instructed, the other attempts were my of my own accord and without properly understanding the snap system. I will do as you suggest through reading the documentation and hopefully I will be able to resolve this issue.

Thank you for your patience.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

Re: [Linux] luk3yx's unofficial Minetest snap.

by lightonflux » Post

Is the snapcraft.yaml public?

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

lightonflux wrote:Is the snapcraft.yaml public?
Yes, thank you for reminding me.
Seeing you are requesting it, I'll put a copy of the link here. (Sorry I couldn't manage GitHub)
My snapcraft directory
LGPL 2.1+

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

Re: [Linux] luk3yx's unofficial Minetest snap.

by lightonflux » Post

luk3yx wrote:
lightonflux wrote:Is the snapcraft.yaml public?
Yes, thank you for reminding me.
Seeing you are requesting it, I'll put a copy of the link here. (Sorry I couldn't manage GitHub)

I would like to see an official MT snap at some point. Therefore it would be beneficial to have the files publicly on Github or Gitlab, so other people can learn how to snap stuff or improve this specific MT snap.

Do you need help with git and github/gitlab? I am happy to help. I could open a repo with my account, but i don't want people to think it is the upstream snapcraft.yaml.

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: [Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Post

lightonflux wrote:
luk3yx wrote:
lightonflux wrote:Is the snapcraft.yaml public?
Yes, thank you for reminding me.
Seeing you are requesting it, I'll put a copy of the link here. (Sorry I couldn't manage GitHub)

I would like to see an official MT snap at some point. Therefore it would be beneficial to have the files publicly on Github or Gitlab, so other people can learn how to snap stuff or improve this specific MT snap.

Do you need help with git and github/gitlab? I am happy to help. I could open a repo with my account, but i don't want people to think it is the upstream snapcraft.yaml.
I am fine with GitHub, and seeing you are asking, I'll start a GitHub project.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests