From 9ccf5c6afd8acbade082b4695d2f696905dde481 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Sat, 30 Mar 2024 22:15:27 +0800 Subject: [PATCH] vault backup: 2024-03-30 22:15:27 --- 05. 資料收集/Linux/lxc.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 05. 資料收集/Linux/lxc.md diff --git a/05. 資料收集/Linux/lxc.md b/05. 資料收集/Linux/lxc.md new file mode 100644 index 0000000..1d00be8 --- /dev/null +++ b/05. 資料收集/Linux/lxc.md @@ -0,0 +1,24 @@ +# 準備 +## 安裝 incus +根據 https://linuxcontainers.org/incus/docs/main/installing/#installing 的說明,Ubuntu 22.04 還沒辦法使用 apt 來安裝,因此依照 https://github.com/zabbly/incus 的說明來安裝: +```shell +curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint +mkdir -p /etc/apt/keyrings/ +curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc + +sh -c 'cat < /etc/apt/sources.list.d/zabbly-incus-stable.sources +Enabled: yes +Types: deb +URIs: https://pkgs.zabbly.com/incus/stable +Suites: $(. /etc/os-release && echo ${VERSION_CODENAME}) +Components: main +Architectures: $(dpkg --print-architecture) +Signed-By: /etc/apt/keyrings/zabbly.asc +EOF' + +apt-get update +apt-get install incus +incus config set core.https_address :8443 +``` + +最後一行是打開 incus 的 port。 \ No newline at end of file