News for hackers. Stuff that matters.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by yourstruly-br on Wednesday June 15, 2022 @12:01PM (#31755033)
I highly discourage anyone to use Ubuntu Core as part of their solution. It is a secure environment, yes, but it is a nightmare to configure (snaps) and for everything, expect for the most basic stuff, you will need what is called a "brand store", which costs about $20k/year, regardless if you have 1 or 100 devices. (We could not even make one snap talk to another snap, checking another snap status etc). We had commercial discussions w/ Canonical and we basically moved away.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by GordonS on Wednesday June 15, 2022 @01:36PM (#31756412)
I like Ubuntu, and looked into using Ubuntu Core for an IoT architecture a few years ago - but the "brand store", which IIRC is mandatory for private deployments, are complete madness.

Plus, while the concept behind Snaps is interesting, in practice they seem to be nearly universally reviled.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by josteink on Wednesday June 15, 2022 @04:10PM (#31758784)
> Plus, while the concept behind Snaps is interesting, in practice they seem to be nearly universally reviled.

It might be worth mentioning that a more open, community driven and decentralized option offering mostly the same concepts exists in the way of Flatpak and Flathub.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by j1elo on Wednesday June 15, 2022 @06:32PM (#31760279)
And that Linux Mint, a very good derivation of Ubuntu LTS, made the choice to ditch Snap and integrate Flatpak instead in their version of the Software Store.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by Shared404 on Wednesday June 15, 2022 @08:36PM (#31761230)
As did Pop_OS.

No one uses snap but Ubuntu.

Flatpak fits the same niche, but better.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nullcipher on Wednesday June 15, 2022 @03:15PM (#31757947)
it's reviled because nobody wants to learn yet another deployment tool. apt has been reliable enough for installing packages and good enough UX that people can't be bothered
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by theamk on Wednesday June 15, 2022 @03:22PM (#31758049)
Nope, it's reviled because of its hostile user experience. Try finding an official, working way to stop automatic snap updates!
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by GordonS on Wednesday June 15, 2022 @04:08PM (#31758753)
Was going to say the same thing. IMO the snap concept would make it worth learning something new for some use cases - but forced automatic snap updates, high memory usage, long startup times and permission issues are not selling it. Moreover, Canonical is well aware of how snap is perceived, and has done diddly squat to fix it.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by ladyanita22 on Sunday June 19, 2022 @11:29AM (#31800278)
I am not aware of the high memory usage issues. Also, rhe permissions issue is related to poor packaging, more than anything else.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by rtp4me on Wednesday June 15, 2022 @05:48PM (#31759872)
The only way I got it working was via:

   snap set system proxy.http="http://127.0.0.1:1111"
   snap set system proxy.https="http://127.0.0.1:1111"
I started a thread [0] on the LXD container forum in 2019 due to all the issues with automatic snaps

https://discuss.linuxcontainers.org/t/disable-snap-auto-refr...

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by traceroute66 on Wednesday June 15, 2022 @01:07PM (#31755992)
> I highly discourage anyone to use Ubuntu Core as part of their solution.

Yup.

The guys at Nitrokey did a nice write-up about this last year.[1]

(TL;DR in the end, they chose Debian instead)

[1] https://www.nitrokey.com/news/2021/nextbox-why-we-decided-an...

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by hda111 on Wednesday June 15, 2022 @01:12PM (#31756078)
You can’t really compare the two wrt IoT. For Debian you need an additional OTA update mechanism. Luckily rauc is in the Debian repos but you still need to setup everything yourself: A/B partitioning etc.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by seized on Wednesday June 15, 2022 @11:38PM (#31762230)
Mender is a nice solution for the A/B partition updates as well.

https://mender.io/

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by jamesgeck0 on Wednesday June 15, 2022 @02:15PM (#31756994)
I'm surprised they ended up going with a non-immutable distro. They say their Debian-derived system is as robust as Ubuntu Core, but seemingly immediately contradict this by saying they're using apt to manage updates.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by GordonS on Wednesday June 15, 2022 @03:11PM (#31757883)
Aren't they only using it for security updates though?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by stubish on Thursday June 16, 2022 @02:56AM (#31763205)
apt updates are not transactional, so abort the update mid way and you have a partially applied update. Hopefully the packager was careful enough to ensure your system still boots and reapplying the update cleans everything up.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nix23 on Thursday June 16, 2022 @04:05AM (#31763581)
You can make a boot-enviroment-snapshot for active/backup.

If anything goes wrong you boot backup, then again snapshot and repeat. That way you don't need anything more then apt/pkg etc.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by mr337 on Wednesday June 15, 2022 @01:25PM (#31756251)
We had the some problem evaluating it for our startup. We were planning on using it to deploy ROS in the field and leverage the benefits. I was quoted $20k/year to get started and I think that also included 10 or 20 devices in the field. Then additional costs for that.

There was so many hacks to get it working with ROS since we rely on hardware for robotics to communicate with sensors, actuators, and network. Basically broke the security model to get our application working. We didn't go with it and went Debian as well :D

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by brnt on Wednesday June 15, 2022 @12:38PM (#31755568)
Been a huge fanboy since Warthog, but as of 20.04 I've sought refuge elsewhere. Turns out, Ubuntu isn't nearly as user friendly as it was back then, in fact, it's one of the least user friendly distros these days! Everybody progressed and you deserve t check it out yourself!
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by tomcam on Wednesday June 15, 2022 @12:48PM (#31755700)
What’s your new distro of choice?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by capableweb on Wednesday June 15, 2022 @01:55PM (#31756686)
Not the one you're replying to, but started my Linux experience with Ubuntu 6.10, was using it all the way up to ~17, and started using Arch Linux after that since during my time of using Ubuntu, I learnt enough Linux that I could setup my own system (and of course, with the help of the awesome Arch Wiki).
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by 5e92cb50239222b on Wednesday June 15, 2022 @04:27PM (#31759001)
Worth noting that Arch has had something resembling the OpenBSD installer for some time. Trying it out doesn't require reading 20 wiki articles as it did back in my day™. You answer a few questions, wait a few minutes, and it's done.

https://wiki.archlinux.org/title/Archinstall

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by capableweb on Wednesday June 15, 2022 @04:42PM (#31759207)
Wow, that's great, haven't seen that before! Granted, it was some time ago I did a setup from scratch.

Seems that installer is like 90% on the way to be useful as a general installer. At a glance, seems to missing things like networking setup (as most people use WiFi these days, it seems), but at least it takes care of most things you need for a install.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by ab_testing on Wednesday June 15, 2022 @02:29PM (#31757198)
Linux Mint for everyday use. It made my 10 year old hot running laptop into a cold mean machine.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by hoppyhoppy2 on Wednesday June 15, 2022 @03:59PM (#31758640)
Linux Mint Debian Edition, or the regular version based on Ubuntu?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by huachimingo on Wednesday June 15, 2022 @02:33PM (#31757259)
Anything that has a sane package system (apt, etc), and is able to install LXDE and use it out of the box.

Then, put dwm/[your fav. wm] on top of it, with some autoservices for bluetooth, mtp and stuff.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by brnt on Wednesday June 15, 2022 @10:34PM (#31761944)
Debian Stable.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by 8bitbuddhist on Wednesday June 15, 2022 @03:02PM (#31757757)
Not OP, but Pop OS is a great Ubuntu derivative.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nullcipher on Wednesday June 15, 2022 @03:16PM (#31757957)
Is that not for desktops? What is the alternative for servers?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by fomine3 on Wednesday June 15, 2022 @11:58PM (#31762330)
Anything bad for Ubuntu Server? I find some bad points for Ubuntu Desktop, but Ubuntu Server is fine.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by 5e92cb50239222b on Wednesday June 15, 2022 @04:03PM (#31758691)
If you want to set it up and forget about it, just use any RHEL clone (AlmaLinux is by far the fastest with updates: it took them like a week to ship RHEL 9 after the official release). You set up the system, install & enable `dnf-automatic`, and forget that it exists for the next 10 years.

If AlmaLinux (or any other clone) dies for some reason, you can always move to another clone without re-installation (using their tool `elevate`).

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by kbaker on Wednesday June 15, 2022 @03:59PM (#31758629)
We switched our base server build OS to Debian. Has been great so far and runs with very low resources / extra fluff.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by curt15 on Wednesday June 15, 2022 @02:02PM (#31756803)
Buying a Brand Store is also the only official way to have full control of snap updates. Someone at Canonical must have been taking notes from Microsoft -- take away control from users and sell it back in an "enterprise edition".
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by GordonS on Wednesday June 15, 2022 @03:14PM (#31757922)
No issue with Canonical making some money from their OSS efforts, but as-is the pricing seems crazy. At the least, I wish they'd do something like make brand stores free for less than 100 devices. That would also serve to hook people in, then they pay as they grow.

Ideally though, Canonical would let anyone run their own "brand store" on their own hardware.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nix23 on Wednesday June 15, 2022 @12:27PM (#31755391)
I completely sprinting away with anything canonical. SUSE/openSUSE/Micro RHEL/Fedora/CoreOS nothing else...no more canonical, too many disappointments and trickery into pay massive at the end of the day.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by RedShift1 on Wednesday June 15, 2022 @01:55PM (#31756689)
What is Micro RHEL?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by forgotpwd16 on Wednesday June 15, 2022 @02:06PM (#31756855)
Guess comment is (SUSE/openSUSE/Micro) (RHEL/Fedora/CoreOS).
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by yjftsjthsd-h on Wednesday June 15, 2022 @03:04PM (#31757788)
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nix23 on Thursday June 16, 2022 @03:58AM (#31763537)
Yes, "Leap Micro", "MicroOS" and "SLE Micro"
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by db65edfc7996 on Wednesday June 15, 2022 @12:28PM (#31755425)
Does the snap store server process still still use 300+ MB of memory? That alone would seem to disqualify it for IOT or other embedded use cases.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by nix23 on Wednesday June 15, 2022 @12:30PM (#31755452)
Na snapd need's just about 220, so perfect for a 1G raspi, if it's the only thing you want to run on.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by cptnapalm on Wednesday June 15, 2022 @05:45PM (#31759848)
That's more than my laptop-as-a-router using Manjaro uses in total.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by giancarlostoro on Wednesday June 15, 2022 @12:52PM (#31755771)
That is really ridiculous. I'm sure some companies out there will pay it without blinking, but how are the little people supposed to evaluate things, heck a former boss at a Fortune 500 I know for a fact will say no thank you, and move on. I would just use DEB packages and setup a package repository myself, what does snap bring that regular debian packaging does not?
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by moffkalast on Wednesday June 15, 2022 @01:00PM (#31755896)
> what does snap bring that regular debian packaging does not

Snap is like using a python virtualenv, while apt is like using global pip. We all know which one of these usually results in a broken installation.

Apt debs more often than not rely on some specific version of a third party package which becomes a headache when there's another package that needs a different version of it. Snap in theory solves that, making the deps local to the package you're installing.

If I had a dollar for every time I had apt bullshit me with "requires package, but it will not be installed" or something of the sort I'd probably have something over $20 which isn't that much but still infuriatingly high.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by 2143 on Wednesday June 15, 2022 @01:05PM (#31755971)
> We all know which one of these usually results in a broken installation.

And yet they're promoting snap.

Have they given us the ability to stop automatic updates?

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by sky-kedge0749 on Wednesday June 15, 2022 @01:48PM (#31756593)
It looks like Ubuntu Core lets you disable automatic updates for snaps: https://ubuntu.com/core/docs/refresh-control.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by theamk on Thursday June 16, 2022 @09:09PM (#31772938)
"Refresh control can be accomplished by using a gating snap"

I bet those only come from brand stores.. so $20k/year for an ability to disable updates?

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by forgotpwd16 on Wednesday June 15, 2022 @01:56PM (#31756702)
Or the ability to make your own snap store.
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by broknbottle on Wednesday June 15, 2022 @02:21PM (#31757073)
As an alternative just package everything up in an AppImage and use a AppRun shim script.. Then just deploy the AppImage to whatever. The LXD Snap bundles quite a few things, there's no reason you couldn't do the same with AppImage.

https://xon.sh/appimage.html#building-your-own-xonsh-appimag...

https://github.com/niess/python-appimage

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by quartesixte on Wednesday June 15, 2022 @01:12PM (#31756067)
>If I had a dollar for every time I had apt bullshit me with "requires package, but it will not be installed" or something of the sort I'd probably have something over $20 which isn't that much but still infuriatingly high.

Completely unrelated but the exactness of this turn of phrase here delighted me so much and without your permission I’d like to steal it for my own use in my daily conversations (without credit).

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by LeifCarrotson on Wednesday June 15, 2022 @01:37PM (#31756421)
It's an adaptation of Doofenshmirtz's line from Phineas and Ferb:

> "Wow! If I had a nickel for every time I was doomed by a puppet, I'd have two nickels. Which isn't a lot, but it's weird that it happened twice. Right?"

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by giancarlostoro on Thursday June 16, 2022 @04:20PM (#31770506)
My favorite distro in this regard was openSUSE, Debian and Ubuntu are #2's for me. I just can't install it anymore, it doesn't support the right drivers before the install process finishes, which causes issues. I'm not a fan of having to do anything to trick a GUI based installer to work.

Honestly wondering if a System76 box or laptop would play nicely with openSUSE.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by mrighele on Wednesday June 15, 2022 @01:52PM (#31756640)
We are talking about IoT devices where (hopefully) the company knows exactly what is installed and what not, so I don't think it is a big issue. There may still be conflicts to solve, but you can manage them when you prepare the deb package, not when you install it
Re:Ubuntu Core 22 is now available – optimised for IoT and e... by 4khilles on Wednesday June 15, 2022 @07:25PM (#31760724)
I miss the days when "installing" something meant copying a file to the machine.

I don't really remember ever doing this, but I still miss it somehow.

Re:Ubuntu Core 22 is now available – optimised for IoT and e... by discreteevent on Wednesday June 15, 2022 @02:21PM (#31757075)
If you've only got one device then it probably doesn't make sense. But if you have a number of devices, you probably have a business and need to make sure that you can reliably and securely update them remotely. How many developer/ops hours do you think that would take? 20k doesn't buy you much in dev hours these days.