[Linux] luk3yx's unofficial Minetest snap.

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

[Linux] luk3yx's unofficial Minetest snap.

by luk3yx » Tue Dec 20, 2016 22:06

luk3yx's unofficial Minetest snap


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

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.

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 Oct 31, 2018 18:51, edited 3 times in total.
git_undo() { [ -e .git ] || return 1; local r; 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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Fri Dec 23, 2016 16:25

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Fri Dec 23, 2016 18:40

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Sat Dec 24, 2016 08:05

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Sun Dec 25, 2016 19:21

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Mon Dec 26, 2016 17:17

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Tue Dec 27, 2016 04:34

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Tue Dec 27, 2016 14:58

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Tue Dec 27, 2016 18:28

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Wed Dec 28, 2016 17:18

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Wed Dec 28, 2016 18:29

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Thu Dec 29, 2016 22:16

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Fri Dec 30, 2016 20:00

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
 

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

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

by BBmine » Fri Dec 30, 2016 21:40

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Sat Dec 31, 2016 02:18

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
 

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

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

by BBmine » Sat Dec 31, 2016 05:07

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Sat Dec 31, 2016 18:39

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Sat Dec 31, 2016 19:08

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Sun Jan 01, 2017 16:25

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Sun Jan 01, 2017 17:44

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
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Mon Jan 02, 2017 06:51

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
Location: Germany
In-game: lof
 

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

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

by luk3yx » Mon Jan 02, 2017 21:00

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
Location: Germany
In-game: lof

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

by lightonflux » Tue Jan 03, 2017 07:01

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: 39
Joined: Sun Oct 21, 2012 18:14
Location: Earth
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx

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

by luk3yx » Tue Jan 03, 2017 19:23

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.
 

Next

Return to Builds



Who is online

Users browsing this forum: No registered users and 2 guests