[Linux] luk3yx's unofficial Minetest 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

As shown on http://snapcraft.io/docs/reference/env I attempted to run and got the following error:

Code: Select all

$ snap run --shell minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory


I have checked both of my LM 18 systems and all snaps are install as "devmode" on my main system. The test system shows "-" under notes for your snap

Code: Select all

$ sudo snap install minetest-luk3yx --stable
$ snap list
Name             Version  Rev  Developer  Notes
core             16.04.1  641  canonical  -
minetest-luk3yx  0.4.15   6    luk3yx     devmode
~ $ minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory
Previously when I ran the following it showed core as "broken" (as shown below)

Code: Select all

$ snap list
Name             Version  Rev  Developer  Notes
core                      641  canonical  broken
minetest-luk3yx  0.4.15   6    luk3yx     devmode
I purged snapd and snap-confine and then reinstallled but it still shows all snaps as "devmode".

I checked /home/[user]/snap/minetest-luk3yx on both systems and the test machine had the normal minestest .minetest files contained within, while my my sytems has the following directories they are empty:

Code: Select all

 /home/[user]/snap/minetest-luk3yx/6
 /home/[user]/snap/minetest-luk3yx/common
I hope this additional information helps.
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

Spoiler
ClaudiusMinimus wrote:As shown on http://snapcraft.io/docs/reference/env I attempted to run and got the following error:

Code: Select all

$ snap run --shell minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory


I have checked both of my LM 18 systems and all snaps are install as "devmode" on my main system. The test system shows "-" under notes for your snap

Code: Select all

$ sudo snap install minetest-luk3yx --stable
$ snap list
Name             Version  Rev  Developer  Notes
core             16.04.1  641  canonical  -
minetest-luk3yx  0.4.15   6    luk3yx     devmode
~ $ minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory
Previously when I ran the following it showed core as "broken" (as shown below)

Code: Select all

$ snap list
Name             Version  Rev  Developer  Notes
core                      641  canonical  broken
minetest-luk3yx  0.4.15   6    luk3yx     devmode
I purged snapd and snap-confine and then reinstallled but it still shows all snaps as "devmode".

I checked /home/[user]/snap/minetest-luk3yx on both systems and the test machine had the normal minestest .minetest files contained within, while my my sytems has the following directories they are empty:

Code: Select all

 /home/[user]/snap/minetest-luk3yx/6
 /home/[user]/snap/minetest-luk3yx/common
I hope this additional information helps.
This is what happens when I run the same debugging command:

Code: Select all

luk3yx@example:~$ snap run --shell minetest-luk3yx
luk3yx@example:/home/luk3yx$
It launched another shell, with the confinement and environment variables of my snap.

I can conclude that this is an upstream bug, possibly with your build of snapd, and not with my snap. However, you could attempt to update your underlying system, in your case, Linux Mint.
I am sorry I can't provide a definite fix for this issue.

I have found the corresponding bug report here.
Last edited by luk3yx on Thu Jan 05, 2017 03:32, edited 1 time in total.

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

I installed the snap, but it's still Minetest 0.4.14. How do I fix this?

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:I installed the snap, but it's still Minetest 0.4.14. How do I fix this?
You may not be running my snap, as my snap is 0.4.15, the original version being 0.4.14-dev.
First, try launching my snap directly, to make sure the above is not happening to you.

Code: Select all

minetest-luk3yx
If that still fails, you can try updating my snap with the command below.

Code: Select all

sudo snap refresh minetest-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:I installed the snap, but it's still Minetest 0.4.14. How do I fix this?
You may not be running my snap, as my snap is 0.4.15, the original version being 0.4.14-dev.
First, try launching my snap directly, to make sure the above is not happening to you.

Code: Select all

minetest-luk3yx
If that still fails, you can try updating my snap with the command below.

Code: Select all

sudo snap refresh minetest-luk3yx
I did

Code: Select all

snap run minetest-luk3yx
but it's still 0.4.14.

I also tried updating.

Code: Select all

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

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:
Spoiler
ClaudiusMinimus wrote:As shown on http://snapcraft.io/docs/reference/env I attempted to run and got the following error:

Code: Select all

$ snap run --shell minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory


I have checked both of my LM 18 systems and all snaps are install as "devmode" on my main system. The test system shows "-" under notes for your snap

Code: Select all

$ sudo snap install minetest-luk3yx --stable
$ snap list
Name             Version  Rev  Developer  Notes
core             16.04.1  641  canonical  -
minetest-luk3yx  0.4.15   6    luk3yx     devmode
~ $ minetest-luk3yx
aa_change_onexec failed with -1. errmsg: No such file or directory
Previously when I ran the following it showed core as "broken" (as shown below)

Code: Select all

$ snap list
Name             Version  Rev  Developer  Notes
core                      641  canonical  broken
minetest-luk3yx  0.4.15   6    luk3yx     devmode
I purged snapd and snap-confine and then reinstallled but it still shows all snaps as "devmode".

I checked /home/[user]/snap/minetest-luk3yx on both systems and the test machine had the normal minestest .minetest files contained within, while my my sytems has the following directories they are empty:

