From 6e79bcb30b5a3132c40d3239509b3cf467ca98e0 Mon Sep 17 00:00:00 2001 From: julien Date: Mon, 10 Nov 2025 14:14:10 +0100 Subject: [PATCH] "Updates" --- On host/Cockpit.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/On host/Cockpit.md b/On host/Cockpit.md index 0fd9e7a..5f07265 100644 --- a/On host/Cockpit.md +++ b/On host/Cockpit.md @@ -19,18 +19,19 @@ Cockpit is available in Debian since version 10 (Buster). 1. To get the latest version, we recommend to enable the [backports repository](https://backports.debian.org) (as root): - ``` - . /etc/os-release - echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" > \ - /etc/apt/sources.list.d/backports.list - apt update - ``` +```bash +. /etc/os-release +echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" > \ +/etc/apt/sources.list.d/backports.list + +sudo apt update +``` 2. Install or update the package: - ``` - apt install -t ${VERSION_CODENAME}-backports cockpit - ``` +```bash +sudo apt install -t ${VERSION_CODENAME}-backports cockpit -y +``` When updating Cockpit-related packages and any dependencies, make sure to use `-t ...-backports` as above, so backports are included. @@ -43,7 +44,7 @@ Cockpit is available in Ubuntu, with [updated versions in official backports for We recommend installing or updating the latest version from backports. This repository is enabled by default, but if you customized apt sources you might need to [enable them manually](https://help.ubuntu.com/community/UbuntuBackports#Enabling_Backports). -``` +```bash . /etc/os-release sudo apt install -t ${VERSION_CODENAME}-backports cockpit ``` @@ -85,22 +86,21 @@ Loading available up... 1. Create a placeholder file and network interface. Create `/etc/NetworkManager/conf.d/10-globally-managed-devices.conf` with the contents: -> ``` -> [keyfile] -> unmanaged-devices=none -> ``` +```bash +[keyfile] +unmanaged-devices=none +``` 2. If you run on Ubuntu with arm64 (e.g.: on a Raspberry Pi), install extra Linux kernel modules for networking: -> ``` -> sudo apt install linux-modules-extra-raspi -> ``` +```bash +sudo apt install linux-modules-extra-raspi +``` 3. Set up a “dummy” network interface: -> ``` -> nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1 -> ``` +```bash +nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1 +``` 4. Reboot (reload service ?) -