News for hackers. Stuff that matters.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by pull_my_finger on Friday September 17, 2021 @09:43AM (#28565381)
Can someone "sell me" on snap? I've had nothing but trouble with it in my limited experience
Re:Ubuntu to Make Firefox Snap Default in 21.10 by snicker7 on Friday September 17, 2021 @09:57AM (#28565535)
It is, as far as I know, the only cross-distro package format that is designed to be cross-platform (desktop, server, IoT) and with built-in sandboxing. Moreover, it is feasible to base a distro off of snap alone (Ubuntu Core, designed for IoT).

Flatpak has sandboxing, but is only designed for desktop apps. Not server and not IoT.

Nix / Guix / AppImage does not have built-in application-level sandboxing out of the box.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by m45t3r on Friday September 17, 2021 @10:56AM (#28566204)
> It is, as far as I know, the only cross-distro package format that is designed to be cross-platform (desktop, server, IoT) and with built-in sandboxing. Moreover, it is feasible to base a distro off of snap alone (Ubuntu Core, designed for IoT).

It is not really cross-distro though, since different from Flatpak, Snap assumes many features to be enabled for sandboxing to work (like AppArmor [1]): https://wiki.archlinux.org/title/Snap#Installation. Flatpak only assumes, AFAIK, user namespaces support on Kernel.

[1]: This can be really problematic if your distro is using other MAC like SELinux, since while they're really not designed to run together.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by cloudbonsai on Saturday September 18, 2021 @01:03AM (#28573820)
Snap actually has a lot of benefits. Developers get a streamed way of publishing Linux apps. Users get an easier access to apps, and the benefit of sandboxing.

Case: at work recently I needed to use Microsoft Teams for a business meeting. With snap, I only needed to do `snap install teams`, and voila, I could start a web meeting with my customer.

Without snap, I would have to install Teams from Microsoft's apt repo. I think this is pretty inferior to snap, because 1) It's harder to manage, 2) implicitly grants a root access on my machine to Microsoft, and 3) can break my system with package conflicts.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by BruiseLee on Friday September 17, 2021 @10:27AM (#28565890)
Forced updates that can be delayed but not disabled.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by alyandon on Friday September 17, 2021 @11:24AM (#28566551)
Don't forget:

  1) snapd action logging doesn't go to the system logs and gets purged after 72 hours - makes troubleshooting why something broke REALLY fun
  2) "snap" directory polluting your home directory
Re:Ubuntu to Make Firefox Snap Default in 21.10 by johnisgood on Friday September 17, 2021 @12:55PM (#28567767)
Or not being able to get older versions of a particular program. If it is possible, I would like to know how.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by anuragsoni on Friday September 17, 2021 @02:35PM (#28569236)
If the older version is available in the snap repository it is is possible to install it. For example:

snap info go shows:

  name:      go
  summary:   Go programming language compiler, linker, stdlib
  publisher: Michael Hudson-Doyle (mwhudson)
  store-url: https://snapcraft.io/go
  contact:   [email protected]
  license:   BSD-3-Clause
  description: |
  This snap provides an assembler, compiler, linker, and compiled libraries
  for the Go programming language.
  snap-id: Md1HBASHzP4i0bniScAjXGnOII9cEK6e
  channels:
    latest/stable:    1.16.7           2021-09-08 (8298) 94MB classic
    latest/candidate: ↑                                       
    latest/beta:      ↑                                       
    latest/edge:      devel-8d2a9c32a2 2021-09-17 (8356) 99MB classic
    1.17/stable:      1.17             2021-08-17 (8172) 99MB classic
    1.17/candidate:   ↑                                       
    1.17/beta:        ↑                                       
    1.17/edge:        ↑                                       
    1.16/stable:      1.16.7           2021-09-08 (8298) 94MB classic
    1.16/candidate:   ↑                                       
    1.16/beta:        ↑                                       
    1.16/edge:        ↑                                       
    1.15/stable:      1.15.15          2021-09-08 (8304) 95MB classic
...

To install an older version you can run

  snap install go --channel=1.15/stable --classic
Re:Ubuntu to Make Firefox Snap Default in 21.10 by alyandon on Friday September 17, 2021 @04:36PM (#28570611)
That's not a generic mechanism at all though - right? It is only possible if the snap publisher has decided to support multiple release channels.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by xet7 on Friday September 17, 2021 @08:46PM (#28572528)
You can disable all Snap updates by adding a line to /etc/hosts like this:

127.0.0.1 api.snapcraft.io

Re:Ubuntu to Make Firefox Snap Default in 21.10 by xet7 on Friday September 17, 2021 @08:25PM (#28572383)
Snap is best for server apps. When I release new version of Wekan Open Source kanban https://wekan.github.io , it's very soon updated to all servers around the world. That is great for getting Node.js etc security updates installed fast, making all servers safe. Wekan has automatic database migrations etc for upgrading database structure. Update happens fast, only minimal downtime and then server is running newest Wekan. It has worked great for many years.

I have not found anything else that would install updates automatically fast like Snap.

And Canonical paying all that huge server infrastructure for snap updates, build servers, bandwidth, etc.

And Microsoft paying for all the repo hosting, bandwidth, etc at GitHub.

And others like Linux Foundation/CNCF, IBM, MacStadium etc providing development and build servers.

It's all standing shoulders of huge amount of giants. I could not afford all that server infra myself.

Wekan has Snap, Docker, Source and Sandstorm versions. I'm trying to figure out how to add more packaging formats, and have current packaging formats for more CPU architectures.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by hbt on Friday September 17, 2021 @09:46PM (#28572826)
try running snap inside a docker container and see the gateway to hell it opens
Re:Ubuntu to Make Firefox Snap Default in 21.10 by xet7 on Friday September 17, 2021 @10:05PM (#28572916)
Huh? Docker has limited amount of layers, and can easily consume a lot of disk space. It's also very easy to mess up data between layers.

Better would be to run Snap inside LXC containers, it works well: https://github.com/wekan/wekan-snap/wiki/Many-Snaps-on-LXC

Re:Ubuntu to Make Firefox Snap Default in 21.10 by hbt on Friday September 17, 2021 @11:32PM (#28573406)
My point is: you can easily install software in Docker using apt-get

You cannot easily install software in Docker using snaps.

This makes snaps less useful on servers than traditional apt-get.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by xet7 on Saturday September 18, 2021 @09:36AM (#28576159)
Snap with one package works on many distros.

For TSC platform game https://secretchronicles.org/en/ , how can I get all .deb packages I made to official repos?

https://secretchronicles.org/en/download/

For those .deb packages, I had to compile for CPU architecture and distro separately, because of all the different versions of dependencies.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by pjfin123 on Friday September 17, 2021 @02:56PM (#28569510)
Your desktop apps are sandboxed and can't, for example, read all of the files in your home directory.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by pjfin123 on Friday September 17, 2021 @02:56PM (#28569518)
Also more mature than Flatpak
Re:Ubuntu to Make Firefox Snap Default in 21.10 by 7v3x3n3sem9vv on Friday September 17, 2021 @03:32PM (#28569975)
What makes it more nature? From everything I've read and my own experience, it seems snap is leagues behind flatpak.
Re:Ubuntu to Make Firefox Snap Default in 21.10 by pjfin123 on Saturday September 18, 2021 @10:48AM (#28576679)
There are substantially more applications available for Snapcraft. Including mine Argos Translate! https://snapcraft.io/argos-translate
Re:Ubuntu to Make Firefox Snap Default in 21.10 by nix23 on Friday September 17, 2021 @01:53PM (#28568658)
Hard sell, you want to try Google Playstore...it's nearly the same ;)
Re:Ubuntu to Make Firefox Snap Default in 21.10 by xet7 on Friday September 17, 2021 @08:38PM (#28572462)
I really wish Google Playstore, and iOS/macOS App Stores would install apps automatically at background. Why I need to open those stores, click to update, and on Playstore even have it running at foreground to update?

Snap installs automatically, so it's modern.

Windows 11 Store, Chrome OS, and Linux Mint also can autoupdate at background.

Hopefully some day on all OSes have possibility to enable autoupdates to run at background.

Re:Ubuntu to Make Firefox Snap Default in 21.10 by nix23 on Saturday September 18, 2021 @04:17AM (#28574561)
>Hopefully some day on all OSes have possibility to enable autoupdates to run at background.

Maybe auto-insert kernelmodules directly from the net too, that would be a dream!! ;)