From 308eb470771c9e9c3b6a4ba859c8ad342fb23994 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Jul 2026 18:49:31 +0300 Subject: [PATCH] Add fedora-incus.md --- docs/linux/fedora-incus.md | 20 ++++++++++++++++++++ docs/linux/fedora-upgrade.md | 7 +++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 docs/linux/fedora-incus.md diff --git a/docs/linux/fedora-incus.md b/docs/linux/fedora-incus.md new file mode 100644 index 0000000..f3dc527 --- /dev/null +++ b/docs/linux/fedora-incus.md @@ -0,0 +1,20 @@ + +# Fedora incus + +## Create +```bash +incus launch images:fedora/44 fc-test -d eth0,hwaddr=00:16:3e:00:09:66 -d eth0,host_name=veth66 +``` + +## Enter +```bash +incus shell cont-name +``` + +## Install packages +```bash +dnf install bc git jq mc openssh-server tmux net-tools cmp-profile +systemctl disable --now sshd.socket && systemctl enable --now sshd + +``` + diff --git a/docs/linux/fedora-upgrade.md b/docs/linux/fedora-upgrade.md index 22b3550..b494469 100644 --- a/docs/linux/fedora-upgrade.md +++ b/docs/linux/fedora-upgrade.md @@ -35,7 +35,6 @@ dnf repoquery --duplicates dnf remove --duplicates # xz2 - dnf list --extras dnf remove $(dnf repoquery --extras --exclude=kernel,kernel-\*,kmod-\*) @@ -43,8 +42,8 @@ dnf remove $(dnf repoquery --extras --exclude=kernel,kernel-\*,kmod-\*) ``` ``` -sudo rm /boot/*rescue* -sudo kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz" +rm /boot/*rescue* +kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz" -sudo dnf install dracut-config-rescue +dnf install dracut-config-rescue ```