How to use Cockpit on Leap 16.0 (GUI for Snapshots)?

I’m currently trying openSUSE in order to eveluate switching my and my girlfriends laptop to it. I heard that openSUSE replaced YaST with Cockpit. So I thought, in order to manage Btrfs snapshots, I have to open Cockpit on Leap 16.0. But it’s not in the menu.

According to Cockpit the easy way - Be happy without YaST, you have to install Cockpit first (which would mean that what I heard is wrong: YaST has not been replaced with Cockpit, but has been removed without replacement, and users are on themselves to find a replacement).

The thing is: On a fresh Leap 16 install, Discover fails to install Cockpit because it can’t resolve dependencies. zypper install cockpit-client-launcher offers me to resolve dependencies by either 1. uninstalling busybox-hostname-something (sounds dangerous), 2. not instaling cockpit-client-launcher 3. installing it, but it will be broken.

  1. Is it really true that YaST got removed without replacement, and Cockpit + Myrlyn is just what users figure out themselves to replace YaST?
  2. Is it really true that Cockpit can’t even be installed on a fresh Leap?
  3. Would Cockpit even be the place to search for a GUI for snapshots, or is the “snapshots with GUI” feature just gone for good in openSUSE?

Cockpit is a web apllication as f.e. cups web interface.

You start cockpit in a browser by using this URL:
localhost:9090

I do not use the client-launcher but you have to uninstall the busybox-xxxxx (1Selection 1)

You seem to have missed that the YaST software modules have been replaced by Myrlyn.

No but it is expected that users read the openSUSE Leap 16.0 Release Notes (e.g.chapter 3.10.1) before they start an installation…

No.

On a “normal” system there should be no need for any busybox-package. You should be able to install hostname (instead instead of busybox-hostname):

zypper in hostname

And as you can see from the release notes there is no need for cockpit-client-launcher. Installing the pattern cockpit should do.

zypper in -t pattern cockpit
1 Like

The advantage of the launcher is, it adds an desktop/menu entry for the users which do not want to create one on their own or type the address in the browser. Additionally it starts the cokpit socket and can enable SSH if wanted and some small helping steps.

This launcher was created after some users complained that they can’t find it in the app menu.

2 Likes

Thanks for the fast reply!

Unfortunatley, localhost:9090 in Firefox leads to a “connection failed” error.

Try to enable the socket via:

systemctl enable --now cockpit.socket

https://en.opensuse.org/Main:Cockpit

Yes, that is correct.

Nevertheless it is possible to use cockpit for local administration without cockpit-client-launcher. I for example entered “localhost:9090” in my favorite web browser (so no need for ssh) once and set a bookmark for future use.

But it would be interesting to know where that busybox-dependency comes from.

1 Like

It is a known bug with the busybox packages. There are several busybox packages which provide the same files/functions of other packages. Unfortunately the package solver sometimes chooses to install the busybox packages, which later leads to conflicts like the one in the opening thread.

busybox-hostname and hostname are the packages here in question.

There is a bugreport for this exact case but i don‘t find it atm.

Just fire up Myrlyn and be sure the Pattern for Cockpit are selected (this is my Leap 16.1 install):

That surprises me, too! I can assure you that I didn’t install anything after following the openSUSE Leap installer, where I selected the “KDE Plasma packages” option.

But if this is a known bug, I assume someone already reported it and I don’t have to?

Thanks for the explanation. But I don’t think this is obvious from the release notes.

The release notes don’t say Cockpit will be missing if you don’t do that, they just list the names of the modules this pattern will install. Also, they don’t tell you how to run Cockpit. If localhost:9090 is the way to go, that information is missing.

If those release notes are the place that should inform users about how to use Cockpit, they are incomplete, and maybe I should file a bug somewhere.

Generally I think saying “YaST got replaced with Cockpit and Myrlyn” is a bit misleading, if you need to perform additional steps in the terminal to install them, while YaST was just there.

The download website still advertises YaST as one of openSUSE’s USPs btw., but there already is an issue covering that.

I have Leap 16.1 installed … do not have Leap 16.0 … for me, the busybox stuff is not installed.

Yeah, it helps to read the thread.

It is a known installer/solver issue.

E.g. busybox-hostname and hostname both provide /bin/hostname. The solver sometimes picks the first available package. b comes before h…

Ahhh, I see. It will be this one.

And comment #3 fits to what I experienced while installing openSUSE Tumbleweed completely without installer:

When I installed packages which required some not yet installed other package and there was a busy box-equivalent for that not yet installed package then the busybox-package got installed without asking.

Now the question is: Why does this happen on an installer-based (Agama) installation?

1 Like

Because both methods use as underlying layer zypper.

Good you found the bugreport. But there are also some others regarding this busybox mess. This happened also here in the forums several times.

1 Like

I don’t think it was your fault. See my post # 15.

1 Like

Hmmm, … but shouldn’t an installer arrange the sequence in which the default packages will be installed, arrange in a way so that no busybox packets will be selected?

This is the bug which i don’t find atm. One maintainer/developer explained the internal mechanics in this bugreport which lead to this occurance.

For btrfs snapshots, you need snapper in command line or you can use