=== Trevinho is now known as Trevinho[M] === Trevinho[M] is now known as Trevinho === Trevinho is now known as Trevinho[m] === Trevinho[m] is now known as Trevinho === Trevinho is now known as Trevinho[3v1n0] === Trevinho[3v1n0] is now known as Trevinho === Trevinho[m] is now known as Trevinho[3v1n0] === ricab is now known as ricab|bbl === ricab|bbl is now known as ricab === ricab is now known as ricab|lunch === ricab|lunch is now known as ricab [19:57] hi all. is it possible to make a valid snap "by hand", i.e., using mksquashfs? [19:57] no snapcraft, etc.? [19:57] if so, how? [19:58] * probono is thinking about making a snap that is also an AppImage at the same time... [19:58] You can use `snap pack some-dir` to create the snap file assuming you've prepared the contents of the snap independently [20:00] thanks ijohnson [20:05] Gettig error: cannot pack "./squashfs-root": invalid snap name: "NotepadPlusPlus" [20:07] ok, needs to be all lowercase.... [20:07] me@host:~$ snap pack ./squashfs-root [20:07] 2018/12/21 21:07:20.418838 container.go:205: in snap "notepadplusplus": "." should be world-readable and executable, and isn't: drwx------ [20:07] error: cannot pack "./squashfs-root": snap is unusable due to bad permissions [20:07] what now? [20:09] you probably need to make that directory "squashfs-root" readable, i.e. `chmod +r squashfs-root` [20:09] me@host:~$ chmod -R +r squashfs-root [20:09] me@host:~$ snap pack ./squashfs-root [20:09] 2018/12/21 21:09:36.736235 container.go:205: in snap "notepadplusplus": "." should be world-readable and executable, and isn't: drwxr--r-- [20:09] error: cannot pack "./squashfs-root": snap is unusable due to bad permissions [20:10] maybe you also need `chmod -R +x` [20:13] indeed ijohnson [20:13] now i have a .snap file - how to i run it? [20:14] $ snap run note*.snap [20:14] error: cannot find current revision for snap notepad: readlink /snap/notepad/current: no such file or directory [20:15] me@host:~$ sudo snap install note*snap [20:15] error: cannot find signatures with metadata for snap [20:15] "notepadplusplus_1.0_all.snap" [20:17] snaps are meant to be installed from the snap store at snapcraft.io, and when you go to run something like `snap install my-snap`, the snap file is downloaded along with assertions for the snap in an .assert file. If you want to install a snap without also installing assertions, as in your case when installing a snap built locally and not uploaded to the store you need to add the `--dangerous` flag [20:17] i.e. run `snap install --dangerous my-snap*.snap` [20:22] me@host:~$ sudo snap install --dangerous note*snap [20:22] error: only one snap file can be installed at a time [20:23] you probably have multiple *.snap files, either remove the ones you aren't trying to install or make the pattern more specific [20:23] stupid me, sorry [20:24] can install now [20:24] but. [20:24] me@host:~$ notepadplusplus [20:24] snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks [20:28] trying [20:28] sudo snap install --devmode --dangerous notepadplusplus_7.6.1_all.snap [20:28] does not seem to help [20:28] how can i disable all "security"? [20:30] the error message about snap-confine is not one I can help debug at the moment unfortunately. I'd recommend posting on the forum at forum.snapcraft.io for more help, as that seems like there may be an issue with your snapd installation [20:31] ok, thanks for your help ijohnson [21:05] * cachio EOY [21:56] https://github.com/probonopd/libhookexecv/issues/4 [21:56] me@host:~$ sudo apt purge snapd snap-confine [21:56] me@host:~$ sudo apt install -y snapd [21:56] did the trick [21:56] but now running into new issues [22:05] PR snapcraft#2430 opened: extractors: better appstream support for descriptions [22:06] probono: unfortunately I have to take off now, but if you post on the forum you're more likely to get help since most folks won't be watching IRC for the next 2 weeks due to holidays [22:07] good luck! [22:10] ping zyga [23:09] PR snapcraft#2431 opened: tests: re-enable spread tests on gce