Thursday, September 14, 2023

Install Cockpit Flatpak Client on Debian BookWorm (12.1) (KDE Desktop)

UPDATE as Of 09/15/23

   In general upon first clean install  plasma-discover-backend-flatpak is not required. I had  random failures of remote-add --if-not-exists flathub only after `sudo flatpak remote-delete flathub`
=================================

Post below might be useful for Debian BookWorm Clones like SparkyLinux7 Orion Belt or any similar distro based on Debian 12.1. The core package for availability of access to flathub on Debian based KDE Desktop is plasma-discover-backend-flatpak.

Just to make things clear, Flatpak is the tool used to install applications, and FlatHub is a repository that distributes the applications to Flatpak users. FlatHub is only one of many online repositories (called “remotes” in Flatpak) that can be queried for software to download and install in Flatpak.

Cockpit Client provides a graphical interface to your servers, containers, and virtual machines. Connections are made over SSH, using the SSH configuration of the local user (including aliases, known hosts, key files, hardware tokens, etc).

The server needs to have Cockpit installed, but the Cockpit webserver doesn't need to be enabled, and no extra ports need to be opened.

Per https://cockpit-project.org/blog/cockpit-294.html

The primary process in a Cockpit Linux session is called cockpit-bridge. It translates operating system interfaces to a JSON stream protocol, which is used by Cockpit browser pages. Recently, cockpit-bridge has been rewritten in Python. The rewrite is now complete enough to start rolling it out. 

Proceed as follows :

boris@Debian12KDE:~$ uname -a

Linux Debian12KDE 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux

boris@Debian12KDE:~$ sudo apt install plasma-discover-backend-flatpak

[sudo] password for boris: 

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following additional packages will be installed:

  desktop-file-utils flatpak libflatpak0 libmalcontent-0-0 libostree-1-1 xdg-dbus-proxy

Suggested packages:

  malcontent-gui

The following NEW packages will be installed:

  desktop-file-utils flatpak libflatpak0 libmalcontent-0-0 libostree-1-1

  plasma-discover-backend-flatpak xdg-dbus-proxy

0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.

Need to get 2,327 kB of archives.

After this operation, 10.4 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://deb.debian.org/debian bookworm/main amd64 desktop-file-utils amd64 0.26-1 [91.2 kB]

Get:2 http://deb.debian.org/debian bookworm/main amd64 xdg-dbus-proxy amd64 0.1.4-3 [23.2 kB]

Get:3 http://deb.debian.org/debian bookworm/main amd64 libmalcontent-0-0 amd64 0.11.0-4 [21.4 kB]

Get:4 http://deb.debian.org/debian bookworm/main amd64 libostree-1-1 amd64 2022.7-2 [321 kB]

Get:5 http://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.4-1 [1,392 kB]

Get:6 http://deb.debian.org/debian bookworm/main amd64 libflatpak0 amd64 1.14.4-1 [360 kB]

Get:7 http://deb.debian.org/debian bookworm/main amd64 plasma-discover-backend-flatpak amd64 5.27.5-2 [117 kB]

Fetched 2,327 kB in 1s (1,823 kB/s)                      

Selecting previously unselected package desktop-file-utils.

(Reading database ... 168799 files and directories currently installed.)

. . . . . . . . . . . . . . . . . 

boris@Debian12KDE:~$ su - root

Password: 

root@Debian12KDE:~# flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

root@Debian12KDE:~# 

logout

boris@Debian12KDE:~$  flatpak --version

Flatpak 1.14.4

boris@Debian12KDE:~$ sudo flatpak install flathub  org.cockpit_project.CockpitClient

Looking for matches…

Required runtime for org.cockpit_project.CockpitClient/x86_64/stable (runtime/org.gnome.Platform/x86_64/43) found in remote flathub

Do you want to install it? [Y/n]: Y

org.cockpit_project.CockpitClient permissions:

    ipc                  fallback-x11      wayland      x11      dri

    dbus access [1]

    [1] org.freedesktop.Flatpak

        ID                                    Branch        Op   Remote    Download

 1. [✓] org.freedesktop.Platform.GL.default   22.08         i    flathub   142.8 MB / 143.1 MB

 2. [✓] org.freedesktop.Platform.GL.default   22.08-extra   i    flathub    16.3 MB / 143.1 MB

 3. [✓] org.freedesktop.Platform.openh264     2.2.0         i    flathub     1.2 MB / 944.3 kB

 4. [✓] org.gnome.Platform.Locale             43            i    flathub    17.8 kB / 340.6 MB

 5. [✓] org.gnome.Platform                    43            i    flathub   365.9 MB / 329.3 MB

 6. [✓] org.cockpit_project.CockpitClient     stable        i    flathub    14.4 MB / 10.8 MB

Installation complete.

















































































































No comments:

Post a Comment