Code: Select all

 /home/[user]/snap/minetest-luk3yx/6
 /home/[user]/snap/minetest-luk3yx/common
I hope this additional information helps.
This is what happens when I run the same debugging command:

Code: Select all

luk3yx@example:~$ snap run --shell minetest-luk3yx
luk3yx@example:/home/luk3yx$
It launched another shell, with the confinement and environment variables of my snap.

I can conclude that this is an upstream bug, possibly with your build of snapd, and not with my snap. However, you could attempt to update your underlying system, in your case, Linux Mint.
I am sorry I can't provide a definite fix for this issue.

I have found the corresponding bug report here.
Thank you, I search on this before but found nothing, but upon further searching I found that snap support for LinuxMint probably won't happen until LM 18.2, Thank you for all your 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:Thank you, I search on this before but found nothing, but upon further searching I found that snap support for LinuxMint probably won't happen until LM 18.2, Thank you for all your help!
If you want to run my snap, however are not concerned about the snap being sandboxed, use this script.
https://github.com/luk3yx/insecuresnaprun
Once this script is placed somewhere, change the Minetest launcher's command to this (modify as required):

Code: Select all

/path/to/insecure/snap/run minetest-luk3yx
Last edited by luk3yx on Sat Jan 28, 2017 05:38, edited 1 time in total.

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:I did

Code: Select all

snap run minetest-luk3yx
but it's still 0.4.14.

I also tried updating.

Code: Select all

error: cannot refresh "minetest-luk3yx": snap "minetest-luk3yx" has no updates available
Is the Minetest version 0.4.14 or 0.4.14-dev?
Also, can you give me the output of this?

Code: Select all

snap list | grep minetest-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:I did

Code: Select all

snap run minetest-luk3yx
but it's still 0.4.14.

I also tried updating.

Code: Select all

error: cannot refresh "minetest-luk3yx": snap "minetest-luk3yx" has no updates available
Is the Minetest version 0.4.14 or 0.4.14-dev?
Also, can you give me the output of this?

Code: Select all

snap list | grep minetest-luk3yx
0.4.14, no dev. I did notice today that I have 2 Minetests, one has no version number, and the other is 0.4.14 (The one from the debian repositories.)

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:0.4.14, no dev. I did notice today that I have 2 Minetests, one has no version number, and the other is 0.4.14 (The one from the debian repositories.)
Well, that is not my snap then. Can you please execute the commands I stated in the last post?
Edit: My snap is probably the one you claim has no version number. Look under the credits tab for the version number.

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

I am happy to let you know that your snap is now fully supported by Linux Mint 18.x

I was wondering if it is possible at this time to install version: "0.4.16"? If so, do I use the "--devmode" option?
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 am happy to let you know that your snap is now fully supported by Linux Mint 18.x

I was wondering if it is possible at this time to install version: "0.4.16"? If so, do I use the "--devmode" option?
Hello,

Thank you for the news on Linux Mint supporting snaps. I presume you mean 0.4.15-dev by 0.4.16. Currently, I don't have the time to push developer builds. If you want 0.4.16, you could get the snapcraft files from the GitHub page, change the branch from 'stable-0.4' to 'master', then build it from source.

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

luk3yx wrote:Hello,

Thank you for the news on Linux Mint supporting snaps. I presume you mean 0.4.15-dev by 0.4.16. Currently, I don't have the time to push developer builds. If you want 0.4.16, you could get the snapcraft files from the GitHub page, change the branch from 'stable-0.4' to 'master', then build it from source.

Installing Minetest 5.0-dev

Well, this has changed, thanks to https://build.snapcraft.io. You may now get developer builds by installing minetest-luk3yx-dev by running sudo snap install --edge minetest-luk3yx-dev. I do not create these builds, and they still have the copy & pasting bug for now.

Why not use --edge for the unstable snaps, and give them the same name?

Simply because you can run both stable and unstable at the same time with separate snaps.

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

Installing Minetest 0.4 alongside Minetest 5.0

Once Minetest 5.0 is released, minetest-luk3yx will be updated to Minetest 5.0. If you want to use Minetest 0.4 after this update, you can install minetest-luk3yx-4 (with sudo snap install minetest-luk3yx-4) and run both versions simultaneously.

minetest-luk3yx-4 has been changed to my fork that contains backported bugfixes and pitch flying.
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
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

Where do the mods need to stay so that they can on??
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

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

Miniontoby wrote:Where do the mods need to stay so that they can on??
Because of the way snaps work, provided you are using the minetest-luk3yx snap, you can put them in ~/snap/minetest-luk3yx/current/mods. If the "mods" directory doesn't exist, it's safe to create it.
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
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

luk3yx wrote:
Miniontoby wrote:Where do the mods need to stay so that they can on??
Because of the way snaps work, provided you are using the minetest-luk3yx snap, you can put them in ~/snap/minetest-luk3yx/current/mods. If the "mods" directory doesn't exist, it's safe to create it.
I had done sudo snap run minetest --server, but now I have done this snap run minetest --server and I can download mods
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest