AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-604996

Fang's questions

Martin Hope
Fang
Asked: 2021-08-08 20:54:26 +0800 CST

在自动安装期间设置 root 密码

  • 2

是否可以使用 Ubuntu 自动安装(即用户数据)设置 root 密码?

我试过了:

user-data:
    disable_root: false
    chpasswd:
      list: |
        root:$6$AYtLXyyVZAea2aLJ$UQxW1cz2vWWNn.17.3QYH5TxZqIMGoLJCpqbBTfClhUKxqouYn7/Yc5Jsq.bCeK0VDLPxbL6xzfJ0xqTb6MLk.

但无济于事。

user-data
  • 1 个回答
  • 1185 Views
Martin Hope
Fang
Asked: 2020-10-16 03:25:42 +0800 CST

Ubuntu 自动安装 - UEFI

  • 3

我们想使用新的 ubuntu 自动安装方法Autoinstall。让 UEFI 启动工作存在一些问题。我已经使用普通安装程序和 EFI 方法安装了 Ubuntu Server 20.04,然后获取了以下用户数据文件。

#cloud-config
autoinstall:
  apt:
    geoip: true
    preserve_sources_list: false
    primary:
    - arches: [amd64, i386]
      uri: http://de.archive.ubuntu.com/ubuntu
    - arches: [default]
      uri: http://ports.ubuntu.com/ubuntu-ports
  identity: {hostname: zsrv, password: $6$AYtLXyyVZAea2aLJ$UQxW1cz2vWWNn.17.3QYH5TxZqIMGoLJCpqbBTfClhUKxqouYn7/Yc5Jsq.bCeK0VDLPxbL6xzfJ0xqTb6MLk.,
    realname: root, username: root}
  keyboard: {layout: us, toggle: null, variant: ''}
  locale: C
  network:
    ethernets:
      enp1s0: {dhcp4: true}
    version: 2
  ssh:
    allow-pw: true
    authorized-keys: []
    install-server: true
  storage:
    config:
    - {ptable: gpt, wipe: superblock, preserve: false, name: '', grub_device: false,
      type: disk, id: disk-vda}
    - {ptable: gpt, wipe: superblock-recursive, preserve: false, name: '',
      grub_device: false, type: disk, id: disk-vdb}
    - {device: disk-vda, size: 536870912, wipe: superblock, flag: boot, number: 1,
      preserve: false, grub_device: true, type: partition, id: partition-0}
    - {fstype: fat32, volume: partition-0, preserve: false, type: format, id: format-0}
    - {device: disk-vda, size: 1073741824, wipe: superblock, flag: '', number: 2,
      preserve: false, type: partition, id: partition-1}
    - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-1}
    - {device: disk-vdb, size: 24696061952, wipe: superblock, flag: '', number: 1,
      preserve: false, type: partition, id: partition-4}
    - {device: disk-vda, size: 24696061952, wipe: superblock, flag: '', number: 3,
      preserve: false, type: partition, id: partition-5}
    - name: md0
      raidlevel: raid1
      devices: [partition-4, partition-5]
      spare_devices: []
      preserve: false
      type: raid
      id: raid-0
    - {fstype: ext4, volume: raid-0, preserve: false, type: format, id: format-4}
    - {device: format-4, path: /, type: mount, id: mount-4}
    - {device: format-1, path: /boot, type: mount, id: mount-1}
    - {device: format-0, path: /boot/efi, type: mount, id: mount-0}
  version: 1

系统安装运行,但在下一次启动时,我被转储到 UEFI shell 中。是否需要运行一些安装后命令才能使 EFI 正常工作?

提前致谢。

boot preseed uefi
  • 1 个回答
  • 1882 Views
Martin Hope
Fang
Asked: 2020-09-27 12:35:57 +0800 CST

自动安装 - 使用 webhook 进行报告

  • 3

自动安装包括向 webhook 报告的选项:

reporting:
 hook:
  type: webhook
  endpoint: http://example.com/endpoint/path
  consumer_key: "ck_foo"
  consumer_secret: "cs_foo"
  token_key: "tk_foo"
  token_secret: "tk_secret"
  level: INFO

我试图配置这个,但无济于事。由于我对 webhook 不太熟悉,所以我首先尝试获取任何信息并设置此配置:

reporting:
 hook:
  type: webhook
  endpoint: localhost:8000

然后我在我的本地服务器上设置 netcat,如下所示:

nc -l localhost 8000

但是在这个插座上我什么也得不到。我不太确定如何使用这项服务,但我希望至少能看到任何数据。

curtin
  • 1 个回答
  • 233 Views
Martin Hope
Fang
Asked: 2020-09-26 07:40:28 +0800 CST

根分区上的自动安装和 zfs

  • 0

我们正在将我们的自定义 ubuntu 安装程序从 di 移动到autoinstall,我想知道是否可以在根分区上自动安装 zfs。理想情况下,我想在我的系统中用 ZFS 格式化的两个磁盘之间设置一个 raid-0。

我在参考文献中没有提到这一点。

partitioning raid zfs
  • 1 个回答
  • 379 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve